Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Validation vs. Code Bloat in Regards to Alt Text


electro - 1:42 pm on Jun 19, 2002 (gmt 0)


I'm with countrycat on the rollover thing. The dead simple way to get a rollover effect without all that preload nonsense, miles of javascript etc is to use gif images with clear patches where you want the roll over effect to happen. Then, just set the gif in a table with a background colour. This is the 'up' colour that will show through the gif. Then, just add a CSS class to the link.
<a class=h href="../somewhere else.htm">
<img src="the_image_with_holes.gif" alt="Snappy Description"></a>

And the little bit of CSS:

a.h:hover { background-color: #FFFFFF}

And your done. Look over at alistapart for a full explanation. Note that this effect works best in IE5 up, half works in Mozilla and doesn't work at all in NN4.x (surprise surprise!)


Thread source:: http://www.webmasterworld.com/html/2545.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com