<html>
<head>
<title>
一个实例
</title>
</head>
<body ondblclick="javascript:mystart()" onclick="javascript:mystop()">
<script language="javascript">
document.write(screen.availWidth+" "+screen.colorDepth);
var STEPSIZE=10;//定义移动的步长
var timmerID=null,tempx=STEPSIZE;
function updateMove(){ //更新移动位置
if (window.screenLeft>500) tempx=-STEPSIZE;
if (window.screenLeft<100) tempx=STEPSIZE;
window.moveBy(tempx,0);
}
function mystart(){ //启动定时器
window.resizeTo(400,300);
timmerID=window.setInterval("updateMove()",10);
}
function mystop(){ //停止定时器
window.clearInterval(timmerID);
}
</script>
</body>
<html>
为什么窗口不摇动啊?谢谢