1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <html>
<head>
</head>
<script type="text/javascript" />
function swapPic(source, zonage){
document.getElementById('source').src='image1.jpg';
document.getElementById('source').usemap='#img1';
}
</script>
<body>
<IMG id="monimage" src="cabinet.jpg" usemap="#initial" border=0>
<map name="initial">
<area shape="rect" href="#" coords="100,0,125,25" onclick="swapPic('image1.jpg','#img1');return false; ">
</map>
<map name="img1">
<area shape="rect" href="#" coords="0,0,25,25" onclick="swapPic('image2.jpg','#img2');return false; ">
</map>
<map name="img2">
<area shape="rect" href="#" coords="175,0,200,25" onclick="swapPic('image3.jpg','#img3');return false; ">
</map>
<map name="img3">
<area shape="rect" href="#" coords="0,125,25,150" onclick="swapPic('cabinet.jpg','#initial');return false; ">
</map>
<a href=# onclick="swapPic('image1.jpg','#img1');return false;">Lien 1</a>
<a href=# onclick="swapPic('image2.jpg','#img2');return false;">Lien 2</a>
<a href=# onclick="swapPic('image3.jpg','#img3');return false;">Lien 3</a>
</body>
</html> |
Partager