将以下代码添加到需要显示的网页即可!
<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语法如何把json文件输出到html页面上
javascript语法中不等于null和空字符串的3种判断方式
javascript语法读取文本文件代码(PHP代码读取文本文件)
标签: document语法, javascript语法, script标签, writeln, 代码
上面是“帝国cms如何实现右下角广告漂浮代码”的全面内容,想了解更多关于 帝国cms 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_1333.html
workflows工作流
一个穿过泥泞雷区的士兵ComfyUI工作流
一个神秘的隐藏面孔下一本书的剪影ComfyUI工作流
大黄蜂空中决战ComfyUI工作流
一只竹节虫ComfyUI工作流
一个女孩骑着一辆生锈的现代摩托车
一只透明老虎骨骼标本ComfyUI工作流
一只可爱的小鸟在飞翔ComfyUI工作流
一个男孩在吃西瓜ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!