2014-09-26 63 views
0

我已將.swf文件嵌入到我的代碼中,但在測試時不會顯示。它直接從源文件(http://pandadol.com/pics/sydneyedit/300x250.swf)播放,但不能從HTML文件播放。SWF文件已上傳到服務器,但未在嵌入中顯示

<html> 
<head> 
</head> 

<body> 

<object data="http://pandadol.com/pics/sydneyedit/300x250.swf"> 
    <param name="movie" value="http://pandadol.com/pics/sydneyedit/300x250.swf"> 
</object> 

<object data="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf"> 
    <param name="movie" value="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf"> 
</object> 

</body> 

</html> 

我把它放在這裏用默認的從Adobe只是爲了看看它是不是我的flash播放器,這是問題,但它似乎顯示了罰款。

有一些荒謬的我失蹤了。如果任何人有線索,我會很感激。

回答

0

的代碼使用的是:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="movie_name" align="middle"> 
    <param name="movie" value="movie_name.swf"/> 
    <object type="application/x-shockwave-flash" data="movie_name.swf" width="550" height="400"> 
     <param name="movie" value="movie_name.swf"/> 
     <a href="http://www.adobe.com/go/getflash"> 
      <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/> 
     </a> 
    </object> 
</object> 

或者:

<div id="myContent"> 
    <p>Alternative content</p> 
</div> 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> 

<script type="text/javascript"> 
    swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0"); 
</script> 
相關問題