View Full Version : IMG and ALT, stoping the fade
06-03-2012, 05:25 PM
With the example code:
<img src="smiley.gif" alt="Smiley face" />
Get the "Smiley face" text with hovering over the image, but after 5 seconds it fades. There a way to stop the text from fading until you stop hovering over the image with the mouse?
06-03-2012, 06:09 PM
No, that depends on the browser. And it should not even show a tooltip. Apparently you are using Internet Explorer which gets it wrong. The alt attribute is just for alternative text in case the image can’t be displayed. For tooltips you should use the title attribute.
06-03-2012, 06:16 PM
Yes, I am using IE.
I did a test with the following code, but it also fades after 5 seconds.
<p title="Title Test">Title test -stoping the fade</p>
06-03-2012, 07:40 PM
Maybe this will help - http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/
That will give you more control over your tooltips.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.