//FlV Player BY oroa.cn function insertflv(){ editor.focusEditor(); txt=prompt("flv 文件的地址","http://"); if(txt!=null) { txt2=prompt("宽度,高度,自动","450,350,1"); if (txt2==null) { txt2="450,350,1"; } AddTxt="[flv="+txt2+"]"+txt+"[/flv]"; AddText(AddTxt,''); } }
sale: [ true, showsale, true ],
flv: [ true, insertflv, false],
<span class="button" id="wy_media" title="插入多媒体"> <img style="width: 20px; height: 20px" src="$imgpath/post/c_editor/rm.gif" /></span>
<span class="button" id="wy_flv" title="插入flv档案在线播放"> <img style="width: 20px; height: 20px" src="$imgpath/post/editor/zz_flv.gif" /></span>
$message = preg_replace($searcharray,$replacearray,$message);
//FlV Player $message = preg_replace("/(\[flv=)([0-9]{1,3})(\,)([0-9]{1,3})(\,)([0-1]{1,1})(\])(.+?)(\[\/flv\])/eis","flv('\\8','\\6','\\2','\\4')",$message);
?>
//FlV Player,Power By oroa.cn function flv($url,$auto,$width=450,$height=350) { global $player_num,$player_pre; $pid=$player_pre.'_'.$player_num; $auto==1?$auto="&IsAutoPlay=true":$auto=''; $player="<object style='width:{$width}px; height:{$height}px;' id='VideoPlayback' align='middle' type='application/x-shockwave-flash' data='http://oroa.cn/images/flv.swf?vcastr_file={$url}$auto'> "; $player.="<param name='allowScriptAccess' value='sameDomain' />"; $player.="<param name='movie' value='http://oroa.cn/images/flv.swf?vcastr_file={$url}$auto'/>"; $player.="<param name='quality' value='best' />"; $player.="<param name='bgcolor' value='#ffffff' />"; $player.="<param name='scale' value='noScale' />"; $player.="<param name='wmode' value='window' />"; $player.="<param name='allowFullScreen' value='true' />"; $player.="<param name='salign' value='TL' /> </object>"; $player_num++; Return $player; }