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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Un titre</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css">
html, body {
margin: 0;
padding: 0;
background-color: #c0c0c0;
}
#conteneur {
position: relative;
margin: 0 auto;
width: 1000px;
}
#conteneur_d_image {
margin: 0 auto;
width: 200px;
height: 201px;
background: #ffd url(images/menulong.png) no-repeat 0 0;
}
img {
display : block;
border : none;
}
</style>
<!-- Utilisez un code un peu plus propre (-; -->
<script type="text/javascript">
function change_coin(gauche)
{
limage = document.getElementById('conteneur_d_image');
limage.style.backgroundPosition = gauche;
}
</script>
</head>
<body>
<div id="conteneur">
<div id="conteneur_d_image">
<img src="images/menu_transp.png" width="200" height="201" alt="image transparente sur le menu" usemap="#map4poly" />
</div>
<map name="map4poly" id="map4poly">
<!-- #$-:Image map4poly file created by GIMP Image map4poly plug-in -->
<!-- #$-:GIMP Image map4poly plug-in by Maurits Rijk -->
<!-- #$VERSION:2.3 -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<area href="#1" alt="lien1"
shape="poly" coords="0,0,200,0,100,102,0,0"
onmouseover="change_coin('-800px')" onmouseout="change_coin('0px')" />
<area href="#2" alt="lien2"
shape="poly" coords="200,0,200,201,100,102,200,0"
onmouseover="change_coin('-200px')" onmouseout="change_coin('0px')" />
<area href="#3" alt="lien3"
shape="poly" coords="200,201,2,201,100,102,200,201"
onmouseover="change_coin('-400px')" onmouseout="change_coin('0px')" />
<area href="#4" alt="lien4"
shape="poly" coords="2,201,0,201,0,0,100,102,2,201"
onmouseover="change_coin('-600px')" onmouseout="change_coin('0px')" />
</map>
</div>
</body>
</html> |
Partager