You are here: Re: Any way to specify alt text timeout in seconds? « HTML « IT news, forums, messages
Re: Any way to specify alt text timeout in seconds?

Posted by Dylan Parry on 04/03/06 14:14

Pondering the eternal question of "Hobnobs or Rich Tea?", Chris Ianson
finally proclaimed:

> Is there a way to change the timeout of a tooltip AKA alt text over a
> picture?

It's only Internet Explorer that does this with alt text. Other browsers
don't exhibit this behaviour for alt attributes, but may show tooltips
for title attributes.

> Normally the text appears for about 5 seconds then vanishes, but
> I'd like it to stay indefinitely on a specific picture. (It's a photo with
> a description of the photo).

You can't do this for the actual alt/title text, but you might be able
to use Javascript to give the same effect.

http://www.kryogenix.org/code/browser/nicetitle/

has something that does this sort of thing. To be entirely honest
though, if it is a description of the image then it shouldn't be in the
alt attribute anyway - the alt attribute is a *replacement* for the
image in the event that the image cannot be seen, not a description.

The title attribute (which is what the above script uses) is probably
better suited to this, but if the text you plan on using is fundamental
content then you should really write it on the page rather than hide it
away as an attribute.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Listening to: Sigur Rós - Flugufrelsarinn

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация