对联广告代码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教程:实现网页左右两侧居中的对联广告代码相关文档

云如故枣庄高防(49元)大内存2H2G49元8H8G109元

云如故是一家成立于2018年的国内企业IDC服务商,由山东云如故网络科技有限公司运营,IDC ICP ISP CDN VPN IRCS等证件齐全!合法运营销售,主要从事自营高防独立服务器、物理机、VPS、云服务器,虚拟主机等产品销售,适合高防稳定等需求的用户,可用于建站、游戏、商城、steam、APP、小程序、软件、资料存储等等各种个人及企业级用途。机房可封UDP 海外 支持策略定制 双层硬件(傲...

ZJI(月付450元),香港华为云线路服务器、E3服务器起

ZJI发布了9月份促销信息,针对香港华为云线路物理服务器华为一型提供立减300元优惠码,优惠后香港华为一型月付仅450元起。ZJI是原来Wordpress圈知名主机商家:维翔主机,成立于2011年,2018年9月更名为ZJI,提供中国香港、台湾、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册等业务,商家所选数据中心均为国内访问质量高的机房和线路,比如香港阿里云、华为...

昔日数据:香港云服务器(2G防御)、湖北云服务器(100G防御),首月5折,低至12元/月

昔日数据,国内商家,成立于2020年,主要销售湖北十堰和香港HKBN的云服务器,采用KVM虚拟化技术构架,不限制流量。当前夏季促销活动,全部首月5折促销,活动截止于8月11日。官方网站:https://www.xrapi.cn/5折优惠码:XR2021湖北十堰云服务器托管于湖北十堰市IDC数据中心,母鸡采用e5 2651v2,SSD MLC企业硬盘、 rdid5阵列为数据护航,100G高防,超出防...

对联广告代码为你推荐
防护个人防护措施有哪些?体系文件企业质量管理体系文件指的是什么?文件损坏文件损坏是由哪些原因造成的?有什么办法修复吗?快照优化快照跟不上优化节奏优化方法出问题?购物网站设计购物网站如何设计漂亮且实用的购物车海淀区公司注册注册海淀公司需要验资报告吗科学计算器说明书科学计算机具体怎么用?约束是什么意思日语里的“约定”和“约束”哪个是中文里“约定”的意思,那另外一个是什么意思分销渠道案例分销渠道实际案例超市商品价格超市商品价格写一篇小作文怎么写
重庆虚拟主机 山东vps 申请免费域名 网易域名邮箱 hostmaster 新加坡主机 hkbn godaddy优惠券 好看的桌面背景图 新站长网 500m空间 太原联通测速平台 阿里云浏览器 165邮箱 傲盾官网 idc查询 银盘服务是什么 google台湾 web服务器是什么 东莞idc 更多