A special effect captured on the Internet

Source: Internet
Author: User

The special effect is on the left of the window. Can it be changed to the right of the window ???
Result Page code:
<SCRIPT language = javascript>
Ad_p1_sp15_n6 = '';
Ad_p1_sp15_n7 = '';
Ad_p1_sp15_n8 = '';
</SCRIPT>

<TABLE cellSpacing = 0 cellPadding = 0 width = 750 align = center border = 0>
<TBODY>
<TR>
<TD>
<DIV align = center>
<SCRIPT language = javascript> document. write (ad_p1_sp15_n6); </SCRIPT>
</DIV> </TD> </TR> </TBODY> </TABLE> </DIV>
<SCRIPT language = JavaScript>
<! --
Document. getElementById ("divTopAd"). innerHTML = document. getElementById ("divTopAdTmp"). innerHTML;
Document. getElementById ("divTopAdTmp"). innerHTML = "";
// -->
</SCRIPT>

<DIV id = divBottomAdTmp style = "DISPLAY: none">
<SCRIPT language = javascript> document. write (ad_p1_sp15_n7); </SCRIPT>
<BR>
<SCRIPT language = javascript> document. write (ad_p1_sp15_n8); </SCRIPT>
</DIV>
<SCRIPT language = JavaScript>
<! --
Document. getElementById ("divBottomAd"). innerHTML = document. getElementById ("divBottomAdTmp"). innerHTML;
Document. getElementById ("divBottomAdTmp"). innerHTML = "";
// -->
</SCRIPT>

<SCRIPT language = JavaScript
Src = "menu. js"> </SCRIPT>
Menu. js file code:

