关闭

对联广告代码

535人阅读 评论(0) 收藏 举报
<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>
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:32671次
    • 积分:478
    • 等级:
    • 排名:千里之外
    • 原创:8篇
    • 转载:24篇
    • 译文:0篇
    • 评论:7条
    最新评论