为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

太平服装网-对联广告JS代码,无关闭代码 www.taipin5.com

2013-09-09 2页 doc 23KB 24阅读

用户头像

is_508614

暂无简介

举报
太平服装网-对联广告JS代码,无关闭代码 www.taipin5.comfunction 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('AdLayer...
太平服装网-对联广告JS代码,无关闭代码 www.taipin5.com
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("" +""); initEcAd() // JavaScript Document // 注意 链接:http://www.taipin5.com/ 太平服装网可以改成你想要指向的链接位置,后面的图片的路径改成网站的图片URL 以下是调用方式: 1、将以上文件存成:taipin.js 2、在想要显示对联广告的页面调用: 注页文件的URL路径正确。
/
本文档为【太平服装网-对联广告JS代码,无关闭代码 www.taipin5.com】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索