[Copy to clipboard] [-] CODE:
// ---- Begin ----- shared function -----
Function buildBar ()
{
If (barText. indexOf ('-1)
{
TempBar = barText;
}
Else
{
For (B = 0; B <barText. length; B ++)
{
TempBar + = barText. charAt (B) + "<BR> ";
}
}
Document. write ('<td align = "center" rowspan = "100" width = "' + barWidth + '" bgcolor = "' + barBGColor + '" valign = "' + barVAlign + '"> <a href =" http://www.netsh.com "target =" _ blank "alt =" Fun home "> </a> </TD> ')
}
// ---- End ----- shared function -----

// ---- Begin ----- IE browser part -----

Function moveIEOut ()
{
If (ssm. pixelLeft <0)
{
ClearTimeout (moving); moving = setTimeout ('moveieout () ', slideSpeed); slideIEMenu (10)
}
Else
{
ClearTimeout (moving); moving = setTimeout ('null', 1)
}
}

Function moveIEBack ()
{
ClearTimeout (moving); moving = setTimeout ('moveieback1 () ', waitTime)
}
Function moveIEBack1 ()
{
If (ssm. pixelLeft> (-menuWidth ))
{
ClearTimeout (moving); moving = setTimeout ('moveieback1 () ', slideSpeed); slideIEMenu (-10)
}
Else
{
ClearTimeout (moving); moving = setTimeout ('null', 1)
}
}

Function slideIEMenu (num)
{
Ssm. pixelLeft + = num;
}

Function makeIEStatic ()
{
WinY = document. body. scrollTop;
If (winY! = LastY & winY> YOffset-staticYOffset)
{
Smooth =. 2 * (winY-lastY-YOffset + staticYOffset );
}
Else if (YOffset-staticYOffset + lastY> YOffset-staticYOffset)
{
Smooth =. 2 * (winY-lastY-(YOffset-winY )));
}
Else
{
Smooth = 0;
}
If (smooth> 0)
{
Smooth = Math. ceil (smooth );
}
Else
{
Smooth = Math. floor (smooth );
}
Bssm. pixelTop + = smooth;
LastY = lastY + smooth;
SetTimeout ('makeiestatic () ', 1)
}

Function initIESlide ()
{
Ssm = document. all ("thessm"). style;
Bssm = document. all ("basessm"). style;
Bssm. clip = "rect (0" + thessm. offsetWidth + "" + thessm. offsetHeight + "0 )";
Bssm. visibility = "visible ";
If (menuIsStatic = "yes ")
{
MakeIEStatic ();
}
}

Function buildIEMenu ()
{
Document. write ('<DIV style = "line-height: 1.2;" ID = "basessm" style = "visibility: hidden; Position: Absolute; Left:' + XOffset + '; top: '+ YOffset +'; Z-Index: 20; width: '+ (menuWidth + barWidth + 10) +' "> <DIV style =" line-height: 1.2; "ID =" thessm "style =" Position: Absolute; Left: '+ (-menuWidth) +'; Top: 0; Z-Index: 20; "onmouseover =" moveIEOut () "onmouseout =" moveIEBack () "> ')
Document. write ('<table border = "0" cellpadding = "0" cellspacing = "1" width = "' + (menuWidth + barWidth + 2) + '"bgcolor ="' + menuBGColor + '"> ');
For (I = 0; I <ssmItems. length; I ++)
{
If (! SsmItems [I] [3])
{
SsmItems [I] [3] = menuCols;
SsmItems [I] [5] = menuWidth-1;
}
Else if (ssmItems [I] [3]! = MenuCols)
{
SsmItems [I] [5] = Math. round (menuWidth * (ssmItems [I] [3]/menuCols)-1 );
}
If (ssmItems [I-1] & ssmItems [I-1] [4]! = "No ")
{
Document. write ('<TR> ');
}
If (! SsmItems [I] [1])
{
Document. write ('<td style = "line-height: 1.2; "bgcolor =" '+ hdrBGColor +' "ALIGN =" '+ hdrAlign +' "VALIGN =" '+ hdrVAlign +' "WIDTH =" '+ ssmItems [I] [5] + '"COLSPAN ="' + ssmItems [I] [3] + '"> <font face ="' + hdrFontFamily + '"Size ="' + hdrFontSize + '"COLOR = "'+ hdrFontColor +'"> <B> '+ ssmItems [I] [0] +' </B> </font> </td> ')
}
Else
{
If (! SsmItems [I] [2])
{
SsmItems [I] [2] = linkTarget;
}
Document. write ('<TD style = "line-height: 1.2; "BGCOLOR =" '+ linkBGColor +' "onmouseover =" bgColor = \ ''+ linkOverBGColor + '\'" onmouseout = "bgColor = \'' + linkBGColor + '\'" WIDTH = "'+ ssmItems [I] [5] +'" COLSPAN = "'+ ssmItems [I] [3] +'"> <ILAYER> <LAYER onmouseover = "bgColor = \ ''+ linkOverBGColor + '\'" onmouseout = "bgColor = \'' + linkBGColor + '\' "WIDTH =" 100% "ALIGN =" '+ linkAlign + '"> <DIV style = "line-height: 1.2; "ALIGN =" '+ linkAlign +' "> <FONT face =" '+ linkFontFamily +' "Size =" '+ linkFontSize +' "> <a href =" '+ ssmItems [I] [1] + '"target ="' + ssmItems [I] [2] + '"style =" font-size: 12px "> '+ ssmItems [I] [0] +' </DIV> </LAYER> </ILAYER> </TD> ')
}
If (ssmItems [I] [4]! = "No" & barBuilt = 0)
{
BuildBar ();
BarBuilt = 1;
}
If (ssmItems [I] [4]! = "No ")
{
Document. write ('</TR> ')
}
}
Document. write ('</table> ')
Document. write ('</DIV> ')
Theleft =-menuWidth; lastY = 0; setTimeout ('initieslide (); ', 1)
}
// ---- End ----- IE browser part -----

// ---- Begin ----- NS part -----
Function moveNSOut ()
{
If (parseInt (ssm. left) <0)
{
ClearTimeout (moving); moving = setTimeout ('movensout () ', slideSpeed); slideNSMenu (10)
}
Else
{
ClearTimeout (moving); moving = setTimeout ('null', 1)
}
}

Function moveNSBack ()
{
ClearTimeout (moving); moving = setTimeout ('movensback1 () ', waitTime)
}

Function moveNSBack1 ()
{
If (parseInt (ssm. left)> (-menuWidth ))
{
ClearTimeout (moving); moving = setTimeout ('movensback1 () ', slideSpeed); slideNSMenu (-10)
}
Else
{
ClearTimeout (moving); moving = setTimeout ('null', 1)
}
}

Function slideNSMenu (num)
{
Ssm. left = parseInt (ssm. left) + num;
Bssm. clip. right + = num; bssm2.clip. right + = num;
}

Function makeNSStatic ()
{
WinY = window. pageYOffset;
If (winY! = LastY & winY> YOffset-staticYOffset)
{
Smooth =. 2 * (winY-lastY-YOffset + staticYOffset );
}
Else if (YOffset-staticYOffset + lastY> YOffset-staticYOffset)
{
Smooth =. 2 * (winY-lastY-(YOffset-winY )));
}
Else
{
Smooth = 0;
}
If (smooth> 0)
{
Smooth = Math. ceil (smooth );
}
Else
{
Smooth = Math. floor (smooth );
}
Bssm. top = parseInt (bssm. top) + smooth
LastY = lastY + smooth;
SetTimeout ('makensstatic () ', 1)
}

