網頁JS彈出廣告程式碼,頭部,右下角,網頁中漂浮,對聯廣告程式碼等大全

weixin_34402090發表於2013-05-21
01.借鑑:網頁JS彈出廣告程式碼,頭部,右下角,網頁中漂浮,對聯廣告程式碼等大全  
02.網頁頭部彈出廣告:  
03.<!--首頁頭部廣告-->  
04.<script src="http://www.ce.cn/inc1/top_ad.js" type="text/javascript" language="javascript"></script>  
05.<script type="text/javascript">  
06.if(!ads){  
07.var ads=new adManager('ads');  
08.}  
09.ads.addAd(0,0,1002,375,'<img src="/buyiboke/buyiwenzhang/admin/editubb/UploadFile/2010621175828127.jpg"" />','top','float');  
10.</script>  
11.<!--首頁頭部廣告 end-->  
12.網頁飄浮廣告(可多個飄浮):  
13.<script src="http://www.ce.cn/inc/flyad2.js"></script>  
14.<div id="gg1">  
15.<a href="http://www.ce.cn/inc1/jftishi.html"><img src="/buyiboke/buyiwenzhang/admin/editubb/UploadFile/2010621175828450.jpg"" border="0"></a>  
16.<div style="position:absolute; left:0; font-size:12px;">  
17.<a href="javascript:void(0);" target="_self" onClick="close_gg(1);" style="color:#fff;">關閉</a>  
18.</div>  
19.</div>  
20.<script type="text/javascript">  
21.<!--  
22.var ad1=new AdMove("gg1");  
23.ad1.Run();  
24.//var ad2=new AdMove("gg2");  
25.//ad2.Run();  
26.//var ad3=new AdMove("gg3");  
27.//ad3.Run();  
28.//-->  
29.</script>  
30.右下角廣告:  
31.<!--右下角廣告-->  
32.<div style="position:absolute;right:0; width: 250px; height:215px; text-align:right; font-size:14px; line-height:22px; color:#000;" id="rb_ad">  
33.<a href="javascript:close_rbad();" target="_self">關閉</a><br />  
34.<img src="/buyiboke/buyiwenzhang/admin/editubb/UploadFile/2010621175829882.jpg"" border="0"></div>  
35.<script language="JavaScript" type="text/javascript">  
36.function rightBottomAd(){  
37.var abc = document.getElementById("rb_ad");  
38.abc.style.top = document.documentElement.scrollTop+document.documentElement.clientHeight-215+"px";   
39.setTimeout(function(){rightBottomAd();},50);  
40.}  
41.rightBottomAd();  
42.function close_rbad(){  
43.document.getElementById("rb_ad").style.display="none";  
44.}  
45.</script>  
46.<!--右下角廣告 end-->  
47.對聯廣告:  
48.<div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">  
49.<div style="position: absolute; left: 6px; top: 6px;">  
50.<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" adcodebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0" width="102px" height="262px"><param name="movie" value="http://bdall.com/bdall/ads/couplet/index_couplet_cmcc_hmgj.swf" /><param name="quality" value="high" /><embed src="http://bdall.com/bdall/ads/couplet/index_couplet_cmcc_hmgj.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="102px" height="262px"></embed></object><br />  
51.<img src="/buyiboke/buyiwenzhang/admin/editubb/UploadFile/2010621175829845.gif"" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">  
52.</div>  
53.<div style="position: absolute; right: 6px; top: 6px;">  
54.<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" adcodebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0" width="102px" height="262px"><param name="movie" value="http://bdall.com/bdall/ads/couplet/index_couplet_cmcc_hmgj.swf" /><param name="quality" value="high" /><embed src="http://bdall.com/bdall/ads/couplet/index_couplet_cmcc_hmgj.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="102px" height="262px"></embed></object><br />  
55.<img src="/buyiboke/buyiwenzhang/admin/editubb/UploadFile/2010621175829845.gif"" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">  
56.</div>  
57.</div>  
58.<script type="text/javascript" src="http://www.bdall.com/include/js/floatadv.js"></script>  
59.<script type="text/javascript">  
60.lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();  
61.</script> 

 

相關文章