111、打开窗口特效

111、打开窗口特效

脚本说明:

把如下代码加入<body>区域中

<SCRIPT LANGUAGE="JavaScript">

 

<!-- Begin

function expandingWindow(website) {

var heightspeed = 2; // vertical scrolling speed (higher = slower)

var widthspeed = 7;  // horizontal scrolling speed (higher = slower)

var leftdist = 0;    // distance to left edge of window

var topdist = 0;     // distance to top edge of window

if (document.all) {

var winwidth = window.screen.availWidth - leftdist;

var winheight = window.screen.availHeight - topdist;

var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");

for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {

sizer.resizeTo("1", sizeheight);

}

for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {

sizer.resizeTo(sizewidth, sizeheight);

}

sizer.location = website;

}

else

window.location = website;

}

//  End -->

</script>

<a href="http://www.7stk.com/" onClick="expandingWindow('http://www.7stk.com');return false;">网页特效代码</a>

Write a comment

Comments: 0