简单实用的js对联广告代码
&<script language="javascript"&>
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent&>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin12.style.pixelTop+=percent;
document.all.lovexin14.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
suspendcode12="&<p id=lovexin12 style='right:2px;POSITION:absolute;TOP:406px;'&>&<iframe width=110 height=163 frameborder=0 scrolling=no src='qq.html'&>&</iframe&>&</p&>"
document.write(suspendcode12);
suspendcode14="&<p id=lovexin14 style='left:2px;POSITION:absolute;TOP:96px;'&>&<iframe width=110 height=163 frameborder=0 scrolling=no src='qq.html'&>&</iframe&>&</p&>"
document.write(suspendcode14);
window.setInterval("heartBeat()",1);
&</script&>
标签: