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
|
<html>
<head>
<title></title>
<script type="text/javascript">
<!--
flag = new Array(false, false, false, false, false);
function Clic(n)
{
flag[n-1] = true;
}
function etoilea(n)
{
var i;
if (!flag[n-1])
{
for (i=1;i<=n;i++)
{
document.getElementById("etoile"+i).src = "jaune.gif";
}
}
}
function etoilee(n)
{
var i;
if (!flag[n-1])
{
for (i=1;i<=n;i++)
{
document.getElementById("etoile"+i).src = "grise.gif";
}
}
}
//-->
</script>
</head>
<body>
<img id="etoile1" src="grise.gif" onclick="Clic(1); etoilea(1)" onmouseover="etoilea(1)" onmouseout="etoilee(1)"/>
<img id="etoile2" src="grise.gif" onclick="Clic(2); etoilea(2)" onmouseover="etoilea(2)" onmouseout="etoilee(2)"/>
<img id="etoile3" src="grise.gif" onclick="Clic(3); etoilea(3)" onmouseover="etoilea(3)" onmouseout="etoilee(3)"/>
<img id="etoile4" src="grise.gif" onclick="Clic(4); etoilea(4)" onmouseover="etoilea(4)" onmouseout="etoilee(4)"/>
<img id="etoile5" src="grise.gif" onclick="Clic(5); etoilea(5)" onmouseover="etoilea(5)" onmouseout="etoilee(5)"/>
</body>
</html> |
Partager