本文主要是介绍IE浏览器去掉FLASH虚线框,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在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>
方法三.
loadflash.js
===========================================
function LoadFlash(url,wmode,width,Height)
{
document.write(
'<embed src="' + url + '" wmode=' + wmode +
' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width +
'" height="' + Height + '"></embed>');
}
===========================================
方法三.HTML
======================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Copyright" content="懒人图库" />
<meta name="description" content="学会偷懒,并懒出境界是提高工作效率最有效的方法!" />
<meta content="懒人图库" name="keywords" />
<title>懒人图库 - 网页素材下载站</title>
<script language="JavaScript" type="text/javascript" src="loadflash.js"></script>
</head>
<body>
<p>IE浏览器去掉FLASH虚线框的方法[一]</p>
<p>
<script language='JavaScript' type='text/javascript'>LoadFlash("ad_300x250.swf","transparent",300,250)</script>
</p>
<hr />
<p>下面是在IE浏览器下,flash出现边框的演示:</p>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="250">
<param name="movie" value="ad_300x250.swf" />
<param name="quality" value="high" />
<embed src="ad_300x250.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="250"></embed>
</object>
</p>
</body>
</html>
这篇关于IE浏览器去掉FLASH虚线框的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!