复制代码 代码如下:function cf(flashsrc,flashwidth,flashheight,flashlink,br){ document.write("<table width="+flashwidth+" height="+flashheight+" border=0 cellpadding=0 cellspacing=0><tr><td>"); document.write("<div style="position:relative">"); document.write("<embed style="position:absolute;z-index:0" src="+flashsrc+" quality="high" width="+flashwidth+" height="+flashheight+" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="opaque"></embed>"); document.write("<div style="background:white;filter:alpha(opacity=0);opacity:0;position: relative;z-index:10;left:0pt;top:0pt;width:"+flashwidth+";height:"+flashheight+"px;">"); document.write("<a href="+flashlink+" target="_blank" style="cursor:pointer;display:block;width:"+flashwidth+";height:"+flashheight+"px;"></a>"); document.write("</div>"); document.write("</div>"); document.write("</td></tr></table>"); if (br=="1") { document.write("<br>"); } }
推荐阅读
Javascript !!的作用
var wintype = !!os[1]; 取变量的Boolean值, 应该相当于 var wintype = os[1]?true:false, 但显然简洁很多。 >>>详细阅读
本文标题:FLASH 广告之外的链接
地址:http://www.17bianji.com/kaifa2/JS/29133.html
1/2 1