zoukankan      html  css  js  c++  java
  • 对联广告

    <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 = 0;
    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.width =90");
    eval("document.all." + layerName + ".style.posLeft = x");
    setTimeout("MoveLeftLayer('AdLayer1');", 20);
    }
    function MoveRightLayer(layerName) {
    var x = 5;
    var y =0;
    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.width =90");
    eval("document.all." + layerName + ".style.posRight = x");
    setTimeout("MoveRightLayer('AdLayer2');", 20);
    }
    document.write("<div id=AdLayer1 style='position: absolute; 111px;visibility:hidden;z-index:1'><img src=images/tf1.gif></div>"
    +"<div id=AdLayer2 style='position: absolute; 111px;visibility:hidden;z-index:1'><img src=images/tf2.gif></div>");
    initEcAd()
    //-->
    </SCRIPT>
  • 相关阅读:
    VuGen错误处理函数
    LR的日志
    创建性能测试脚本时如何选择HTML模式和URL模式
    Java变量
    查找&排序
    selenium执行JS
    Python中 is 和 == 的区别
    Python中 and or的计算规则
    selenium使用location定位元素坐标偏差
    错误:Could not find an available JavaScript runtime
  • 原文地址:https://www.cnblogs.com/bgming/p/247368.html
Copyright © 2011-2022 走看看