Can anyone tell me what is wrong with this code won't work?


#1
<html>
<body>
<marquee behavior="scroll" id="venten" scrollamount="0" direction="right"><img id="heli" src="http://ecx.images-amazon.com/images/I/61iA0yqvJdL._SL1000_.jpg" style="width:100px;"></marquee>
<li><h4 onclick="die()">Helicopter<br>10$</h4></li>

<script type="text/javascript">
var heli = document.getElementById("venten");

function die(){
heli.scrollAmount = 20;
heli.loop = 1;
}
</script>
</body>
</html>

#2

A post was merged into an existing topic: Can anyone tell me why my code won't work?