特效在窗口左边,可否改在窗口右边???
效果页面代码:
<script> <BR> ad_p1_sp15_n6 = ''; <BR> ad_p1_sp15_n7 = ''; <BR> ad_p1_sp15_n8 = ''; <BR> </script>
<script>document.write(ad_p1_sp15_n6);</script>
|
<script> <BR><!-- <BR> document.getElementById("divTopAd").innerHTML = document.getElementById("divTopAdTmp").innerHTML; <BR> document.getElementById("divTopAdTmp").innerHTML = ""; <BR>//--> <BR></script>
<script>document.write(ad_p1_sp15_n7);</script>
<script>document.write(ad_p1_sp15_n8);</script>
<script> <BR><!-- <BR> document.getElementById("divBottomAd").innerHTML = document.getElementById("divBottomAdTmp").innerHTML; <BR> document.getElementById("divBottomAdTmp").innerHTML = ""; <BR>//--> <BR></script>
<script>src="menu.js"></script>
menu.js 文件代码:
[Copy to clipboard] [ - ]CODE:
//----begin-----共用函数-----
function buildBar()
{
if(barText.indexOf('
-1)
{
tempBar=barText;
}
else
{
for (b=0;b
{
tempBar+=barText.charAt(b)+"
";
}
}
document.write(' | ')
}
//----end-----共用函数-----
//----begin-----IE浏览器部分-----
function moveIEOut()
{
if (ssm.pixelLeft {
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-(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();
}
}
함수 buildIEMenu()
{
document.write('')
document.write('
'); ');
for(i=0;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('');
}
if(!ssmItems[i][1])
{
document.write(' ' ssmItems[i][0] '
| ')
}
else
{
if(!ssmItems[i][2])
{
ssmItems[i][2]=linkTarget;
}
document.write(' | ')
}
if(ssmItems[i][4]!="no"&&barBuilt==0)
{
buildBar();
barBuilt=1;
}
if(ssmItems[i][4]!="no")
{
document.write('
')
}
}
document.write('
for(i=0;i
ad_p1_sp15_n6 = '';
ad_p1_sp15_n7 = '';
ad_p1_sp15_n8 = '';
{ <script>document.write(ad_p1_sp15_n6);</script> if(!ssmItems[i][3]) <script> <BR><!-- <BR> document.getElementById("divTopAd").innerHTML = document.getElementById("divTopAdTmp").innerHTML; <BR> document.getElementById("divTopAdTmp").innerHTML = ""; <BR>//--> <BR></script> { <script>document.write(ad_p1_sp15_n7);</script> ssmItems[i][3]= menuCols; <script>document.write(ad_p1_sp15_n8);</script> ssmItems[i][5]=menuWidth-1; <script> <BR><!-- <BR> document.getElementById("divBottomAd").innerHTML = document.getElementById("divBottomAdTmp").innerHTML; <BR> document.getElementById("divBottomAdTmp").innerHTML = ""; <BR>//--> <BR></script> } <script>src="menu.js"></script> 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(''); } if(!ssmItems[i][1]) { document.write(' ' ssmItems[i][0] '
| ') } else { if(!ssmItems[i][2]) { ssmItems[i][2]=linkTarget; } document.write(' | ') } if(ssmItems[i][4]!="no"&&barBuilt==0) { buildBar(); barBuilt=1; if (ssmitems [i] [4]! = "no") oxpore.write ( '
') document.write('
')
document.write('
')
theleft=-menuWidth;lastY=0;setTimeout('initIESlide();', 1)
}
//--end------IE浏览器부분-- ---
//----begin----NS부분분-----
function moveNSOut()
{
if (parseInt(ssm.left) {
clearTimeout(이동);moving = setTimeout('moveNSOut()', slideSpeed);slideNSMenu(10)
}
else
{
clearTimeout (이사 );moving=setTimeout('null',1)
}
}
function moveNSBack()
{
clearTimeout(moving);moving = setTimeout('moveNSBack1() ', waitTime)
}
function moveNSBack1()
{
if (parseInt(ssm.left)>(-menuWidth))
{
clearTimeout(이동) ;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;
}
함수 makeNSStatic()
{
winY = window.pageYOffset;
if (winY!=lastY&&winY>YOffset-staticYOffset)
{
smooth = .2 *(winY - lastY - YOffset staticYOffset);
}
else if (YOffset-staticYOffset lastY>YOffset-staticYOffset)
{
부드러움 = .2 *(winY - lastY - (YOffset-(YOffset-winY)));
}
else
{
부드러움=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)
}
함수 initNSSlide()
{
bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "표시";
if (menuIsStatic=="yes")
{
makeNSStatic();
}
}
function buildNSMenu()
{
document.write('')
document.write('');
for(i=0;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('');
}
if(!ssmItems[i][1])
{
document.write(' ' ssmItems[i][0] '
| ')
}
else
{
if(!ssmItems[i][2])
{ ssmItems[i][2]= 링크타겟;
}
document.write('
') | }
if(ssmItems[i][4]!="no"&&barBuilt==0)
{
buildBar();
barBuilt=1;
}
if(ssmItems[i][4]!="no")
{
document.write('
')
}
}
document.write('
')
document.write('')
theleft=-menuWidth;lastY=0;setTimeout('initNSSlide();', 1)
}
//-----끝------NS부분분-----
//------시작------NS6부분부분------
function moveNS6Out()
{
if (parseInt(ssm.left) {
clearTimeout(moving);moving = setTimeout('moveNS6Out()', slideSpeed);slideNS6Menu (10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function moveNS6Back()
{
clearTimeout(이동);moving = setTimeout('moveNS6Back1()', waitTime)
}
function moveNS6Back1()
{
if (parseInt(ssm.left)>( -menuWidth))
{
clearTimeout(이동);moving = setTimeout('moveNS6Back1()', slideSpeed);slideNS6Menu(-10)
}
else
{ clearTimeout (moving);moving=setTimeout('null',1)
}
}
function slideNS6Menu(num)
{
ssm.left = parseInt(ssm.left) 숫자;
}
함수 makeNS6Static()
{
winY = window.pageYOffset;
if (winY!=lastY&&winY>YOffset-staticYOffset)
{
smooth = .2 *(winY - lastY - YOffset staticYOffset);
}
else if (YOffset-staticYOffset lastY>YOffset-staticYOffset)
{
부드러움 = .2 *(winY - lastY - (YOffset-(YOffset-winY)));
}
else
{
부드러움=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)
}
함수 initNS6Slide()
{
ssm=document.getElementById("thessm").style;bssm=document .getElementById("basessm").style;
bssm.clip="direct(0 " document.getElementById("thessm").offsetWidth " " document.getElementById("thessm").offsetHeight " 0)";
ssm.visibility="visible";
if (menuIsStatic=="yes")
{
makeNS6Static();
}
}
function buildNS6Menu()
{
document.write('')
document.write('
') document.write(''); for(i=0;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(''); } if(!ssmItems[i][1]) { document.write(' ' ssmItems[i][0] '
| ') } else { if(!ssmItems[i][2]) { ssmItems[i][2]= 링크타겟; } document.write('
') | } if(ssmItems[i][4]!="no"&&barBuilt==0) { buildBar(); barBuilt=1; } if(ssmItems[i][4]!="no") { document.write(' ') } } document.write(' ') document.write('
') document.write('') theleft=-menuWidth;lastY=0;setTimeout('initNS6Slide();', 1) } // -----끝------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="예"; menuWidth=100; menuCols=2; hdrFontFamily="verdana"; hdrFontSize="2"; hdrFontColor="#000000"; hdrBGColor="#ffffff"; hdrAlign="왼쪽"; hdrVAlign="center"; hdrHeight="15"; linkFontFamily="베르다나"; linkFontSize="2"; linkBGColor="흰색"; linkOverBGColor="#FFFF99"; linkTarget="_top"; linkAlign="왼쪽"; barBGColor=""; barFontFamily="베르다나"; barFontSize="2"; barFontColor="#ff3333"; barVAlign="center"; 바폭=20; barText="※乐趣 个人事务所※";
ssmItems[0]=["我要注册", "/eden/ctl_eden_login.php?ctlObj=login_protocol", "_blank"] ssmItems[1]=["我的首页", "/eden/ctl_eden.php", "_blank"] ssmItems[2]=["내 마음에 드는 것", "/eden/ctl_eden.php?ctlOprType=get&ctlObj=favorites", "_blank"] ssmItems[3]=["나의 사랑스러운 친구", "/eden/ctl_eden.php?ctlOprType=get&ctlObj=friends", "_blank"] ssmItems[4]=["나의 사랑스러운 말", "/eden /ctl_eden.php?ctlOprType=get&ctlObj=msgs", "_blank"] ssmItems[5]=["我的论坛", "/eden/forum/ctl_eden_forum.php", "_blank"] ssmItems [6]=["나의 친구", "/eden/blog/", "_blank"] ssmItems[7]=["나의 친구", "/eden/album/", "_blank"] ssmItems[8]=["图 나뭇잎 관리", "/eden/upload/ctl_upload.php", "_blank"] ssmItems[9]=["高级搜索","/eden/search_menu.html ", "_blank"] ssmItems[10]=["热线帮助", "http://hk.netsh.com/eden/bbs/154/", "_blank"] ssmItems[11] =["退 Out登录", "/eden/ctl_eden_login.php?ctlOprType=put&ctlObj=login_out", ""]
if(IE) { buildIEMenu(); } else if(NS) { buildNSMEnu(); } else if(NS6) { buildNS6MEnu(); } else { alert("不能运行!"); } |