对联广告代码HTMl教程:实现网页左右两侧居中的对联广告代码

对联广告代码  时间:2021-09-02  阅读:()

谁知道网站上对联广告代码如何制作!

/TR/xhtml1/DTD/xhtml1-transitional.dtd"> /1999/xhtml"> 符合标准的(div+css)对联带关闭广告代码

可关闭的浮动对联广告js代码

<SCRIPT language=JavaScript> var delta=0.15 var collection; function floaters() { this.items = []; this.addItem = function(id,x,y,content) { document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+':'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>'); var newItem = {}; newItem.object = document.getElementById(id); newItem.x = x; newItem.y = y; this.items[this.items.length] = newItem; } this.play = function() { collection = this.items setInterval('play()',10); } } function play() { for(var i=0;i<collection.length;i++) { var followObj = collection[i].object; var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x); var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y); if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) { var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta; dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx)); followObj.style.left=followObj.offsetLeft+dx; } if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) { var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta; dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy)); =followObj.offsetTop+dy; } followObj.style.display = ''; } } function closeAd1(){ followDiv1.style.visibility='hidden';} function closeAd2(){ followDiv2.style.visibility='hidden';} var theFloaters = new floaters(); theFloaters.addItem('followDiv1','document.body.clientWidth-110',100,'<iframe src="/right.asp" frameborder=0 scrolling="no" marginheight="0" marginwidth="0" width="100" height="230" align="middle"></iframe><br>- <a href=javascript:closeAd1()>关闭</a> -'); theFloaters.addItem('followDiv2',8,100,'<iframe src="/lianxi.asp" frameborder=0 scrolling="no" marginheight="0" marginwidth="0" width="100" height="230" align="middle"></iframe><br>- <a href=javascript:closeAd2()>关闭</a> -'); theFloaters.play(); </SCRIPT>

HTMl教程:实现网页左右两侧居中的对联广告代码

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> *{margin: 0;padding: 0;} .Ad{ position: fixed; width: 140px; height: 500px; background: #db3e52 ; top: -moz-calc(50% - 250px); top: -webkit-calc(50% - 250px); top: calc(50% - 250px); } div.Ad:nth-child(1){ left: 2%; } div.Ad:nth-child(2){ right:2%; } </style> </head> <body> <div class="Ad"></div> <div class="Ad"></div> </body> </html>

  • 对联广告代码HTMl教程:实现网页左右两侧居中的对联广告代码相关文档

快云科技:夏季大促销,香港VPS7.5折特惠,CN2 GIA线路; 年付仅不到五折巨惠,续费永久同价

快云科技怎么样?快云科技是一家成立于2020年的新起国内主机商,资质齐全 持有IDC ICP ISP等正规商家。我们秉承着服务于客户服务于大众的理念运营,机器线路优价格低。目前已注册用户达到5000+!主营产品有:香港弹性云服务器,美国vps和日本vps,香港物理机,国内高防物理机以及美国日本高防物理机!产品特色:全配置均20M带宽,架构采用KVM虚拟化技术,全盘SSD硬盘,RAID10阵列, 国...

TmhHost香港三网CN2 GIA月付45元起,美国CN2 GIA高防VPS季付99元起

TmhHost是一家国内正规公司,具备ISP\ICP等资质,主营国内外云服务器及独立服务器租用业务,目前,商家新上香港三网CN2 GIA线路VPS及国内镇江BGP高防云主机,其中香港三网CN2 GIA线路最低每月45元起;同时对美国洛杉矶CN2 GIA线路高防及普通VPS进行优惠促销,优惠后美国洛杉矶Cera机房CN2 GIA线路高防VPS季付99元起。香港CN2 GIA安畅机房,三网回程CN2 ...

RangCloud19.8元/月,香港cn2云主机,美国西雅图高防云主机28元/月起

rangcloud怎么样?rangcloud是去年年初开办的国人商家,RangCloud是一家以销售NAT起步,后续逐渐开始拓展到VPS及云主机业务,目前有中国香港、美国西雅图、韩国NAT、广州移动、江门移动、镇江BGP、山东联通、山东BGP等机房。目前,RangCloud提供香港CN2线路云服务器,电信走CN2、联通移动直连,云主机采用PCle固态硬盘,19.8元/月起,支持建站使用;美国高防云...

对联广告代码为你推荐
硬件设计方案太阳能光伏系统硬件设计包含哪些内容技术文档管理技术文件都有哪些分类,怎么管理?xhtmlHTML4,HTML5,XHTML 之间有什么区别搜索引擎有哪些搜索引擎都有什么啊4g上网卡4G手机上网卡和4G网络是什么意思?快照优化网站快照优化需要注意什么售后软件电脑维修需要哪些必备软件相册网怎样才能把我的照片传到网上去??购物网站设计购物网站如何设计漂亮且实用的购物车官方网店官方网店和官方旗舰店有什么区别?
tk域名注册 主机屋 阿里云os Vultr 外贸主机 优key 域名优惠码 好看的桌面背景大图 阿里云代金券 免费活动 佛山高防服务器 美国堪萨斯 个人免费主页 创建邮箱 东莞idc 中国电信测速网站 lamp的音标 镇江高防 卡巴斯基试用版下载 umax 更多