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

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

638 ℃

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

<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>

 

Trae:新一代免费的AI编程工具

JavaScript动态日历:如何用变量num精准控制月份递增?

javascript语法如何把json文件输出到html页面上

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

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

javascript语法中document对象基本介绍

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

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

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

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

当前位置: 网站首页 > 帝国cms
本文共计1581个字,预计阅读时长11分钟
生活小工具,收录了80多款小工具
上一篇: 程序员正能量文案:乐观积极的治愈系文案,朋友圈满满向上动力句子
下一篇: Lunar组件如何利用I18n实现多语言功能
x 打工人ai神器