时间: 2021-07-31 作者:daque
<script language="javascript"> <!-- function winscroll(direction,xwidth,xheight){ if ((navigator.appversion.indexof("4")!= -1)){ self.resizeto(xwidth,xheight) if (direction == 1){ //up self.moveto((screen.availwidth-xwidth)/2,screen.availheight-10) for (var c=1; c<=(screen.availheight-(-xheight))/2; c++) self.moveto((screen.availwidth-xwidth)/2,screen.availheight-c) } if (direction == 2){ //down var x=screen.availheight+screen.height self.moveto((screen.availwidth-xwidth)/2,(screen.availheight-x)) for (var c=0; c<=(screen.availheight-(-xheight/2)); c++) self.moveto((screen.availwidth-xwidth)/2,(screen.availheight-x)+c) } if (direction == 3){ //left var x=screen.availwidth-10 self.moveto(x,(screen.availheight-xheight)/2) for (var c=1; c<=(x-(-xwidth))/2; c++) self.moveto((x-c),(screen.availheight-xheight)/2) } if (direction == 4){ //right var x=screen.availwidth+(xwidth-10) self.moveto((screen.availwidth-x),(screen.availheight-xheight)/2) for (var c=1; c<=(screen.availwidth-(-xwidth))/2; c++) self.moveto(((screen.availwidth-x)+c),(screen.availheight-xheight)/2) } } } for (c=1; c<=4; c++) winscroll(c,400,400) //--></script>