Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Hover Get Message Box?

Status
Not open for further replies.

econnections

IS-IT--Management
Apr 28, 2006
30
GB
Hello,
In some web pages when you hover over a button, image etc you get a message box appear usually containing help. I want to use this in my app~. Is there a function for this or do I have to us onmouseover to creat and position a <div> containing a message?

Cheers
 
Some use the ALT tag in HTML for the little popup window that it provides but this is really against standards as it detracts from the original intention of the tag.

There are plenty of scripts available for doing popup help but I have been working on my own as none seem to do everything I want.

If you search on popup tool tips you should find some good links.

In my own tooltip script I not only want the element to position relative to the item it is associated with, I want it to reposition itself to keep from going off the top, bottom or sides of the window so if the height of the tip window is greater than the amount of remaining space below the page element then I flip the tip box to be above the element. I also adjust it's left/right position based on width and available space in those directions as well.

I almost have it working the way I want but have run into issues trying to get reliable cross-browser values for various screen positions and have not been able to work on it in a while to iron out the bugs.



It's hard to think outside the box when I'm trapped in a cubicle.
In an increasingly self-focused society it is important to recognize the unselfish actions of others so they will feel encouraged to continue such actions. Please give acknowledgement to those who aid you whether it is waving to the person who let you out in traffic, tha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top