Topic: Area colors? Pages that link to <a href="https://ozoneasylum.com/backlink?for=10777" title="Pages that link to Topic: Area colors?" rel="nofollow" >Topic: Area colors?\

 
Author Thread
OMERA
Bipolar (III) Inmate

From: France
Insane since: Mar 2000

IP logged posted posted 07-25-2002 17:32 Edit Quote

Ok, here I go again with my strange requests...

Does anyone succeeded to change an AREA (image map, you see? ) background color using css?

I made several tries, but none succeeded...

Thnxs!

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

IP logged posted posted 07-25-2002 18:05 Edit Quote

i dont understand what you mean.
isnt an area 100% filled by the image itself? or where do you want a background color?

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 07-25-2002 20:49 Edit Quote

I don't understand either. An image map is an image. I have never heard of being able to change the image map's background with CSS.

Later,
C:\


~Binary is best~

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 07-25-2002 21:28 Edit Quote

I assume the effect you're trying to create is a polygon full of color. I doubt there's a way to do that without making some sort of rollover (multiple images swapped).

OMERA
Bipolar (III) Inmate

From: France
Insane since: Mar 2000

IP logged posted posted 07-25-2002 23:34 Edit Quote

ha, well... maybe I haven't been clear enough.

Ok.
Let's imagine an image of a coutry map.
I associate this image with a <MAP>, composed of several <AREA> zone. Thoses zones are, as one have guessed, the different states of the country.

What I want to do is exactly what slime suggested: flash some colored polygon when the user hover the states...

Was just wondering if this was possible using simple css; and obviously it isn't...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 07-26-2002 00:50 Edit Quote

Nope. You'll probably have more luck with some sort of transparent overlayed gifs.

Image maps are just different than regular elements.

someoneInverse
Bipolar (III) Inmate

From:
Insane since: May 2002

IP logged posted posted 07-26-2002 08:17 Edit Quote

either that or go for a whole world of pain using vml or svg to draw the country and its areas and then use script to change colours area colours on mouse over

it all depends on how masochistic you're feeling and which browsers you're aiming on suporting


Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

IP logged posted posted 07-29-2002 13:50 Edit Quote

you can have the big image but unhide layers over the states onmouseover..


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu