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

virmach:3.23美元用6个月,10G硬盘/VirMach1核6个月Virmach

virmach这是第二波出这种一次性周期的VPS了,只需要缴费1一次即可,用完即抛,也不允许你在后面续费。本次促销的是美国西海岸的圣何塞和美国东海岸的水牛城,周期为6个月,过后VPS会被自动且是强制性取消。需要临时玩玩的,又不想多花钱的用户,可以考虑下!官方网站:https://www.virmach.comTemporary Length Service Specials圣何塞VPS-一次性6个...

飞讯云E5-2678V3 64GB,湖北十堰100G高防物理机330元/月

飞讯云官网“飞讯云”是湖北飞讯网络有限公司旗下的云计算服务品牌,专注为个人开发者用户、中小型、大型企业用户提供一站式核心网络云端部署服务,促使用户云端部署化简为零,轻松快捷运用云计算。飞讯云是国内为数不多具有ISP/IDC双资质的专业云计算服务商,同时持有系统软件著作权证书、CNNIC地址分配联盟成员证书,通过了ISO27001信息安全管理体系国际认证、ISO9001质量保证体系国际认证。 《中华...

totyun:香港cn2 vps,5折优惠,$6/月,10Mbps带宽,不限流量,2G内存/2核/20g+50g

totyun,新公司,主要运作香港vps、日本vps业务,接入cn2网络,不限制流量!VPS基于KVM虚拟,采用系统盘和数据盘分离,从4G内存开始支持Windows系统...大家注意下,网络分“Premium China”、“Global”,由于站长尚未测试,所以也还不清楚情况,有喜欢吃螃蟹的尝试过不妨告诉下站长。官方网站:https://totyun.com一次性5折优惠码:X4QTYVNB3P...

对联广告代码为你推荐
体系文件什么叫采购体系文件a8处理器AMD A8的CPU怎么样?资源优化配置什么是优化产业结构,资源优化配置??0x800ccc0f错误号: 0x800CCC0F 这个是虾米意思?对联广告代码HTMl教程:实现网页左右两侧居中的对联广告代码省份证查询怎么查询我的身份证都注册了什么网站?无线互联网WiFi没有连接到互联网是什么意思我的电脑打开很慢电脑开机为什么总是那么慢啊?移动短信内容查询如何查询移动手机卡的短信内容能查到吗?求高人解答!安全证怎样考取安全员证
北京主机租用 网站域名备案查询 美国vps推荐 com域名抢注 免费申请网页 bandwagonhost 56折 512m lamp配置 jsp空间 云服务器比较 华为云建站 工信部网站备案查询 江苏徐州移动 重庆服务器 广州主机托管 汤博乐 privatetracker 美国十大啦 hosts文件 更多