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

DiyVM:499元/月香港沙田服务器,L5630*2/16G内存/120G SSD硬盘/5M CN2线路

DiyVM是一家成立于2009年的国人主机商,提供的产品包括VPS主机、独立服务器租用等,产品数据中心包括中国香港、日本大阪和美国洛杉矶等,其中VPS主机基于XEN架构,支持异地备份与自定义镜像,VPS和独立服务器均可提供内网IP功能。商家VPS主机均2GB内存起步,三个地区机房可选,使用优惠码后每月69元起;独立服务器开设在香港沙田电信机房,CN2线路,自动化开通上架,最低499元/月起。下面以...

亚洲云Asiayu,成都云服务器 4核4G 30M 120元一月

点击进入亚云官方网站(www.asiayun.com)公司名:上海玥悠悠云计算有限公司成都铂金宿主机IO测试图亚洲云Asiayun怎么样?亚洲云Asiayun好不好?亚云由亚云团队运营,拥有ICP/ISP/IDC/CDN等资质,亚云团队成立于2018年,经过多次品牌升级。主要销售主VPS服务器,提供云服务器和物理服务器,机房有成都、美国CERA、中国香港安畅和电信,香港提供CN2 GIA线路,CE...

搬瓦工最新套餐KVM,CN2线路

搬瓦工在国内非常流行的主机商,以提供低价的vps著称.不过近几年价格逐渐攀升.不过稳定性和速度一向不错.依然深受国内vps爱好者喜爱.新上线的套餐经常卖到断货.支持支付宝,paypal很方便购买和使用.官网网站:https://www.bandwagonhost.com[不能直接访问,已墙]https://www.bwh88.net[有些地区不能直接访问]https://www.bwh81.net...

对联广告代码为你推荐
局域网监控软件求一个破解版局域网监控软件swift语言swift语言坑死ios开发者,这样怎么说呢?有基础入门课程推荐吗?资源优化配置怎样实现资源的最优配置小项目如何搞小工程jsp源码jsp 中网站的首页源代码网络购物的发展网购发展史电商网站设计电子商务网站设计应注意哪些问题主板说明书电脑主板的作用是什么?主板说明书请问那位有联想945GZ主板说明书官方网店官方旗舰店和旗舰店是什么意思,有什么区别?它们卖的都是正品行货吗?
北京服务器租用 独享100m java主机 BWH gg广告 hostker idc查询 web服务器安全 个人免费主页 中国电信测速器 服务器防火墙 小夜博客 腾讯服务器 windowssever2008 globalsign pptpvpn 硬防 电脑主机启动不了 电脑主机配置 企业私有云存储 更多