Function initNSSlide ()
{
Bssm = document. layers ["basessm1"];
Bssm2=bssm.doc ument. layers ["basessm2" ];ssm=bssm2.doc ument. layers ["thessm"];
Bssm2.clip. left = 0; ssm. visibility = "show ";
If (menuIsStatic = "yes ")
{
MakeNSStatic ();
}
}

Function buildNSMenu ()
{
Document. write ('<LAYER name = "basessm1" top = "' + YOffset + '" LEFT =' + XOffset + 'visibility = "show"> <ILAYER name = "basessm2"> <LAYER visibility = "hide" name = "thessm" bgcolor = "'+ menuBGColor +'" left = "'+ (-menuWidth) + '"onmouseover =" moveNSOut () "onmouseout =" moveNSBack () "> ')
Document. write ('<table border = "0" cellpadding = "0" cellspacing = "1" width = "' + (menuWidth + barWidth + 2) + '"bgcolor ="' + menuBGColor + '"> ');
For (I = 0; I <ssmItems. length; I ++)
{
If (! SsmItems [I] [3])
{
SsmItems [I] [3] = menuCols;
SsmItems [I] [5] = menuWidth-1;
}
Else if (ssmItems [I] [3]! = MenuCols)
{
SsmItems [I] [5] = Math. round (menuWidth * (ssmItems [I] [3]/menuCols)-1 );
}
If (ssmItems [I-1] & ssmItems [I-1] [4]! = "No ")
{
Document. write ('<TR> ');
}
If (! SsmItems [I] [1])
{
Document. write ('<td style = "line-height: 1.2; "bgcolor =" '+ hdrBGColor +' "ALIGN =" '+ hdrAlign +' "VALIGN =" '+ hdrVAlign +' "WIDTH =" '+ ssmItems [I] [5] + '"COLSPAN ="' + ssmItems [I] [3] + '"> <font face ="' + hdrFontFamily + '"Size ="' + hdrFontSize + '"COLOR = "'+ hdrFontColor +'"> <B> '+ ssmItems [I] [0] +' </B> </font> </td> ')
}
Else
{
If (! SsmItems [I] [2])
{
SsmItems [I] [2] = linkTarget;
}
Document. write ('<TD style = "line-height: 1.2; "BGCOLOR =" '+ linkBGColor +' "onmouseover =" bgColor = \ ''+ linkOverBGColor + '\'" onmouseout = "bgColor = \'' + linkBGColor + '\'" WIDTH = "'+ ssmItems [I] [5] +'" COLSPAN = "'+ ssmItems [I] [3] +'"> <ILAYER> <LAYER onmouseover = "bgColor = \ ''+ linkOverBGColor + '\'" onmouseout = "bgColor = \'' + linkBGColor + '\' "WIDTH =" 100% "ALIGN =" '+ linkAlign + '"> <DIV style = "line-height: 1.2; "ALIGN =" '+ linkAlign +' "> <FONT face =" '+ linkFontFamily +' "Size =" '+ linkFontSize +' "> <a href =" '+ ssmItems [I] [1] + '"target ="' + ssmItems [I] [2] + '"style =" font-size: 12px "> '+ ssmItems [I] [0] +' </DIV> </LAYER> </ILAYER> </TD> ')
}
If (ssmItems [I] [4]! = "No" & barBuilt = 0)
{
BuildBar ();
BarBuilt = 1;
}
If (ssmItems [I] [4]! = "No ")
{
Document. write ('</TR> ')
}
}
Document. write ('</table> ')
Document. write ('</LAYER> </ILAYER> </LAYER> ')
Theleft =-menuWidth; lastY = 0; setTimeout ('initnslide (); ', 1)
}
// ----- End ------ NS part -----

