<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
var winObj=window.open("0000000.htm","mybutton","width=250,height=192,resizable=no");
winObj.moveTo(0,0);
winObj.focus();
var pixelpos=0;
var ImgWidth=640;
var pixelstep=1;
var timeout;
function startScroll()
{
if(pixelpos<=(ImgWidth-250))
{
pixelpos+=pixelstep;
winObj.scroll(pixelpos,0);
}
else
{
pixelpos=0;
}
timeout=setTimeout("startScroll()",20);
}
function stopHere()
{
clearTimeout(timeout);
}
function closeWindow()
{
winObj.close();
}
</script>
</head>
<body bgcolor="lightgreen">
<font face="宋体" size="4">
<b><br>
<center>
滚动新打开的文档内容
<form>
<input type="button" onClick="startScroll();" value="开始滚动">
<input type="button" onClick="stopHere();" value="停止滚动">
</form>
<font size="3">
<p>当希望关闭新窗口,请单击下面链接<br>
<a href="javascript:closeWindow()">关闭打开新窗口</a>
</center>
</body>
</html>
大家来帮我看看这段代码有什么问题??为什么就是滚动不了??请指正!!!