在您更新网站以响应 Internet Explorer 所建议的更改时, 有必要了解这些更改对您用户的影响。如果您未更新浏览器, 我们会提供一个演示, 展示—在实施我们推荐的解决办法前后查看活动内容时, 用户所能看到的内容。注意:可以从 Windows 更新或 Microsoft 支持*下载此更新。
如果您已更新 Microsoft Internet Explorer 的版本, 那么这些页面将向您展示 JavaScript 解决方案使用前后的示例。使用“前”的示例显示了一个页面, 要求用户在 Internet Explorer 的未来版本中与内容交互之前, 首先要激活内容。更新之后, 该页面将会为您提供令人期待的无缝体验。下面的链接将启动同一文件使用前后的示例。
注意:只有在您拥有 Internet Explorer 的更新版本时, 这些示例才会显示 Flash 的行为方式。如果您未使用此浏览器, 您就不能发现使用前后示例的区别。
“使用前”的示例使用传统 <object> 和 <embed> 标记代码显示一段 Flash 电影。使用新的 Internet Explorer, 您将会看到一个工具提示, 提示您“单击以激活和使用此控件”。"如果您尚未使用新版浏览器, 您可以在我们的演示或 MSDN 文章 (激活 ActiveX 控件*) 的图示中查看更改。
“使用后”的示例使用推荐的外部 JavaScript 解决方案来显示一段 Flash 电影。查看使网站为发布的浏览器更改做好准备, 以获取如何实施这一修复的详细信息。在此示例中, 对于启用 JavaScript 的任何浏览器, 无需通过单击激活内容即可与之交互。
此处是上述两个示例的源代码。研究这些代码以了解这些页面如何演示示例 Flash 文件。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Before: Traditional Object/Embed Tag Combination</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <!-- This object and embed tag combination is the most common way to embed Flash movies. --> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="369" height="113"> <param name="movie" value="flash.swf"> <param name="quality" value="high"> <embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="369" height="113"></embed> </object> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>After: Using the External Javascript Solution</TITLE>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<!-- These script tags reference the external JavaScript files (.js) which contain functions that dynamically write the object and embed tags. These files are described and can be downloaded from the article "Preparing Websites With Active Content for Upcoming Browser Changes" at the Active Content Developer Center. -->
<script type="text/javascript" src="after/AC_RunActiveContent.js"></SCRIPT>
<meta content="MSHTML 6.00.2800.1226" name=GENERATOR>
</head>
<body>
<!-- This script tag calls the functions defined in the external JavaScript file to dynamically generate the tags that embed the Flash movie in the page. -->>
<script type="text/javascript">
AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','369','height','113','src','flash','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash' );
</script>
<!-- Content inside a NOSCRIPT tag will be displayed if the user does not have Javascript enabled or is using a browser that does not support JavaScript -->
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="369" height="113">
<param name="movie" value="flash.swf">
<param name="quality" value="high">
<embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="369" height="113"></embed>
</object>
<em>
<p>Note: You do not have JavaScript enabled.</p><em> </NOSCRIPT>
</body>
</html>