wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "tooltip displayed off the screen" Watch "tooltip displayed off the screen" New topic
Author

tooltip displayed off the screen

sheethal Kumar choppari
Greenhorn

Joined: Jun 23, 2012
Posts: 16
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
Sheriff

Joined: Oct 01, 2001
Posts: 2841
    
  11

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
Marshal

Joined: Jan 10, 2002
Posts: 60812
    
  65

What's wrong with just using the title attribute?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tooltip displayed off the screen
 
Similar Threads
document.referrer?
How to force the repainting of a component
weblogic6.0 problem, very ergent
Why I can't change the JWindow's color?
Disabling browser /sub window buttons....