﻿// JScript 文件

function showflash(ur,w,h){ 
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
    document.write('width="'+w+'" height="'+h+'">');
    document.write('<param name="movie" value="'+ur+'" />');
    document.write('<param name="quality" value="high" />');
    document.write('<PARAM NAME="wmode" value="transparent" />');
    document.write('<embed src="'+ur+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>');
    document.write('</object>');
 }
function flashNew(pics,links,texts,width,height,textheight){

    var focus_width=width //图片框的宽度 
    var focus_height=height //图片框的高度 
    var text_height=textheight //文字的高度 
    var swf_height = focus_height+text_height //flash的高度 
    
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">'); 
    document.write('<param name="allowscriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">'); 
    document.write('<param name="menu" value="false"><param name="wmode" value="opaque">'); 
    document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">'); 
    document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowscriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
    document.write('</object>'); 

}
function flashMove(ur,w,h)
{
      document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+ w +'" height="'+ h +'" id="FLVPlayer1">');
      document.write('<param name="movie" value="FLVPlayer_Progressive.swf" />');
      document.write('<param name="salign" value="lt" />');
      document.write('<param name="quality" value="high" />');
      document.write('<param name="scale" value="noscale" />');
      document.write('<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=' + ur + '&autoPlay=true&autoRewind=true" />');
      document.write('<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=' + ur + '&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="'+ w +'" height="'+ h +'" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');    
      document.write('</object>');
}

function showFlvPlayer(flvUrl,width,height,autostart,bb) {
	var ss="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+ width +"\" height=\""+ height +"\">"
	ss+=" <param name=\"movie\" value=\"/images/flvPlayer.swf?vcastr_file="+ flvUrl +"\">";
	ss+="<param name=\"quality\" value=\"high\">";
	ss+="<param name=\"allowFullScreen\" value=\"true\" />";
	ss+="<embed src=\"http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv\" allowfullscreen=\"true\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
	ss+="</object>"
	if(bb){
	    return ss;
	}
	document.write(ss);
}
function showRmPlayer(rmUrl,width,height,autostart,bb){
    var html='<OBJECT height='+ height + ' width='+ width +' classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>'+
						'<PARAM NAME="CONTROLS" VALUE="ImageWindow">'+
					    ' <PARAM NAME="CONSOLE" VALUE="Clip">'+
					    ' <PARAM NAME="AUTOSTART" VALUE="'+ autostart +'">'+
					    ' <PARAM NAME="src" VALUE="'+ rmUrl +'">'+
					    ' </OBJECT>'+
					    ' <BR>'+
                        ' <OBJECT height=64 width='+ width +' classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>'+
                        ' <PARAM NAME="CONTROLS" VALUE="ControlPanel,StatusBar">'+
                        ' <PARAM NAME="CONSOLE" VALUE="Clip">'+
                        ' </OBJECT>';
    if(bb){
        return html;
    }
    document.write(html);
}
function showWmvPlayer(wmvUrl,width,height,autostart,bb){
    var html="<EMBED id=MediaPlayer374 src='"+ wmvUrl +"' width='"+ width + "' height='" + height + "' loop='false' autostart='"+ autostart +"'></EMBED>";
    if(bb){
        return html;
    }
    document.write(html);
}
