| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|image map query|
I'm using a gif with transparent areas; these function as the clickable areas in an image map. They work fine.
However, I'd like them to turn a color when hovered over. I've tried
<area "class="crack" cords...
but it doesn't play. Testing in Firefox.
I'm a bit afraid it's going to be javasript that'll be the answer, but I'd love to be proven wrong.
Perhaps something we need to put on the CSS3 (or CSS4) wish list.
actually - here's a simple solution using css. It may not work for image maps (I've honestly never used them).
in your code wrap the objects of class crack in an anchor tag. For example:
now in your css put this:
a.hack:link .crack,a.hack:visited .crack
that should work! It has its limitations on what can be put inside of the anchor tag (which is why my drop-down ain't working...) but hopefully it works for you. Tell me if it does or not!
Ryan, thanks, nice try, no cigar.
Fixed it with images underneath the transparent areas and some script. Messy.
ya that was going to be my other suggestion, but it's definitely a messier solution. Well, glad you got it working.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved