看看,你们应该能看我的意图,但是我写不出来后半句!!
<script>
x=0
y=0
function fly()
{
if(x<400)
{x++;y++
clearTimeout(timeoutid)
self.moveTo(x,y)
timeoutid=setTimeout("fly()",20)
} /*从这里开始,后面是水货,教我*/
else(x>=400){
x=400
y=400
clearTimeout(timeoutid)
self.moveTo(x--,y--)
timeoutid=setTimeout("fly()",10)
}
}
</script>
<body onload=fly()>
<body>