Is there a CSS only, multi-brower (including IE6) way I can set up an image to change when I hover over it?
I can achieve it using sprites and the hover state on an anchor link, but I don’t want it to be a link. Either that or I don’t want the link to be active (using href="#" seems to jump to the top of the page and make the image disappear???). Problem with that of course is that the markup won’t be valid with a link doesn’t actually link to anything (I believe). Is there anything I can do within the anchor tag that will make absolutely nothing happen when it is clicked on?
I want to avoid using JS but if there is no other way, so be it.
I have done it with JS using onmouseover/onmouseout and the setTimeout() method. I know you are looking for a "pure" css way of doing it, but if you can’t get anything and need help on the js end, let me know and I will get soem code together for you….