It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes tooltip displayed off the screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "tooltip displayed off the screen" Watch "tooltip displayed off the screen" New topic

tooltip displayed off the screen

sheethal Kumar choppari

Joined: Jun 23, 2012
Posts: 17
Hi all
my application has many tooltips which pops up small window on mouse over on some text. it is making use of java script to get it done, i wanted that poped up window to right to the text. its working fine in some webpages. but in some pages its showing off the screen. for all mouseover events it is making use of same javascripts files, why it is diplaying differently . and it i want to make the poped up window to be right of my text, where can i make changes

thanks in advance
Greg Charles

Joined: Oct 01, 2001
Posts: 2968

I just went through this exercise and it can be pretty tricky to compute a reasonable placement for a flyout text box. I had some unique requirements though. For your case, I'd recommend using a JQuery plugin like qTip.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

What's wrong with just using the title attribute?

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Well you need to make your code smart enough to realize there is the edge of the page and do not go off of it.

jQuery in Action, 3rd edition
subject: tooltip displayed off the screen
It's not a secret anymore!