[thelist] [Javascript] unobtrusive scripting, rollovers and IE7, oh my!

Lee kowalkowski lee.kowalkowski at googlemail.com
Wed Jul 19 03:49:55 CDT 2006

On 19/07/06, Christian Heilmann <codepo8 at gmail.com> wrote:
> If wouldn't call using bespoke invalid attributes unobtrusive, but
> that's just me. The bleeding ego rollover does the same but works
> without invalid attributes:
> http://www.dnolan.com/code/js/rollover/
> I've extended this to use addEvent in the 6th chapter of my book:
> http://beginningjavascript.com/Chapter6/exampleAutomatedRollover.html

Nice.  If for some reason you prefer your image filenames to describe
the image rather than what you're using it for, you can always try
something like <img src="emptyCircle.gif?rollover=solidCircle.gif">
and scripting your way around that!

I thought CSS was *the* unobtrusive way to do rollovers, with a hover
HTC behavior for IE if necessary (if you want rollovers on elements
that aren't hyperlinks).


More information about the thelist mailing list