﻿// JScript 文件
function playMp3(url){
	var playStr="<div id='playObj'><object id='mplayer_mp3' width='460' height='68' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' align='baseline' border='0' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>";
	playStr+="<param name='FileName' value='"+url+"'>";
	playStr+="<param name='ShowControls' value='1'>";
	playStr+="<param name='ShowPositionControls' value='0'>";
	playStr+="<param name='ShowAudioControls' value='1'>";
	playStr+="<param name='ShowTracker' value='1'>";
	playStr+="<param name='ShowDisplay' value='0'>";
	playStr+="<param name='ShowStatusBar' value='1'>";
	playStr+="<param name='AutoSize' value='0'>";
	playStr+="<param name='ShowGotoBar' value='0'>";
	playStr+="<param name='ShowCaptioning' value='0'>";
	playStr+="<param name='AutoStart' value='1'>";
	playStr+="<param name='PlayCount' value='0'>";
	playStr+="<param name='AnimationAtStart' value='0'>";
	playStr+="<param name='TransparentAtStart' value='0'>";
	playStr+="<param name='AllowScan' value='0'>";
	playStr+="<param name='EnableContextMenu' value='1'>";
	playStr+="<param name='ClickToPlay' value='0'>";
	playStr+="<param name='InvokeURLs' value='1'>";
	playStr+="<param name='DefaultFrame' value='datawindow'>";
	playStr+="<embed src='"+url+"'";
	playStr+="align='baseline' border='0'";
	playStr+="width='460' height='68'";
	playStr+="type='application/x-mplayer2'";
	playStr+="pluginspage='http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp;'";
	playStr+="name='MediaPlayer' id='MediaPlayer' showcontrols='1' showpositioncontrols='0'";
	playStr+="showaudiocontrols='1' showtracker='1' showdisplay='0'";
	playStr+="showstatusbar='1'";
	playStr+="autosize='0'";
	playStr+="showgotobar='0' showcaptioning='0' autostart='1' autorewind='0'";
	playStr+="animationatstart='0' transparentatstart='0' allowscan='1'";
	playStr+="enablecontextmenu='1' clicktoplay='0' invokeurls='1'";
	playStr+="defaultframe='datawindow'>";
	playStr+="</embed>";
	playStr+="</object></div>";
	return playStr;
}


function mp3(url)
{
    var playStr="<object id='mplayer_mp3' width='460' height='68' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' align='baseline' border='0' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>";
	playStr+="<param name='FileName' value='"+url+"'>";
	playStr+="<param name='ShowControls' value='1'>";
	playStr+="<param name='ShowPositionControls' value='0'>";
	playStr+="<param name='ShowAudioControls' value='1'>";
	playStr+="<param name='ShowTracker' value='1'>";
	playStr+="<param name='ShowDisplay' value='0'>";
	playStr+="<param name='ShowStatusBar' value='1'>";
	playStr+="<param name='AutoSize' value='0'>";
	playStr+="<param name='ShowGotoBar' value='0'>";
	playStr+="<param name='ShowCaptioning' value='0'>";
	playStr+="<param name='AutoStart' value='1'>";
	playStr+="<param name='PlayCount' value='0'>";
	playStr+="<param name='AnimationAtStart' value='0'>";
	playStr+="<param name='TransparentAtStart' value='0'>";
	playStr+="<param name='AllowScan' value='0'>";
	playStr+="<param name='EnableContextMenu' value='1'>";
	playStr+="<param name='ClickToPlay' value='0'>";
	playStr+="<param name='InvokeURLs' value='1'>";
	playStr+="<param name='DefaultFrame' value='datawindow'>";
	playStr+="<embed src='"+url+"'";
	playStr+="align='baseline' border='0'";
	playStr+="width='460' height='68'";
	playStr+="type='application/x-mplayer2'";
	playStr+="pluginspage='http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp;'";
	playStr+="name='MediaPlayer' id='MediaPlayer' showcontrols='1' showpositioncontrols='0'";
	playStr+="showaudiocontrols='1' showtracker='1' showdisplay='0'";
	playStr+="showstatusbar='1'";
	playStr+="autosize='0'";
	playStr+="showgotobar='0' showcaptioning='0' autostart='1' autorewind='0'";
	playStr+="animationatstart='0' transparentatstart='0' allowscan='1'";
	playStr+="enablecontextmenu='1' clicktoplay='0' invokeurls='1'";
	playStr+="defaultframe='datawindow'>";
	playStr+="</embed>";
	playStr+="</object>";
	return playStr;
}

function playLive(url)
{
    var playStr='<div id="playObj"><OBJECT id="MediaPlayer1" type="application/x-oleobject" height="310" width="320" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">';
	playStr+='<PARAM NAME="AudioStream" VALUE="-1">';
	playStr+='<PARAM NAME="AutoSize" VALUE="0">';
	playStr+='<PARAM NAME="AutoStart" VALUE="-1">';
	playStr+='<PARAM NAME="AnimationAtStart" VALUE="-1">';
	playStr+='<PARAM NAME="AllowScan" VALUE="-1">';
	playStr+='<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">';
	playStr+='<PARAM NAME="AutoRewind" VALUE="-1">';
	playStr+='<PARAM NAME="Balance" VALUE="0">';
	playStr+='<PARAM NAME="BaseURL" VALUE="">';
	playStr+='<PARAM NAME="BufferingTime" VALUE="5">';
	playStr+='<PARAM NAME="CaptioningID" VALUE="">';
	playStr+='<PARAM NAME="ClickToPlay" VALUE="-1">';
	playStr+='<PARAM NAME="CursorType" VALUE="0">';
	playStr+='<PARAM NAME="CurrentPosition" VALUE="-1">';
	playStr+='<PARAM NAME="CurrentMarker" VALUE="0">';
	playStr+='<PARAM NAME="DefaultFrame" VALUE="">';
	playStr+='<PARAM NAME="DisplayBackColor" VALUE="0">';
	playStr+='<PARAM NAME="DisplayForeColor" VALUE="16777215">';
	playStr+='<PARAM NAME="DisplayMode" VALUE="0">';
	playStr+='<PARAM NAME="DisplaySize" VALUE="4">';
	playStr+='<PARAM NAME="Enabled" VALUE="-1">';
	playStr+='<PARAM NAME="EnableContextMenu" VALUE="0">';
	playStr+='<PARAM NAME="EnablePositionControls" VALUE="-1">';
	playStr+='<PARAM NAME="EnableFullScreenControls" VALUE="0">';
	playStr+='<PARAM NAME="EnableTracker" VALUE="-1">';
	playStr+='<PARAM NAME="Filename" VALUE="'+url+'">';
	playStr+='<PARAM NAME="InvokeURLs" VALUE="-1">';
	playStr+='<PARAM NAME="Language" VALUE="-1">';
	playStr+='<PARAM NAME="Mute" VALUE="0">';
	playStr+='<PARAM NAME="PlayCount" VALUE="1">';
	playStr+='<PARAM NAME="PreviewMode" VALUE="0">';
	playStr+='<PARAM NAME="Rate" VALUE="1">';
	playStr+='<PARAM NAME="SAMILang" VALUE="">';
	playStr+='<PARAM NAME="SAMIStyle" VALUE="">';
	playStr+='<PARAM NAME="SAMIFileName" VALUE="">';
	playStr+='<PARAM NAME="SelectionStart" VALUE="-1">';
	playStr+='<PARAM NAME="SelectionEnd" VALUE="-1">';
	playStr+='<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">';
	playStr+='<PARAM NAME="SendWarningEvents" VALUE="-1">';
	playStr+='<PARAM NAME="SendErrorEvents" VALUE="-1">';
	playStr+='<PARAM NAME="SendKeyboardEvents" VALUE="0">';
	playStr+='<PARAM NAME="SendMouseClickEvents" VALUE="0">';
	playStr+='<PARAM NAME="SendMouseMoveEvents" VALUE="0">';
	playStr+='<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">';
	playStr+='<PARAM NAME="ShowCaptioning" VALUE="0">';
	playStr+='<PARAM NAME="ShowControls" VALUE="-1">';
	playStr+='<PARAM NAME="ShowAudioControls" VALUE="-1">';
	playStr+='<PARAM NAME="ShowDisplay" VALUE="0">';
	playStr+='<PARAM NAME="ShowGotoBar" VALUE="0">';
	playStr+='<PARAM NAME="ShowPositionControls" VALUE="-1">';
	playStr+='<PARAM NAME="ShowStatusBar" VALUE="-1">';
	playStr+='<PARAM NAME="ShowTracker" VALUE="-1">';
	playStr+='<PARAM NAME="TransparentAtStart" VALUE="0">';
	playStr+='<PARAM NAME="VideoBorderWidth" VALUE="0">';
	playStr+='<PARAM NAME="VideoBorderColor" VALUE="0">';
	playStr+='<PARAM NAME="VideoBorder3D" VALUE="0">';
	playStr+='<PARAM NAME="Volume" VALUE="-600">';
	playStr+='<PARAM NAME="WindowlessVideo" VALUE="0">';
    playStr+='</OBJECT></div>';
    return playStr;
}

