2 replies [Last post]
Janetb
Offline
newbie
Last seen: 11 years 8 weeks ago
Joined: 2004-09-28
Posts: 10
Points: 0

I currently have a simple javascript that swaps a small image next to text from a mouseover/mouseout action initiated through an image map. But, it seems that there is probably a better method of doing this with css - perhaps with font weight and color change rather than an image? For example I have a state map with 10 city names on it, and ten companies listed below that just happen to be located in those ten cities. When I hover over the city, I want the applicable company's font to be weighted and change color.

Make sense?

Janetb
Offline
newbie
Last seen: 11 years 8 weeks ago
Joined: 2004-09-28
Posts: 10
Points: 0

Addition:

I forgot to add - in case in makes a difference. Both the image map and the 'company' list contain alt tags for links.

co2
co2's picture
Offline
Leader
UK
Last seen: 12 years 18 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

CSS and Image Map

Here's a fantastic technique with CSS that may interest you: http://wellstyled.com/css-nopreload-rollovers.html

Smile

The next sentence is true. The previous sentence is false. Discuss...