• 对联广告


    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 = 100;// 左侧广告距离页首高度
    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 = parseInt(y)");
    eval("document.all." + layerName + ".style.posLeft = x");
    setTimeout("MoveLeftLayer('AdLayer1');", 20);
    }
    function MoveRightLayer(layerName) {
    var x = 5;
    var y = 100;// 右侧广告距离页首高度
    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.sojump.com/jq/3353764.aspx' target='_blank'><img src=http://linglingmall.com/upload/2013/12/20/dl.jpg  border='0'></a></div>"
    +"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><a href='http://www.sojump.com/jq/3353764.aspx' target='_blank'><img src=http://linglingmall.com/upload/2013/12/20/dl.jpg border='0'></a></div>");
    initEcAd()
    // JavaScript Document
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>对联广告</title>
    </head>
    <body>
     <script src="http://linglingmall.com/upload/2013/12/20/ad-01.js" language="JavaScript"></script>
    </body>
    </html>

    wKioL1NyCRGy3zSmAAFSuBU_WA4869.jpg

  • 相关阅读:
    Java IO流 简介
    Centos8安装java部署环境
    RedisTemplate
    手把手教windows上安装linux虚拟机及环境配置
    使用Swagger2构建 RESTful API文档
    VMware 安装 Centos 7 虚拟机配置网络
    别再写满屏的 try catch 了
    isEmpty 和 isBlank 的用法区别
    SpringBoot 中必须掌握的45个注解
    数组的栈方法
  • 原文地址:https://www.cnblogs.com/umgsai/p/3908089.html
Copyright © 2020-2023  润新知