View Full Version : Image map w/ css class id's


misfit
01-09-2003, 05:38 AM
Kay, what i'm trying to do is use an .htc file behavior thingie-blah with an image with some transparent parts on it..
I'm not making any sense already. Uck.

Kay, i've got an image with transparent portions of it. I'm using an image map to put a background link effect with the parts of it that i'm linking.

so basically... without the the babble above, do classes work with image maps?

here's the code i'm using now... but it seems to be evil.
<IMG NAME="gif0" SRC="layoutimages/gif.gif" WIDTH="750" HEIGHT="450" BORDER="0" USEMAP="#gif">
<MAP NAME="gif">
<AREA SHAPE="rect" COORDS="443,325,562,362" HREF="#girl" TARGET="menu" class="menu">
<AREA SHAPE="rect" COORDS="443,368,562,401" HREF="#art" TARGET="menu" class="menu">
<AREA SHAPE="rect" COORDS="612,325,746,362" HREF="#junk" TARGET="menu" class="menu">
<AREA SHAPE="rect" COORDS="612,368,746,401" HREF="#site" TARGET="menu" class="menu">
</MAP>

and in the css file, i've got the a tags like this

a.menu:link {

etc. etc.

is a.menu:link the right code?
hm.
yeah.

thanks. Please. Yep.

terrysultres
01-09-2003, 11:24 PM
on my site i have id classes to but not with images. mine are like this:

a:link.NAME
a:visited.NAME
a:active.NAME
a:hover.NAME


change NAME to your class name and put this code in the links:

<a href="URL" class="NAME">IMAGE OR TEXT</a>

change NAME to your class name.

Tell me if that helped

misfit
01-10-2003, 01:34 AM
Nope.
It's evil.

misfit
01-13-2003, 09:49 PM
Ick.
nevermind :(
I've completely kicked this idea away.
I don't think class id's work with something that's not a regular <a lalalaa> tag..