W
Willem-Jan
Hi all,
Im trying to move an image by javascript and i created the following code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function move()
{
myimg.style.left += 10;
}
</SCRIPT>
</head>
<body>
<img id="myimg" src="dot.gif" height="10" width="10">
<BR>
<a href="#" onclick="move()">Move</a>
</body>
</html>
Can anyone tell me why the image wont move when i use the link and what
i can do to make the image move?
Thanx!
Im trying to move an image by javascript and i created the following code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function move()
{
myimg.style.left += 10;
}
</SCRIPT>
</head>
<body>
<img id="myimg" src="dot.gif" height="10" width="10">
<BR>
<a href="#" onclick="move()">Move</a>
</body>
</html>
Can anyone tell me why the image wont move when i use the link and what
i can do to make the image move?
Thanx!