HTML and Javascript: Multiple images sharing a single map -


i want reuse image map several different images. i'd javascript able know clicked on area 2 of image3 example. possible using javascript? if how pass image id javascript? thanks!

<map name="bg_over" id="bg_over"> <area shape="poly" coords="2,44,44,2,44,44" href="team2.html" alt="" /> <area shape="poly" coords="0,0,0,43,44,0" href="team1.html" alt="" /> </map>  <a href="#"><img src="/training/rumble_ora/images/bg.gif" width="44" height="44" id="image1" name="image1" usemap="#bg_over"></a> <a href="#"><img src="/training/rumble_ora/images/bg.gif" width="44" height="44" id="image2" name="image2" usemap="#bg_over"></a> <a href="#"><img src="/training/rumble_ora/images/bg.gif" width="44" height="44" id="image3" name="image3" usemap="#bg_over"></a> 


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -