<object id="video" width="400" height="200" border="0"
classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<param name="ShowDisplay" value="0">
<param name="ShowControls" value="1">
<param name="AutoStart" value="1">
<param name="AutoRewind" value="0">
<param name="PlayCount" value="0">
<param name="Appearance value="0 value=""">
<param name="BorderStyle value="0 value=""">
<param name="MovieWindowHeight" value="240">
<param name="MovieWindowWidth" value="320">
<param name="FileName" value="/Mbar。avi">
<embed width="400" height="200" border="0" showdisplay="0"
showcontrols="1" autostart="1" autorewind="0" playcount="0"
moviewindowheight="240" moviewindowwidth="320" filename="/Mbar。avi"
src="Mbar。avi">
</embed>
</object>
这是在网上找到的不行啊,还有没有其他的啊啊
classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<param name="ShowDisplay" value="0">
<param name="ShowControls" value="1">
<param name="AutoStart" value="1">
<param name="AutoRewind" value="0">
<param name="PlayCount" value="0">
<param name="Appearance value="0 value=""">
<param name="BorderStyle value="0 value=""">
<param name="MovieWindowHeight" value="240">
<param name="MovieWindowWidth" value="320">
<param name="FileName" value="/Mbar。avi">
<embed width="400" height="200" border="0" showdisplay="0"
showcontrols="1" autostart="1" autorewind="0" playcount="0"
moviewindowheight="240" moviewindowwidth="320" filename="/Mbar。avi"
src="Mbar。avi">
</embed>
</object>
这是在网上找到的不行啊,还有没有其他的啊啊
var videosubdirectory = "1_media/";
var videofile = "1.avi";
//this will be the final video link (absolute path)
var videolink = location.href;//remove the file:// because windows media doesn't understand that
var file = videolink.indexOf( "file://");if ( file > -1 )
{
// THIS IS A LOCAL PATH
videolink = videolink.substring( file + 8 ); //remove the %20 because media player doesn't understand those
while( videolink.lastIndexOf( "%20" ) != -1 )
{
videolink = videolink.replace( "%20", " " );
} //remove the html file name now
var lastslash = videolink.lastIndexOf( "/"); if ( lastslash > -1 )
videolink = videolink.substring( 0, lastslash ); //add the subfolder (if there is one) and then the video file name
if ( videosubdirectory.length > 0 )
videolink = videolink + "/" + videosubdirectory + videofile;
else
videolink = videolink + "/" + videofile;
}
else
{
if ( videosubdirectory.length > 0 )
videolink = videosubdirectory + videofile;
else
videolink = videofile;
}
var oeTags = '<object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'
+ 'width="400" height="265"'
+ 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"'
+ 'standby="Loading Microsoft Windows Media Player components..."'
+ 'type="application/x-oleobject">'
+ ' <param name="autoStart" value="true"/>'
+ ' <param name="url" value="1_media/1.avi" />'
+ ' <param name="wmode" value="transparent" />'
+ ' <param name="uiMode" value="full" />'
+ ' <param name="loop" value="false" />'
+ ' <embed id ="EmbedmediaPlayer"'
+ ' type ="application/x-mplayer2"'
+ ' src ="' + videolink + '"'
+ ' width ="400"'
+ ' height ="265">'
+ ' </embed>'
+ '</object>';
document.write(oeTags);
把上面的code保存为一个javaScript文件,然后在html里写:
<script type="text/javascript" src="xxx.js"></script>