This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tooltip displayed off the screen

 
sheethal Kumar choppari
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2987
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with just using the title attribute?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic