js控制视频播放代码.txt7温暖是飘飘洒洒的春雨;温暖是写在脸上的笑影;温暖是义无反顾的响应;温暖是一丝不苟的配合。8尊重是一缕春风,一泓清泉,一颗给人温暖的舒心丸,一剂催人奋进的强心剂// JavaScript Document
var control;
function showPlayer(url){//播放代码
var fileType=new Array();
fileType[0] =new Array(".mpg", ".mpeg",".asf",".wmv",".mp4");//MP 视频
fileType[1] =new Array(".mid",".mmf",".mp3",".wav",".midi",".wma");//MP 音频
fileType[2] =new Array(".rm",".rmvb");//RP 视频
fileType[3] =new Array(".amr");//RP 音频
fileType[4] =new Array(".3gp",".3gpp");//3GP 视频
var playerType = -1;
lastname = url.substring(url.lastIndexOf("."),url.length);
lastname = LowerCa();
for(j=0;j<=fileType.length;j++){
for (i = 0; i < fileType[j].length; i++) {
if (fileType[j][i] == lastname) {playerType=j;break;}
蛇年}
if(playerType > -1)break;
}
西红柿炖牛肉的家常做法if(playerType==0) 随笔作文400字
document.write('<embed id="mediaplay" type="application/x-mplayer2"
pluginspage="/Windows/Downloads/Contents/Products/MediaPlayer/"
volume=100 src="'+url+'" width=280 height=255 showstatusbar=fal
showcontrols="true" controls="ControlPanel" autostart="true"></embed>');
el if(playerType==1)
document.write('<embed id="mediaplay" type="application/x-mplayer2"
pluginspage="/Windows/Downloads/Contents/Products/MediaPlayer/"
volume=100 src="'+url+'" width=280 height=69 displaysize=0 showdisplay=fal
玫瑰花精showstatusbar=true showcontrols="true" autostart="true"></embed>');
el if(playerType==2)
document.write('<embed id="real" type="audio/x-pn-realaudio-plugin" src="'+url+'"
width=280 autostart="true" loop="true" repeat="true"
controls="ImageWindow,ControlPanel" height=251></embed>');
el if(playerType==3)
观摩学习document.write('<embed id="real" type="audio/x-pn-realaudio-plugin" src="'+url+'"
土方回填width=280 autostart="true" loop="true" repeat="true"
controls="ControlPanel,StatusBar" height=60></embed>');
葱油花蛤
el if(playerType==4)
document.write('<embed id="quicktime" type="video/quicktime"
pluginspage="/quicktime/download/index.html" volume=100
src="'+url+'" width=180 height=155 showstatusbar=fal showcontrols="true"
autostart="true" palette="transparent"></embed>');
el
document.writeln('文件扩展名不支持!');
}
function greateControl(){
control = ElementById('mediaplay');
}
function doStop() {
control.stop();
团队领导力
}