Forum Moderators: open
//write out the mozilla complient code
document.write( "<EMBED NAME =\"EmbedmediaPlayer\"");
document.write( "PLUGINSPAGE =\"http://microsoft.com/windows/mediaplayer/en/download/\" ");
document.write( "FILENAME =\"domain.com/videofile\" ");
document.write( "SHOWSTATUSBAR =\"true\" ");
document.write( "SHOWCONTROLS =\"true\" ");
document.write( "TYPE =\"application/x-mplayer2\" ");
document.write( "SRC =\"" + videolink + "\"");
document.write( "WIDTH =\"480\" ");
document.write( "HEIGHT =\"425\"> ");
document.write( "</EMBED>" );
}</script>
<noscript>
<embed name ="EmbedmediaPlayer"
pluginspage ="http://microsoft.com/windows/mediaplayer/en/download/"
filename ="domain.com/videofile"
showstatusbar ="true"
showcontrols ="true"
showdisplay ="true"
showtracker ="true"
type ="application/x-mplayer2"
src ="domain.com/videofile"
width ="480"
height ="425"></embed>
</noscript>
</object>
showcontrols="true" (deprecated) is unnecessary and waste of bytes, since it is true by default. Same applies to these:
showdisplay ="true" (deprecated)
showtracker ="true" (deprecated)
In IE when you use active-x media player object (clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6) uiMode = full is default.
For browsers that use non-active-x plugin like Firefox, Opera always use 1 or 0 instead of true or false.
ShowStatusBar="1" should add status bar.