2012-01-29 65 views

回答

1

玩家:

<object id="theIdOfThePlayer" ...> 
... 
<embed name="theIdOfThePlayer"> 
... 

獲取播放器這樣的:

var player=(document.theIdOfThePlayer) ? document.theIdOfThePlayer : document.getElementById('theIdOfThePlayer'); 

暫停這樣的:

player.stopSound(); 

開始是這樣的:

player.playSound(); 
+0

但它一直說'TypeError:Object#沒有方法'playSound'' – nkcmr 2012-01-29 22:45:37

+0

檢查我的更新 – 2012-01-29 22:48:28

+0

它仍然無法正常工作,請檢查該網頁即時嘗試讓它工作:http:// sightofnick.com/public/piff/ – nkcmr 2012-01-29 23:35:24