很多网站一打开就出现大幅的FLASH广告,几秒后就消失,这种效果其实就是用层放FLASH实现的,但关键的是如何让FLASH放完后层一起消失而不会盖住页面的内容...
3 s4 _% u' Y) _# S' e <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 ); } 7 ^1 G# T1 {# a+ Q- J
if ( objBigBanner ) objBigBanner.style.left = document.body.clientWidth / 2 - 778 / 2; </script> </body> </html>
a+ T/ p; M. c- L" A <iframe src="you page''s url" width="750" height="30" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
|