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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALT Attribute on image - can you set time lengh?

Status
Not open for further replies.

specialist

Programmer
Sep 7, 2001
50
US
Hello-

I was wondering if there is a method in which one could set a time limit on the alt attribute on an image.

For example, if I have a really really really long alt image attrubute the alt text will only stay open for around 8 seconds. Is there a way I can change that to 30 seconds?

Any advice would be wonderful. Many thanks,

Mike
 
Besides, [tt]alt[/tt] attribute should be used for displaying short picture information for browsers that cannot show pictures. If you are using such a long one, your site will be unusable in those browsers. What you're talking about is [tt]title[/tt] attribute rather than alt.
 
thanks everyone, I was looking fr an alternative to onMouseOver but I guess this is not the best way!
 

I was wondering if there is a method in which one could set a time limit on the alt attribute on an image.


Try rephrasing your question to explain what it is you actually want to do.


The alt attribute of an image is not meant to provide "pop up" text when you mouseover something. IE does this, but it shouldn't.
Other browsers use the title attribute to do this, but again, the title attribute is not meant to provide large blocks of mouseover text.

I am guessing you want a block of text to appear when you mouseover an element?
You will need to use hidden <div>s and employ javascript to make the relevant one appear when you mouseover it's related element.


Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top