对联广告代码

<script language="javascript">
function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'
document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 5;
var y = 165 ;
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 5;
var y = 165;
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
setTimeout("MoveRightLayer('AdLayer2');", 20);
}
document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'>"
 + "<a href=http://www.####.com  target=_blank ><img src='http://www.****/logo.gif'  border=0></a>"
 + "</div>"
  + "<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'>"
  + "<a href=http://www.****.com  target=_blank ><img src='http://www.****/logo.gif'  border=0></a>"
  + "</div>");
initEcAd()
  </script>
阅读更多
个人分类: JS专区
上一篇Oracle里时间的应用
下一篇如何防止SQL入注
想对作者说点什么? 我来说一句

可关闭的对联广告JS代码

2014年07月02日 30KB 下载

符合w3c对联广告代码.txt

2008年08月28日 3KB 下载

没有更多推荐了,返回首页

关闭
关闭