开发者

Embedding Flash & Quicktime Via JavaScript

开发者 https://www.devze.com 2023-01-03 09:24 出处:网络
I have a JavaScript function that loads a flash movie into a webpage div using swfobject.embedSWF(). I want to be able to, alternatively, load a .mov file into the same div, in the event that this is

I have a JavaScript function that loads a flash movie into a webpage div using swfobject.embedSWF().

I want to be able to, alternatively, load a .mov file into the same div, in the event that this is the file found instead of the .swf.

Is there a close equivalent to swfobject.embedSWF for the purposes o开发者_如何学JAVAf embedding a .mov file? If not, what is an efficient route to doing this using JavaScript?


QTObject might do what you need and it's from the same author as SWFObject. It's old though, so I'm not sure if it will work well in modern browsers.

EDIT I searched and found reports of it working fine in IE7, Firefox 2 and Opera 9, so you might just be in luck. Just make sure you test it thoroughly.

0

精彩评论

暂无评论...
验证码 换一张
取 消