hej jeg har prøvet dette her og kan simpelthen ikke finde fejlen længere?
scriptet burde lave sådan stjernerne skifter billeder når musen køre over:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>Untitled Document</title>
<script type="text/javascript">
function ViewVote(event) {
var maxvote=11;
var x=event.clientX;
var pos=document.getElementById("starrating").offsetLeft;
var stars=((x-pos)/8);
for(i=0;i<=maxvote;i++){
if (i>=stars){
if (i%2 != 0){
if (i>=10){
document.getElementById("rate" + i).src="/gfx/DarkStarLeft.png"
} else {
document.getElementById("rate0" + i).src="/gfx/DarkStarLeft.png"
}
} else {
if (i>=10){
document.getElementById("rate" + i).src="/gfx/DarkStarRight.png"
} else {
document.getElementById("rate0" + i).src="/gfx/DarkStarRight.png"
}
}
} else {
if (i%2 != 0){
if (i>=10){
document.getElementById("rate" + i).src="/gfx/LightStarLeft.png"
} else {
document.getElementById("rate0" + i).src="/gfx/LightStarLeft.png"
}
} else {
if (i>=10){
document.getElementById("rate" + i).src="/gfx/LightStarRight.png"
} else {
document.getElementById("rate0" + i).src="/gfx/LightStarRight.png"
}
}
}
}
}
</script>
</head>
<body bgcolor="#CCCCCC">
<div id="starrating" onmouseover="ViewVote(event)" style="margin:200px; width:80px; height:17px;">
<IMG id="rate01" src="/gfx/LightStarLeft.png" onmouseover="ViewVote()" onmouseout="DefaultVote()" /><IMG id="rate02" src="/gfx/LightStarRight.png"><IMG id="rate03" src="/gfx/LightStarLeft.png"><IMG id="rate04" src="/gfx/LightStarRight.png"><IMG id="rate05" src="/gfx/LightStarLeft.png"><IMG id="rate06" src="/gfx/DarkStarRight.png"><IMG id="rate07" src="/gfx/DarkStarLeft.png"><IMG id="rate08" src="/gfx/DarkStarRight.png"><IMG id="rate09" src="/gfx/DarkStarLeft.png"><IMG id="rate10" src="/gfx/DarkStarRight.png">
</div>
så hjælp lige