Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-03-2012, 04:25 PM   PM User | #1
Ormus
New to the CF scene

 
Join Date: Jun 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Ormus is an unknown quantity at this point
IMG and ALT, stoping the fade

With the example code:
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?
Ormus is offline   Reply With Quote
Old 06-03-2012, 05:09 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
The Following 2 Users Say Thank You to VIPStephan For This Useful Post:
Ormus (06-03-2012), SeattleMicah (06-03-2012)
Old 06-03-2012, 05:16 PM   PM User | #3
Ormus
New to the CF scene

 
Join Date: Jun 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Ormus is an unknown quantity at this point
Yes, I am using IE.

I did a test with the following code, but it also fades after 5 seconds.

Code:
<p title="Title Test">Title test -stoping the fade</p>
Ormus is offline   Reply With Quote
Old 06-03-2012, 06:40 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Ormus,
Maybe this will help - http://speckyboy.com/2009/09/16/25-u...and-tutorials/

That will give you more control over your tooltips.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:11 AM.


Advertisement
Log in to turn off these ads.