CSDN博客

img ycl111

窗口特效,(滚动)

发表于2004/9/27 16:17:00  1509人阅读

<SCRIPT language=javascript>
<!-- Begin
function aa()
{
Resize_WindowX = window.screen.availWidth;;
Resize_WindowY = window.screen.availHeight;;
self.resizeTo(Resize_WindowX,Resize_WindowY);
}
function WinScroll(direction,xWidth,xHeight){
if ((navigator.appVersion.indexOf('4')!= -1)){
self.resizeTo(xWidth,xHeight)
if (direction == 1){
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){
var x=screen.availHeight+screen.Height
self.moveTo(0,(screen.availHeight-x))
for (var c=0; c<=screen.availHeight+30; c++)
self.moveTo(0,(screen.availHeight-x)+c)
}
if (direction == 3){
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){
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)
}
}
}

WinScroll(2,400,400);
aa();
//  End -->
</script>

阅读全文
0 0

相关文章推荐

img
取 消
img