当你查看web页面时,windows下的IE浏览器会将ActiveX内容显 不为一个矩形框和一个提示内容为”Click to activate and use this control”意思就是你需要激活ActiveX的 内容才可以查看或交互控制,ActiveX内容可能或不能象你预想的那样载入并进行播放.
基本的解决办法如下:
首先下载这个包:
![](http://www.zishu.cn/images/download.gif)
解决办法:
第一步将flashobject.js 包含在你的html页面内
第二步将下列代码加到你的body区;
![](http://www.zishu.cn/images/news_bullet.gif)
<script type="text/javascript" src="flashobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var fo = new FlashObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
fo.write("flashcontent");
</script>
代码分析:
![](http://www.zishu.cn/images/news_bullet.gif)
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
这 一段相当于我们在为放置flash文件而准备的一个holder.有些象我们常用的空的MovieClip holder.为放入内容而准备的.如果你没 有装flashplayer.那么里面的那行字会显示出来如显示为” This text is replaced by the Flash movie.”
如果你装了flashplayer,那这行字是不会显示的.
![](http://www.zishu.cn/images/news_bullet.gif)
<script type="text/javascript">
var fo = new FlashObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
fo.write("flashcontent");
</script>
用来嵌入swf,比如当前的影片文件是”movie.swf”, id是”mymoive,宽是200,高是100,flashplayer版本是7,背景色是#336699.
应用的实例是本站首页右边的FLASH播放器!