Click to See Complete Forum and Search --> : alternative to pseudo class for img


neridaj
06-05-2008, 12:26 AM
Hello,

I believe IE 6 doesn't support pseudo classes on anything besides a link, is there an alternative to this? I just want to have some thumbnails display a border when hovered, which is fine in FF and Safari, but good old IE won't listen.


a:link img{ border: none; }
a:visited img{ border: none;}
a:hover img{ border: 1px solid #CCC; }
a:active img{ border: none; }

<a href="#" onclick='ifrmtrgt.src="images/52.jpg"'><img src="thumbs/52.jpg" width="25" height="25" alt="00"></a>


Thanks,

Jason

Centauri
06-05-2008, 12:35 AM
You would need a variation of the suckerfish script (http://www.htmldog.com/articles/suckerfish/) to do that.