// ----- Begin ------ NS6 -----
Function moveNS6Out ()
{
If (parseInt (ssm. left) <0)
{
ClearTimeout (moving); moving = setTimeout ('movens6out () ', slideSpeed); slideNS6Menu (10)
}
Else
{
ClearTimeout (moving); moving = setTimeout ('null', 1)
}
}
Function moveNS6Back ()
{
ClearTimeout (moving); moving = setTimeout ('movens6back1 () ', waitTime)
}
Function moveNS6Back1 ()
{
If (parseInt (ssm. left)> (-menuWidth ))
{
ClearTimeout (moving); moving = setTimeout ('movens6back1 () ', slideSpeed); slideNS6Menu (-10)
}
Else
{
ClearTimeout (moving); moving = setTimeout ('null', 1)
}
}

Function slideNS6Menu (num)
{
Ssm. left = parseInt (ssm. left) + num;
}

Function makeNS6Static ()
{
WinY = window. pageYOffset;
If (winY! = LastY & winY> YOffset-staticYOffset)
{
Smooth =. 2 * (winY-lastY-YOffset + staticYOffset );
}
Else if (YOffset-staticYOffset + lastY> YOffset-staticYOffset)
{
Smooth =. 2 * (winY-lastY-(YOffset-winY )));
}
Else
{
Smooth = 0;
}
If (smooth> 0)
{
Smooth = Math. ceil (smooth );
}
Else
{
Smooth = Math. floor (smooth );
}
Bssm. top = parseInt (bssm. top) + smooth
LastY = lastY + smooth;
SetTimeout ('makens6static () ', 1)
}

Function initNS6Slide ()
{
Ssm = document. getElementById ("thessm"). style; bssm = document. getElementById ("basessm"). style;
Bssm. clip = "rect (0" + document. getElementById ("thessm"). offsetWidth + "" + document. getElementById ("thessm"). offsetHeight + "0 )";
Ssm. visibility = "visible ";
If (menuIsStatic = "yes ")
{
MakeNS6Static ();
}
}

Function buildNS6Menu ()
{
Document. write ('<DIV style = "line-height: 1.2;" ID = "basessm" style = "visibility: hidden; Position: Absolute; Left:' + XOffset + '; top: '+ YOffset +'; Z-Index: 20; width: '+ (menuWidth + barWidth + 10) +' "> <DIV style =" line-height: 1.2; "ID =" thessm "style =" Position: Absolute; Left: '+ (-menuWidth) +'; Top: 0; Z-Index: 20; "onmouseover =" moveNS6Out () "onmouseout =" moveNS6Back () "> ')
Document. write ('<table border = "0" cellpadding = "0" cellspacing = "0" width = "' + (menuWidth + barWidth + 2) + '"bgcolor ="' + menuBGColor + '"> <TR> <TD> ')
Document. write ('<table border = "0" cellpadding = "0" cellspacing = "1" width = "' + (menuWidth + barWidth + 2) + '"bgcolor ="' + menuBGColor + '"> ');
For (I = 0; I <ssmItems. length; I ++)
{
If (! SsmItems [I] [3])
{
SsmItems [I] [3] = menuCols;
SsmItems [I] [5] = menuWidth-1;
}
Else if (ssmItems [I] [3]! = MenuCols)
{
SsmItems [I] [5] = Math. round (menuWidth * (ssmItems [I] [3]/menuCols)-1 );
}
If (ssmItems [I-1] & ssmItems [I-1] [4]! = "No ")
{
Document. write ('<TR> ');
}
If (! SsmItems [I] [1])
{
Document. write ('<td style = "line-height: 1.2; "bgcolor =" '+ hdrBGColor +' "ALIGN =" '+ hdrAlign +' "VALIGN =" '+ hdrVAlign +' "WIDTH =" '+ ssmItems [I] [5] + '"COLSPAN ="' + ssmItems [I] [3] + '"> <font face ="' + hdrFontFamily + '"Size ="' + hdrFontSize + '"COLOR = "'+ hdrFontColor +'"> <B> '+ ssmItems [I] [0] +' </B> </font> </td> ')
}
Else
{
If (! SsmItems [I] [2])
{
SsmItems [I] [2] = linkTarget;
}
Document. write ('<TD style = "line-height: 1.2; "BGCOLOR =" '+ linkBGColor +' "onmouseover =" bgColor = \ ''+ linkOverBGColor + '\'" onmouseout = "bgColor = \'' + linkBGColor + '\'" WIDTH = "'+ ssmItems [I] [5] +'" COLSPAN = "'+ ssmItems [I] [3] +'"> <ILAYER> <LAYER onmouseover = "bgColor = \ ''+ linkOverBGColor + '\'" onmouseout = "bgColor = \'' + linkBGColor + '\' "WIDTH =" 100% "ALIGN =" '+ linkAlign + '"> <DIV style = "line-height: 1.2; "ALIGN =" '+ linkAlign +' "> <FONT face =" '+ linkFontFamily +' "Size =" '+ linkFontSize +' "> <a href =" '+ ssmItems [I] [1] + '"target ="' + ssmItems [I] [2] + '"style =" font-size: 12px "> '+ ssmItems [I] [0] +' </DIV> </LAYER> </ILAYER> </TD> ')
}
If (ssmItems [I] [4]! = "No" & barBuilt = 0)
{
BuildBar ();
BarBuilt = 1;
}
If (ssmItems [I] [4]! = "No ")
{
Document. write ('</TR> ')
}
}
Document. write ('</table> ')
Document. write ('</TD> </TR> </TABLE> ')
Document. write ('</DIV> ')
Theleft =-menuWidth; lastY = 0; setTimeout ('initns6slide (); ', 1)
}
// ----- End ------ NS6 -----

