网上抓的一个特效
作者:尘世聚散 | 来源:互联网 | 2023-10-13 01:14
网上抓的一个特效-特效在窗口左边,可否改在窗口右边???效果页面代码: ad_p1_sp15_n
特效在窗口左边,可否改在窗口右边???
效果页面代码:
-1)
{
tempBar=barText;
}
else
{
for (b=0;b {
tempBar+=barText.charAt(b)+"
";
}
}
document.write(' | ')
}
//----end-----共用函数-----
//----begin-----IE浏览器部分-----
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-(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('')
}
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('initIESlide();', 1)
}
//----end-----IE浏览器部分-----
//----begin-----NS部分-----
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-(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.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "show";
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]=linkTarget;
}
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)
}
//-----end------NS部分-----
//-----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-(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('')
}
if(ssmItems[i][4]!="no"&&barBuilt==0)
{
buildBar();
barBuilt=1;
}
if(ssmItems[i][4]!="no")
{
document.write('')
}
}
document.write('')
document.write('')
document.write('
')