<div id=x name=x style="position:absolute; top:0; left:0;"><img id=walkingspot name=walkingspot src="http://forums.stangnet.com/images/smilies/spot.gif" width="50" height="50" onclick = "stopspot()"></div>
****ing sucks.. why aint it wokring
Code:
<script language="vbScript">
<!--
dim ttt
function moveit()
x.style.posLeft = x.style.posLeft + 20
x.style.posTop = x.style.posTop + 10
if (x.style.posLeft < screen.width - 200) then
ttt = setTimeout("moveit()",400)
else
x.style.posTop = 100
x.style.posLeft = 0
moveit()
end if
end function
function stopspot()
clearTimeout ttt
walkingspot.src = "http://forums.stangnet.com/images/smilies/stupid.gif"
end function
x.style.posTop = 100
moveit()
//-->
</script>