document.images[strID+"_img"].src="images/mm_snd.gif"
document.getElementById(strID+"_text").innerHTML="在线播放"
}else{
document.images[strID+"_img"].src="images/mm_snd_stop.gif"
document.getElementById(strID+"_text").innerHTML="关闭在线播放"
switch(strType){
case "swf":
tmpstr='<div></div><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="'https://www.jb51.net/+strURL+'" /><param value="high" /><param value="never" /><embed src="'https://www.jb51.net/+strURL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" /></object>';
break;
case "wma":
tmpstr='<div></div><object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ><paramhowStatusBar" value="-1"><param value="False"><param value="'https://www.jb51.net/+strURL+'"></object>';
break;
case "wmv":
tmpstr='<div></div><object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" type="application/x-oleobject" standby="Loading..."><param VALUE="'https://www.jb51.net/+strURL+'" /><param value="-1" /><param value="true" /><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'https://www.jb51.net/+strURL+'" autostart="true" /></object>';
break;
case "rm":
tmpstr='<div></div><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"><param value="'https://www.jb51.net/+strURL+'" /><param VALUE="ImageWindow" /><param value="one" /><param value="true" /><embed src="'https://www.jb51.net/+strURL+'" nojava="true" controls="ImageWindow" console="one"></object>'+
'<br/><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" /><param value="StatusBar" /><param value="true" /><param value="one" /><embed src="'https://www.jb51.net/+strURL+'" nojava="true" controls="StatusBar" console="one" /></object>'+'<br /><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" /><param value="ControlPanel" /><param value="true" /><param value="one" /><embed src="'https://www.jb51.net/+strURL+'" nojava="true" controls="ControlPanel" console="one" autostart="true" loop="false" /></object>';
break;
case "ra":
tmpstr='<div></div><object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA"><param value="6694"><param value="1588"><param value="true"><param value="0"><param value="0"><param value="0"><param value="'https://www.jb51.net/+strURL+'"><param value="StatusBar,ControlPanel"><param value="0"><param value="0"><param value="0"><param value="0"><param value="#000000"><embed src="'https://www.jb51.net/+strURL+'" autostart="true"></embed></object>';
break;
case "qt":
tmpstr='<div></div><embed src="'https://www.jb51.net/+strURL+'" autoplay="true" loop="false" controller="true" playeveryframe="false" cache="false" scale="TOFIT" bgcolor="#000000" kioskmode="false" targetcache="false" pluginspage="http://www.apple.com/quicktime/" />';
}
document.getElementById(strID).innerHTML = tmpstr;
}
document.getElementById(strID+"_href").blur()
}
function Trim(TRIM_VALUE){
if(TRIM_VALUE.length < 1){
return"";
}
TRIM_VALUE = RTrim(TRIM_VALUE);
TRIM_VALUE = LTrim(TRIM_VALUE);
if(TRIM_VALUE==""){
return "";
}
else{
return TRIM_VALUE;
}
} //End Function
function RTrim(VALUE){
var w_space = String.fromCharCode(32);
var v_length = VALUE.length;
var strTemp = "";
if(v_length < 0){
return"";
}
var iTemp = v_length -1;