在HTML嵌入SWF的最佳方法

前一阵弄个flash到网页中,ie下总是要刷新几下才出来,找了个完美的。。。在此分享下

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” lang=”en” xml:lang=”en”>
<head>
<title>SWFObject – step 1</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
</head>
<body>
<div>

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=”780″ height=”420″>
<param name=”movie” value=”myContent.swf” />
<!–[if !IE]>–>
<object type=”application/x-shockwave-flash” data=”myContent.swf” width=”780″ height=”420″>
<!–<![endif]–>
<p>Alternative content</p>
<!–[if !IE]>–>
</object>
<!–<![endif]–>
</object>

</div>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *