else{oEditor.InsertHtml('<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/article/+path+'"><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/article/+path+'" autostart="true"></embed></object>')}
break;
case 'asf':
if (EditType=="UBBEditor"){parent.document.forms[0].Message.value+='
播放视频文件
\n'}else{oEditor.InsertHtml('<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/article/+path+'" /><param value="-1" /><param value="true" /><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'https://www.jb51.net/article/+path+'" autostart="true" /></object>')}
break;
case 'avi':
if (EditType=="UBBEditor"){parent.document.forms[0].Message.value+='
播放视频文件
\n'}else{oEditor.InsertHtml('<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/article/+path+'" /><param value="-1" /><param value="true" /><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'https://www.jb51.net/article/+path+'" autostart="true" /></object>')}
break;
case 'wmv':
if (EditType=="UBBEditor"){parent.document.forms[0].Message.value+='
播放视频文件
\n'}else{oEditor.InsertHtml('<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/article/+path+'" /><param value="-1" /><param value="true" /><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'https://www.jb51.net/article/+path+'" autostart="true" /></object>')}
break;
case 'swf':
if (EditType=="UBBEditor"){parent.document.forms[0].Message.value+='
Flash动画
\n'}else{oEditor.InsertHtml('<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/article/+path+'" /><param value="high" /><param value="never" /><embed src="'https://www.jb51.net/article/+path+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" /></object>')}
break;
default :
if (EditType=="UBBEditor"){
if (memberDown==1)
{parent.document.forms[0].Message.value+='[mDown='https://www.jb51.net/article/+path+']点击下载此文件[/mDown]\n'}
else
{parent.document.forms[0].Message.value+=' 点击下载此文件\n'}
}
else{oEditor.InsertHtml('<a href="'https://www.jb51.net/article/+path+'"><img src="" alt=""/>点击下载此文件</a>')}
break;
}
}
//写入顶部Flash文件
function WriteHeadFlash(Path,Width,Height,Transparent){
var Temp,T=""
Temp='<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">'
Temp+='<param value="'https://www.jb51.net/article/+Path+'"/>'
Temp+='<param value="High"/>'
Temp+='<param value="ExactFit"/>'
if (Transparent) {Temp+=' <param value="transparent"/>';T='wmode="transparent"'}
Temp+='<embed src="'https://www.jb51.net/article/+Path+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" quality="High"'+T+' scale="ExactFit"/>'
Temp+='</object>'
document.getElementById("FlashHead").innerHTML=Temp
}