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

香港服务器促销:香港华为云混合服务器、高防服务器首月半价,普通110M大带宽服务器月付799,付5用6,付10用13

博鳌云是一家以海外互联网基础业务为主的高新技术企业,运营全球高品质数据中心业务。自2008年开始为用户提供服务,距今11年,在国人商家中来说非常老牌。致力于为中国用户提供域名注册(国外接口)、免费虚拟主机、香港虚拟主机、VPS云主机和香港、台湾、马来西亚等地服务器租用服务,各类网络应用解決方案等领域的专业网络数据服务。商家支持支付宝、微信、银行转账等付款方式。目前香港有一款特价独立服务器正在促销,...

VirMach:$7.2/年KVM-美元512MB/$7.2/年MB多个机房个机房可选_双线服务器租赁

Virmach对资源限制比较严格,建议查看TOS,自己做好限制,优点是稳定。 vCPU 内存 空间 流量 带宽 IPv4 价格 购买 1 512MB 15GB SSD 500GB 1Gbps 1 $7/VirMach:$7/年/512MB内存/15GB SSD空间/500GB流量/1Gbps端口/KVM/洛杉矶/西雅图/芝加哥/纽约等 发布于 5个月前 (01-05) VirMach,美国老牌、稳...

白丝云-美国圣何塞4837/德国4837大带宽/美西9929,26元/月起

官方网站:点击访问白丝云官网活动方案:一、KVM虚拟化套餐A1核心 512MB内存 10G SSD硬盘 800G流量 2560Mbps带宽159.99一年 26一月套餐B1核心 512MB内存 10G SSD硬盘 2000G流量 2560Mbps带宽299.99一年 52一月套餐...

对联广告代码为你推荐
swift语言SWIFT的主要功能支付宝账单查询支付宝电子账单怎么查询小项目家庭办厂小项目有哪些?家庭小厂60个硬盘分区格式化怎样给硬盘分区并格式化soap是什么意思肥皂剧是什么意思?sd卡座sd卡座使用过程中需注意哪些事项约束是什么意思软约束是什么意思我的电脑打开很慢电脑开机为什么总是那么慢啊?3g模块如何启用3G功能及初始化3G模块?dtmy遮瑕笔雀斑正品
krypt 阿云浏览器 免费申请网页 raksmart 分销主机 视频存储服务器 payoneer iis安装教程 win8.1企业版升级win10 网站实时监控 南昌服务器托管 html空间 绍兴高防 hostker cdn联盟 北京双线 根服务器 闪讯官网 域名dns 免费ftp 更多