Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

imagemaps/javascript

Status
Not open for further replies.

teekkari

Programmer
Dec 29, 2003
2
FI
I would like to make an imagemap that changes the image depending on where the mouse is (a world map that changes the color of a country when the mouse is over it and workes like an imagemap so that you can click on the different countries). I've used Javascript and Imagemaps, but don´t know if it is possible to combine them.
 
Easy

<map name=&quot;sample&quot;>
<area shape=&quot;rect&quot; href=&quot;somePage.htm&quot; onMouseOver=&quot;myImg.src=somePic.jpg&quot; onMouseOut=&quot;myImg.src=firstPic.jpg&quot;>

</map>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top