帝国cms模板网为大家提供个右下角广告漂浮代码
发布时间:2021-02-23 14:36:11 所属栏目:教程 来源:网络整理
导读:将以下代码添加到需要显示的网页即可! SCRIPT language="javascript"document.writeln(" script type="text/javascript"");document.writeln(" !--");document.writeln("document.writeln(" div id="ShowAD" style="position:absolute; z-index: 100;" ");"
|
将以下代码添加到需要显示的网页即可! <SCRIPT language="javascript">
document.writeln(" <script type="text/javascript">");
document.writeln(" <!--");
document.writeln("document.writeln(" <div id="ShowAD" style="position:absolute; z-index: 100;"> ");");
document.writeln("document.writeln(" <div id="ImgLayer" style="position:absolute; z-index:1; left: 0px;"> ");");
document.writeln("document.writeln(" <img src="http://51500w.cn/images/wt.jpg" border="0" usemap="#ivrinMap">");");
document.writeln("document.writeln("<map name="ivrinMap"><area shape="rect" coords="150,250,0" href="#" onclick="CloseIVR();return false;" target="_self"><area shape="rect" coords="0,1,150" href="http://goodlotto.net" target="_blank"></map>");");
document.writeln("document.writeln(" </div>");");
document.writeln("document.writeln("</div>");");
document.writeln("");
document.writeln("var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;");
document.writeln("var adst = document.getElementById("ShowAD").style;");
document.writeln("adst.top = ( bodyfrm.clientHeight - 140 ) + "px";");
document.writeln("adst.left = ( bodyfrm.clientWidth - 250 ) + "px";");
document.writeln("function moveR() {");
document.writeln(" adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 150 ) + "px";");
document.writeln(" adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 250 ) + "px";");
document.writeln("}");
document.writeln("setInterval("moveR();",80);");
document.writeln("function CloseIVR(){");
document.writeln(" adst.display='none';");
document.writeln("}");
document.writeln(" //-->");
document.writeln(" </script>");
document.writeln("");
</SCRIPT>
(编辑:ASP站长) 【免责声明】本站内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。 |
相关内容
未处理完善
-
无相关信息
最新更新


