dwx 寫:
提姆 寫:
之前的解釋是說IE只看的懂
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
但是FireFox只看的懂
type="video/x-ms-wmv"
而且兩個都列FireFox會忽略掉那個<Object>
但是我剛剛測試的結果 我的IE6sp1好像也看的懂後者了
我的是 IE6sp2,怎麼看不懂?
請看這個 我最近才翻到的
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/type_5.asp裡面說When no CLASSID attribute is specified for an object, the type property is used to retrieve the class identifier for the object. 也就是其實不指定 classid IE也應該要找到對應的播放程式(也就是WMP)
dwx 寫:
提姆 寫:
不過現在的問題是...
Javascript沒有辦法在FireFox裡面修改MPlayer物件的filename內容或是進行Play()動作....
(那我鑲一個Mplayer進去幹麻XD)
Firefox 1.0 前的版本有用 javascript 改 plug-in 的 bug
你用的是 RC 版嗎?
嗯 我是用1.0正式版
總之現在我的網頁的html是
代碼:
<Object type="video/x-ms-wmv" id="player">
<param ...>
您的瀏覽器無法正確辨識播放WMV檔的程式,一般來說是Windows Media Player。請試著重新安裝Windows Media Player或是直些去下載影片。
</Object>
然後document.getElementById("player").object.play()會造成錯誤的問題...我用try{ ... } catch(e) { ... } 處理掉了
反正遇到錯誤就跳出alert說 對不起無法選片 就是了 XD
不認識type的瀏覽器就去死吧 不遵守標準

害我不能用標準html
--
http://timc.idv.tw/ssshgrad/
就是這個網頁...總之修好了(累)