NS6 = (document. getElementById &&! Document. all)
IE = (document. all)
NS = (navigator. appName = "Netscape" & navigator. appVersion. charAt (0) = "4 ")
TempBar = ''; barBuilt = 0; ssmItems = new Array ();
Moving = setTimeout ('null', 1)

Yoffset= 150;
XOffset = 0;
StaticYOffset = 30;
SlideSpeed = 20
WaitTime = 50;
MenuBGColor = "";
MenuIsStatic = "yes ";
MenuWidth = 100;
MenuCols = 2;
HdrFontFamily = "verdana ";
HdrFontSize = "2 ";
HdrFontColor = "#000000 ";
HdrBGColor = "# ffffff ";
HdrAlign = "left ";
HdrVAlign = "center ";
HdrHeight = "15 ";
LinkFontFamily = "Verdana ";
LinkFontSize = "2 ";
LinkBGColor = "white ";
LinkOverBGColor = "# FFFF99 ";
LinkTarget = "_ top ";
LinkAlign = "Left ";
BarBGColor = "";
BarFontFamily = "Verdana ";
BarFontSize = "2 ";
BarFontColor = "# ff3333 ";
BarVAlign = "center ";
BarWidth = 20;
BarText = "※fun firms ※";

SsmItems [0] = ["I want to register", "/eden/ctl_eden_login.php? CtlObj = login_protocol "," _ blank "]
SsmItems [1] = ["my homepage", "/eden/ctl_eden.php", "_ blank"]
SsmItems [2] = ["My favorites", "/eden/ctl_eden.php? CtlOprType = get & ctlObj = favorites "," _ blank "]
SsmItems [3] = ["my friends", "/eden/ctl_eden.php? CtlOprType = get & ctlObj = friends "," _ blank "]
SsmItems [4] = ["my messages", "/eden/ctl_eden.php? CtlOprType = get & ctlObj = msgs "," _ blank "]
SsmItems [5] = ["My forum", "/eden/forum/ctl_eden_forum.php", "_ blank"]
SsmItems [6] = ["my blog", "/eden/blog/", "_ blank"]
SsmItems [7] = ["my album", "/eden/album/", "_ blank"]
SsmItems [8] = ["image management", "/eden/upload/ctl_upload.php", "_ blank"]
SsmItems [9] = ["Advanced Search", "/eden/search_menu.html", "_ blank"]
SsmItems [10] = ["hotline help", "http://hk.netsh.com/eden/bbs/154/", "_ blank"]
SsmItems [11] = ["log out", "/eden/ctl_eden_login.php? CtlOprType = put & ctlObj = login_out "," "]

If (IE)
{
BuildIEMenu ();
}
Else if (NS)
{
BuildNSMEnu ();
}
Else if (NS6)
{
BuildNS6MEnu ();
}
Else
{
Alert ("cannot run! ");
}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.