为什么我的程序出不来效果?哪里错了?
<%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
function moveImg()
if img2.style.left < 800 then
img2.style.left = img2.style.left + 80
else
img2.style.left = 100
end if
if img2.style.top < 500 then
img2.style.top = img2.style.top + 80
else
img2.style.top = 50
end if
end function
%>
<form method="post" action="imgposition.asp">
<img id="img1" src="Sample.jpg" alt="a sample image" width="56" height="42" border="0" title="a image hint"><br>
<img id="img2" src="Sample.jpg" alt="a sample image" width="28" height="21" border="0" title="a image hint" style="position:absolute;top:50;left:100;"><br>
<input type="button" onClick="moveImg()" value="Start Move">
</form>
</body>
</html>