至官方Adobe
下載JS檔 (
http://download.macromedia.com/pub/de...tent_samples.zip)檔案內有二個檔案,將JS檔複製到網頁處,其檔名為:
AC_RunActiveContent.js、
AC_ActiveX.js使用方法如下:
(1) 使用時在網頁<HEAD>...</HEAD>標籤內中加入兩行
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<script src="AC_ActiveX.js" type="text/javascript"></script>
(2) 在原SWF位置處改成新的寫法,如原本為
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockw...lash.cab#version=7,0,19,0" width="924" height="122">
<param name="movie" value="xxx.swf" />
<param name="quality" value="high" />
<embed src="xxx.swf" quality="high" pluginspage="http://www.macromedia.com/g...layer" type="application/x-shockwave-flash" width="924" height="122"></embed>
</object>
改寫後
<script type="text/javascript">
AC_FL_RunContent( "codebase","http://download.macromedia.com/pub/shockw...lash.cab#version=7,0,19,0","width","924","height","122","src","xxx","quality","high","pluginspage","http://www.macromedia.com/g...layer","movie","xxx" ); </script>
注意以上 xxx 的部分,該 xxx 為 SWF 的檔名,在AC_FL_RunContent裡頭不需填寫 .swf 附檔名,故原本實際的SWF為 xxx.swf 時,只需寫成 xxx 即可
AC_FL_RunContent 的實際寫法很單純,就是參數對應內容
如:
codebase
對應
http://download.macromedia.com/pub/shockw...lash.cab#version=7,0,19,0
width 對應 924 (請改成實際的SWF寬度)
height 對應 122 (請改成實際的SWF高度)
quality 對應 high
src 及 movie 都對應到檔名