//-----------------------对联广告系统-------------------------------------- // 版权所有:郑州华泽网络技术有限公司 www.comwto.com // 您可以任意传播,但是请保留代码完整性 // 并请不要删除本说明部分 // 当浏览器分辨率达到或超过 1024×768 时,广告才能够显示 // 您可以在本文件的第 61 行修改本分辨率 // 当浏览器滚动条移动时,广告跟随移动 // 支持随即选择 flash 文件(*.swf),成“对”选择(两个成一对 ^_^) // 并支持浏览者手动关闭本广告 // 最终修改:郑州华泽网络技术有限公司 飞虫哥哥 QQ550393 // kissdtt2004@yahoo.com.cn // http://www.kiss214.com //---------------------------------------------------------------------------- var delta=0.15 var collection; function floaters() { this.items = []; this.addItem = function(id,x,y,content,url,content2,url,content3) { document.write('
'+content+url+content2+url+content3+'
'); 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;i0?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.style.top=followObj.offsetTop+dy; } followObj.style.display = ''; } } if (window.screen.width>=1024) //当分辨率达到 1024 时才显示广告 { var theFloaters = new floaters(); //-------------随即 flash 开始------------ var swfnumber=3; //flash 文件的“对”数(每两个成一对) var swfnumber2=Math.floor(Math.random()*swfnumber+1) switch(swfnumber2) { case 1: url='gg/right.swf'; url2='gg/left18.swf'; break; case 2: url='gg/right.swf'; url2='gg/left18.swf'; break; case 3: url='gg/right.swf'; url2='gg/left18.swf'; break; } //-------------随即 flash 结束------------ theFloaters.addItem('followDiv1','document.body.clientWidth-104',20,' '); theFloaters.addItem('followDiv2',0,20,' '); theFloaters.play(); } function leftFFG_DoFSCommand(command, args) { document.all.followDiv1.style.visibility = "hidden"; document.all.followDiv2.style.visibility = "hidden"; } function youFFG_DoFSCommand(command,args){ leftFFG_DoFSCommand(command,args); } //-------------------对联广告代码结束----------------------