如何添加, 謝謝
熱心網(wǎng)友
//-----------------------對聯(lián)廣告系統(tǒng)--------------------------------------// 您可以任意傳播,但是請保留代碼完整性// 并請不要刪除本說明部分// 當瀏覽器分辨率達到或超過 1024×768 時,廣告才能夠顯示// 您可以在本文件的第 60 行修改本分辨率// 當瀏覽器滾動條移動時,廣告跟隨移動// 支持隨即選擇 flash 文件(*。swf),成“對”選擇(兩個成一對 ^_^)// 并支持瀏覽者手動關閉本廣告// 最終修改:飛蟲哥哥 // kissdtt2004@ // //---------------------------------------------------------------------------- var delta=0。15 var collection; function floaters() { ems = []; dItem = function(id,x,y,content,url,content2,url,content3) { document。write(''+content+url+content2+url+content3+''); var newItem = {}; newItem。object = tElementById(id); newItem。x = x; newItem。y = y; ems[ ems。length] = newItem; } ay = function() { collection = ems setInterval('play()',10); } } function play() { for(var i=0;i0?1:-1)*Math。ceil(Math。abs(dx)); yle。left=followObj。offsetLeft+dx; } if(followObj。offsetTop!=( rollTop+followObj_y)) { var dy=( rollTop+followObj_y-followObj。offsetTop)*delta; dy=(dy0?1:-1)*Math。ceil(Math。abs(dy)); p=followObj。offsetTop+dy; } yle。display = ''; } } if ( reen。width=1024) //當分辨率達到 1024 時才顯示廣告 { var theFloaters = new floaters();//-------------隨即 flash 開始------------ var swfnumber=3; //flash 文件的“對”數(shù)(每兩個成一對)var swfnumber2=Math。floor(Math。random()*swfnumber+1) switch(swfnumber2){case 1:url='/flash/100x300。swf';url2='/flash/100x300_2。swf'; //注:我使用的是絕對路徑,請你根據(jù)實際情況修改。下同。注意(有朋友問到了):flash 路徑是相對于網(wǎng)頁文件的,不是相對于 *。js 文件的。break;case 2:url='/flash/100x300_3。swf';url2='/flash/100x300_4。swf';break;case 3:url='/flash/100x300_5。swf';url2='/flash/100x300_6。swf';break;} //-------------隨即 flash 結束------------ dItem('followDiv1',' ientWidth-104',20,' '); dItem('followDiv2',0,20,' '); ay(); } function leftFFG_DoFSCommand(command, args) { sibility = "hidden"; sibility = "hidden"; } function youFFG_DoFSCommand(command,args){ leftFFG_DoFSCommand(command,args); } \n"; document。write(" leftFFG_DoFSCommand(command,args);\n"; document。write("\n"; document。write("\n"; document。write(" leftFFG_DoFSCommand(command,args);\n"; document。write("\n"; } //--//-------------------對聯(lián)廣告代碼結束---------------------- 。
熱心網(wǎng)友
同意
熱心網(wǎng)友
suspendlink1="";//廣告鏈接地址,圖片廣告用suspendimg1="logo/right。swf";//圖片,FLASH路徑functionrand1(num){returnMath。floor(Math。random()*num);}suspendcode1="";suspendcode1=suspendcode1+"";suspendcode1=suspendcode1+"";//如果是圖片廣告,這里改成0)percent1=Math。ceil(percent1);elsepercent1=Math。floor(percent1);if(IE)document。all。newkohi。style。pixelTop+=percent1;if(NS)document。newkohi。top+=percent1;ScrollY=ScrollY+percent1;}if(dX!=ScrollX){percent1=。1*(dX-ScrollX);if(percent10)percent1=Math。ceil(percent1);elsepercent=Math。floor(percent);if(IE)document。all。newkohi。style。pixelLeft+=percent1;if(NS)document。newkohi。left+=percent1;ScrollX=ScrollX+percent1;}}functiondropIt1(){whichIt=null;if(NS)window。releaseEvents(Event。MOUSEDOWN);returntrue;}if(NS){window。captureEvents(Event。MOUSEUP|Event。MOUSEDOWN);window。onmouseup=dropIt1;}if(IE){document。onmouseup=dropIt1;}if(NS||IE)action=window。setInterval("heartBeat1()",2);suspendlink="";//廣告鏈接地址,圖片廣告用suspendimg="logo/left。swf";//圖片,FLASH路徑functionrand(num){returnMath。floor(Math。random()*num);}suspendcode="";suspendcode=suspendcode+"";suspendcode=suspendcode+"";//如果是圖片廣告,這里改成0)percent=Math。ceil(percent);elsepercent=Math。floor(percent);if(IE)document。all。lay1。style。pixelTop+=percent;if(NS)document。lay1。top+=percent;lastScrollY=lastScrollY+percent;}if(diffX!=lastScrollX){percent=。1*(diffX-lastScrollX);if(percent0)percent=Math。ceil(percent);elsepercent=Math。floor(percent);if(IE)document。all。lay1。style。pixelLeft+=percent;if(NS)document。lay1。left+=percent;lastScrollX=lastScrollX+percent;}}functiondropIt(){whichIt=null;if(NS)window。releaseEvents(Event。MOUSEDOWN);returntrue;}if(NS){window。captureEvents(Event。MOUSEUP|Event。MOUSEDOWN);window。onmouseup=dropIt;}if(IE){document。onmouseup=dropIt;}if(NS||IE)action=window。setInterval("heartBeat()",1);。