web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

帝国cms如何实现右下角广告漂浮代码

369 ℃
     

将以下代码添加到需要显示的网页即可!

<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,0,250,0"href = "#"onclick = "CloseIVR();return false;"target = "_self" > <area shape = "rect"coords = "0,1,250,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>

 

javascript语法中不等于null和空字符串的3种判断方式

javascript语法读取文本文件代码(PHP代码读取文本文件)

javascript语法中document对象基本介绍

javascript语法对当前链接URL对象处理

原生javascript根据class追加div内容

标签: document语法, javascript语法, script标签, writeln, 代码

上面是“帝国cms如何实现右下角广告漂浮代码”的全面内容,想了解更多关于 帝国cms 内容,请继续关注web建站教程。

当前网址:https://ipkd.cn/webs_1333.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

当前位置: 网站首页 > 帝国cms
本文共计1581个字,预计阅读时长11分钟
生活小工具,收录了80多款小工具
上一篇: 推荐一个可以查询老黄历的网站,可以根据五行取名!
下一篇: 详细介绍HTTP状态码不同之处的原因(什么原因导致的)
x 打工人ai神器