很多网站一打开就出现大幅的FLASH广告,几秒后就消失,这种效果其实就是用层放FLASH实现的,但关键的是如何让FLASH放完后层一起消失而不会盖住页面的内容...
/ f$ V' }+ _0 @ ^5 \$ i <html> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:HideBigBannerEx();"> <div id="id_bigbanner" style="position:absolute;top:-3;left:0;z-index:100000;"> <table align=center border=0 width="772" height="379"> <tr><td> <embed width="772" height="420" src="http://assistant.3721.com/images/chk770x420.swf" border=0 wmode=transparent TYPE="application/x-shockwave ... edia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </td></tr> </table> </div> <script language="javascript"> var objBigBanner = document.all("id_bigbanner"); function HideBigBanner() { if ( objBigBanner ) objBigBanner.style.display = "none"; } function HideBigBannerEx() { setTimeout( "HideBigBanner()", 1000*5 ); }
5 _$ k( x7 D% T9 _ i2 uif ( objBigBanner ) objBigBanner.style.left = document.body.clientWidth / 2 - 778 / 2; </script> </body> </html> ( [9 n" T. s) L M/ {* p' Q5 a
<iframe src="you page''s url" width="750" height="30" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
|