View Full Version : trival? Alter duration of ALT display for IMGs
Roy Gardiner
12-11-2005, 08:02 PM
My apologies if this is an RTFM problem; my FM isn't helping me :confused:.
I'd like to be able to make the ALT text display until the cursor is moved off the image, rather than having it display for a limited few seconds.
All help appreciated.
PhotoJoe47
12-11-2005, 09:04 PM
First the alt attribute should not be used for tool tip feature. Use the title attribute instead. I think only IE will still display the alt attribute as a tool tip. The alt attribute is suppose to be used by page readers for the visually impaired.
Next I don't think you can control the the time of display for the tool tip, but I may be wrong. But you can create your own tool tip function using the onmouseover / onmouseoff events.
If you do a google of "javascript tooltip" (include the quotes) you will find sources for getting pre-built tooltip functions.
This might be a good start to work from:
http://www.brothercake.com/site/resources/scripts/tooltips/
Roy Gardiner
12-11-2005, 09:59 PM
Thank you for your help, much appreciated.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.