在windows xp sp2以上的浏览器浏览带有flash导航的网页时,flash四周会出现一个虚线框,并且提示”单击激活此控件”,让那上面的按钮必须单击两次才能使用
目前只发现了一种方法,即把flash代码放入js里.
实现一:
<script type=”text/javascript”>
AC_FL_RunContent( ‘codebase’,'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0′,’width’,'Flash宽度’,'height’,'Flash高度’,’src’,'Flash地址’,'quality’,'high’,'pluginspage’,'http://www.macromedia.com/go/getflashplayer’,'movie’,'Flash地址’ );
</script>
实现二:
<td><SCRIPT> leftmenu(”cCompany”,4,1); </SCRIPT> </td>
<script language=javascript>
function leftmenu(sectiontype,oDN,tDN ){
document.write(’<OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0” WIDTH=”163″ HEIGHT=”450″ align=”center” id=”Company”>’);
document.write(’<PARAM NAME=movie VALUE=?>’);
document.write(’<param name=wmode value=transparent>’);
document.write(’<PARAM NAME=quality VALUE=high>’);
document.write(’<PARAM NAME=allowScriptAccess VALUE=sameDomain>’);
document.write(’<EMBED src=? quality=high bgcolor=#FFFFFF WIDTH=163 HEIGHT=450 TYPE=”application/x-shockwave-flash” PLUGINSPAGE=”http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash”>’);
document.write(’</EMBED>’);
document.write(’</OBJECT>’);
}
</script>