<!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=utf-8" />
<title>符合web标准的flash插入方法--未去掉微软ie虚线框</title>
<style type="text/css">
*
{
margin:0;
padding:0;
}
div
{
text-align:center;
}
</style>
</head>
<body>
<div>
<object width="800" height="250" name="myswf"
type="application/x-shockwave-flash" data="effect.swf">
<param name="movie" value="effect.swf" />
</object>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>符合web标准的flash插入方法--未去掉微软ie虚线框</title>
<style type="text/css">
*
{
margin:0;
padding:0;
}
div
{
text-align:center;
}
</style>
</head>
<body>
<div>
<object width="800" height="250" name="myswf"
type="application/x-shockwave-flash" data="effect.swf">
<param name="movie" value="effect.swf" />
</object>
</div>
</body>
</html>
火狐3:
IE6下丑丑的虚线框没有去掉:
这样的虚线框很容易造成相邻的flash直接的接缝造成间隙,布局排乱,对于多个flash的页面,很容易造成用户反感,因为每个flash需要单击激活...
object的插入方式也可以通过w3c验证的。
注:官方的语法
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED href="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED href="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
本文转自 xcf007 51CTO博客,原文链接:http://blog.51cto.com/xcf007/111340,如需转载请自行联系原作者