function live(url)
{
    var playStr='<OBJECT id="MediaPlayer1" type="application/x-oleobject" height="310" width="320" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">';
	playStr+='<PARAM NAME="AudioStream" VALUE="-1">';
	playStr+='<PARAM NAME="AutoSize" VALUE="0">';
	playStr+='<PARAM NAME="AutoStart" VALUE="-1">';
	playStr+='<PARAM NAME="AnimationAtStart" VALUE="-1">';
	playStr+='<PARAM NAME="AllowScan" VALUE="-1">';
	playStr+='<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">';
	playStr+='<PARAM NAME="AutoRewind" VALUE="-1">';
	playStr+='<PARAM NAME="Balance" VALUE="0">';
	playStr+='<PARAM NAME="BaseURL" VALUE="">';
	playStr+='<PARAM NAME="BufferingTime" VALUE="5">';
	playStr+='<PARAM NAME="CaptioningID" VALUE="">';
	playStr+='<PARAM NAME="ClickToPlay" VALUE="-1">';
	playStr+='<PARAM NAME="CursorType" VALUE="0">';
	playStr+='<PARAM NAME="CurrentPosition" VALUE="-1">';
	playStr+='<PARAM NAME="CurrentMarker" VALUE="0">';
	playStr+='<PARAM NAME="DefaultFrame" VALUE="">';
	playStr+='<PARAM NAME="DisplayBackColor" VALUE="0">';
	playStr+='<PARAM NAME="DisplayForeColor" VALUE="16777215">';
	playStr+='<PARAM NAME="DisplayMode" VALUE="0">';
	playStr+='<PARAM NAME="DisplaySize" VALUE="4">';
	playStr+='<PARAM NAME="Enabled" VALUE="-1">';
	playStr+='<PARAM NAME="EnableContextMenu" VALUE="0">';
	playStr+='<PARAM NAME="EnablePositionControls" VALUE="-1">';
	playStr+='<PARAM NAME="EnableFullScreenControls" VALUE="0">';
	playStr+='<PARAM NAME="EnableTracker" VALUE="-1">';
	playStr+='<PARAM NAME="Filename" VALUE="'+url+'">';
	playStr+='<PARAM NAME="InvokeURLs" VALUE="-1">';
	playStr+='<PARAM NAME="Language" VALUE="-1">';
	playStr+='<PARAM NAME="Mute" VALUE="0">';
	playStr+='<PARAM NAME="PlayCount" VALUE="1">';
	playStr+='<PARAM NAME="PreviewMode" VALUE="0">';
	playStr+='<PARAM NAME="Rate" VALUE="1">';
	playStr+='<PARAM NAME="SAMILang" VALUE="">';
	playStr+='<PARAM NAME="SAMIStyle" VALUE="">';
	playStr+='<PARAM NAME="SAMIFileName" VALUE="">';
	playStr+='<PARAM NAME="SelectionStart" VALUE="-1">';
	playStr+='<PARAM NAME="SelectionEnd" VALUE="-1">';
	playStr+='<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">';
	playStr+='<PARAM NAME="SendWarningEvents" VALUE="-1">';
	playStr+='<PARAM NAME="SendErrorEvents" VALUE="-1">';
	playStr+='<PARAM NAME="SendKeyboardEvents" VALUE="0">';
	playStr+='<PARAM NAME="SendMouseClickEvents" VALUE="0">';
	playStr+='<PARAM NAME="SendMouseMoveEvents" VALUE="0">';
	playStr+='<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">';
	playStr+='<PARAM NAME="ShowCaptioning" VALUE="0">';
	playStr+='<PARAM NAME="ShowControls" VALUE="-1">';
	playStr+='<PARAM NAME="ShowAudioControls" VALUE="-1">';
	playStr+='<PARAM NAME="ShowDisplay" VALUE="0">';
	playStr+='<PARAM NAME="ShowGotoBar" VALUE="0">';
	playStr+='<PARAM NAME="ShowPositionControls" VALUE="-1">';
	playStr+='<PARAM NAME="ShowStatusBar" VALUE="-1">';
	playStr+='<PARAM NAME="ShowTracker" VALUE="-1">';
	playStr+='<PARAM NAME="TransparentAtStart" VALUE="0">';
	playStr+='<PARAM NAME="VideoBorderWidth" VALUE="0">';
	playStr+='<PARAM NAME="VideoBorderColor" VALUE="0">';
	playStr+='<PARAM NAME="VideoBorder3D" VALUE="0">';
	playStr+='<PARAM NAME="Volume" VALUE="-600">';
	playStr+='<PARAM NAME="WindowlessVideo" VALUE="0">';
    playStr+='</OBJECT>';
    return playStr;
}
