heres a loader for most movie types so you dont have to make a seperate js file for every movie works in both firefox and ie
save this as movie.js
Code:
function iemov( WIDTH, HEIGHT, URL)
{
document.write('<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="' + WIDTH + '" height="' + HEIGHT + '">');
document.write('<param name="URL" value="' + URL + '">');
document.write('<param name="autoStart" value="true">');
document.write('<PARAM NAME="invokeurls" VALUE="true">');
document.write('<PARAM NAME="stretchToFit" VALUE="true">');
document.write('<PARAM name="uiMode" value="mini">');
document.write('<PARAM name="PlayCount" value="9999">');
document.write('<param name="background-color" value="white">');
document.write('<param name="ShowStatusBar" value="0"></object>');
}
function ffmov( WIDTH, HEIGHT, URL)
{
document.write('<object data="' + URL + '" type="video/x-ms" width="' + WIDTH + '" height="' + HEIGHT + '">');
document.write('<param name="src" value="' + URL + '">');
document.write('<PARAM name="uiMode" value="full">');
document.write('<PARAM name="PlayCount" value="9999">');
document.write('<param name="autoStart" value="true"></object>');
}
change the params how you see fit
then to load movies into it just call it like this
first put <script src=movie.js></script> in your head then to call movies do this
Code:
<script>
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4){
iemov( "684", "495", "http://file.com/file.wmv")
}
else {
ffmov( "684", "495", "http://file.com/file.wmv");
} </script>