I\’m having trouble getting this image to move to the right can anyone help ive just started scripting and I am finding it very confusing.
<html>
<head>
</head>
<body style=\"margin:0px;\">
<img id=\"tank\" style=\"position:absolute;\"src=\"tank.png\"/>
<script type=\"text/javascript\">
var change = document.getElementById(\'tank\').style.left = \'0\';
while(change < 200)
{
change++;
}
</script>
</body>
</html>





Rating:
The post css – How to move an image with javascript appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/css-how-to-move-an-image-with-javascript.html
No comments:
Post a Comment