<SCRIPT language=JavaScript1.2>
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = -30;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat_left() {
if(IE) {
diffY = document.body.scrollTop;
diffX = 0;
}
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater_left.style.pixelTop += percent;
if(NS) document.floater_left.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater_left.style.pixelLeft += percent;
if(NS) document.floater_left.top += percent;
lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat_left()",1);
function heartBeat_right() {
if(IE) {
diffY = document.body.scrollTop;
diffX = 0;
}
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater_right.style.pixelTop += percent;
if(NS) document.floater_right.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater_right.style.pixelLeft += percent;
if(NS) document.floater_right.top += percent;
lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat_right()",1);
</SCRIPT>
<DIV id=floater_left
style="Z-INDEX: 3; LEFT: 5px; WIDTH: 112px; POSITION: absolute; TOP: 156px; HEIGHT: 90px; visibility: visible;">
<TABLE height=278 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top> <table cellspacing=0 cellpadding=0 border=0>
<tbody>
<tr>
<td valign="top"> </td>
</tr>
</tbody>
</table>
<a href="http://wpa.qq.com/msgrd?V=1&Uin=406644845&Site=%B7%E7%C5%B5%CD%F8%C2%E7&Menu=yes" target="_blank"><img src="img/lovely_off.gif" width="110" height="60" border="0"></a></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<DIV id=floater_right
style="Z-INDEX: 3; LEFT: 880px; WIDTH: 112px; POSITION: absolute; TOP: 156px; HEIGHT: 90px; visibility: visible;">
<TABLE height=278 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top> <table cellspacing=0 cellpadding=0 border=0>
<tbody>
<tr>
<td valign="top"> </td>
</tr>
</tbody>
</table>
<a href="http://wpa.qq.com/msgrd?V=1&Uin=406644845&Site=%B7%E7%C5%B5%CD%F8%C2%E7&Menu=yes" target="_blank"><img src="img/lovely_off.gif" width="110" height="60" border="0"></a></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
更多的[原创]双联广告条移动代码请到论坛查看: http://BBS.TC711.COM
【 双击滚屏 】 【 评论 】 【 收藏 】 【 打印 】 【 关闭 】
来源:
互联网
日期:2006-5-20