ie浏览器滚动效果。她不停下来啊!郁闷!hlep
<html>
<head>
<title>leftright</title>
<style type="text/css">
<!--
.word {
font-family: "宋体";
font-size: 12px;
color: #333333;
text-decoration: none;
}
-->
</style>
<script language=javascript>
var lock=0;
var x=0;
var y=0;
function op(te){
parseInt(te);
if(te<0 || te>100){
window.alert("您输入的数字不符合! 请输入0~~100之间!");
}else
document.write(te);
for(var t=0;t<te;t++){
window.open("","","http://www.leftright.com.cn","LeftRight");
}
}
function ChangeScreen(){
if(lock==0){
if(x<screen.width){
x+=1;
window.resizeBy(x,0);
//在我这里不停下来,一直跑!我那里错了呢?谢谢!
}else{
lock=1;
}
}else if(lock==1){
if(y<screen.height){
y+=1;
window.resizeBy(x,y);
}else{
lock=2;
}
}else if(lock==2){
window.clearTimeout();
}else{
}
}
function start_MoveSreen(){
window.moveTo(0,0);
window.resizeTo(0,0);
// window.defaultStatus="welcome to LeftRight studio";
window.setInterval(ChangeScreen,50);
}
</script>
</head>
<body onLoad="start_MoveSreen()">
<table width="200" height="80" border="0" align="center" cellpadding="0" cellspacing="0" class="word">
<tr>
<td height="20" align="center">你想玩几次?</td>
</tr>
<tr>
<td><form name="form1" method="post" action="">
<table width="200" height="40" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="center" class="word">(请输入阿拉伯数字0~100)</td>
</tr>
<tr>
<td align="center"><input name="textfield" type="text" ></td>
</tr>
<tr>
<td align="center"><input type="submit" name="Submit" onClick="op(form1.textfield.value)" value="确定"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>