给你一段代码,什么都清除了。
<SCRIPT LANGUAGE="JavaScript">
<!--
function showsetting()
{
RPControl.ShowVideoCardFormatDialog();
}
var ErrorCode,ErrorString;
function endencode()
{ try {
if (RPControl.IsEncoding)
RPControl.StopEncoding()
else
alert("not encoding !")
}
catch (e) {
alert(e);
}
}
function startencode()
{ try {
RPControl.InputDoEvents = true;
//RPControl.ShowVideoCardFormatDialog();
if (RPControl.IsEncoding )
alert("is encoding !")
else {
RPControl.LoadProducerSettings();
RPControl.ServerFilename = setting.FileName.value
RPControl.Title = setting.CourseName.value;
RPControl.Auther = setting.TeacherName.value;
RPControl.StartEncoding();
}
}
catch (e) {
alert(RPControl.GetErrorString(RPControl.LastError)+'#'+e);
}
}
function RPControl_OnErrorOccurred(ErrorCode,ErrorString)
{
alert(ErrorString);
}
-->
</SCRIPT>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>
<table align=center><tr><td>
<OBJECT ID="RPControl" NAME="RPControl" WIDTH=400 HEIGHT=156
CLASSID="CLSID:56919D41-BE39-11D2-A404-00104BDF4755"
CODEBASE="http://192.168.100.11/">
<PARAM NAME="_ExtentX" VALUE="10583">
<PARAM NAME="_ExtentY" VALUE="4128">
<PARAM NAME="InputType" VALUE="1">
<PARAM NAME="InputFilename" VALUE="">
<PARAM NAME="InputCaptureAudioDriver" VALUE="0">
<PARAM NAME="InputCaptureVideoDriver" VALUE="0">
<PARAM NAME="InputDoAudio" VALUE="-1">
<PARAM NAME="InputDoVideo" VALUE="0">
<PARAM NAME="InputDoEvents" VALUE="-1">
<PARAM NAME="DoOutputFile" VALUE="0">
<PARAM NAME="DoOutputServer" VALUE="-1">
<PARAM NAME="OutputFilename" VALUE="">
<PARAM NAME="TempDirectory" VALUE="C:/Temp">
<PARAM NAME="ServerName" VALUE="eosweb">
<PARAM NAME="ServerPort" VALUE="4040">
<PARAM NAME="ServerFilename" VALUE="livenew.rm">
<PARAM NAME="ServerUserName" VALUE="admin">
<PARAM NAME="ServerPassword" VALUE="123">
<PARAM NAME="ServerTransport" VALUE="0">
<PARAM NAME="ListBroadcast" VALUE="-1">
<PARAM NAME="Title" VALUE="">
<PARAM NAME="Author" VALUE="thtf">
<PARAM NAME="Copyright" VALUE="2003">
<PARAM NAME="Description" VALUE="">
<PARAM NAME="Keywords" VALUE="">
<PARAM NAME="Rating" VALUE="0">
<PARAM NAME="Indexable" VALUE="-1">
<PARAM NAME="MobilePlay" VALUE="-1">
<PARAM NAME="SelectiveRecord" VALUE="-1">
<PARAM NAME="Target28KModem" VALUE="0">
<PARAM NAME="Target56KModem" VALUE="-1">
<PARAM NAME="TargetSingleISDN" VALUE="0">
<PARAM NAME="TargetDualISDN" VALUE="0">
<PARAM NAME="TargetDSLCableModem" VALUE="0">
<PARAM NAME="TargetLAN" VALUE="0">
<PARAM NAME="AudioContent" VALUE="0">
<PARAM NAME="VideoQuality" VALUE="0">
<PARAM NAME="SureStream" VALUE="-1">
<PARAM NAME="DoAudioOnlyMultimedia" VALUE="0">
<PARAM NAME="EmphasizeAudio" VALUE="-1">
<PARAM NAME="PlayerCompatibility" VALUE="6">
<PARAM NAME="CroppingEnabled" VALUE="0">
<PARAM NAME="ResizingEnabled" VALUE="0">
<PARAM NAME="CroppingLeft" VALUE="0">
<PARAM NAME="CroppingTop" VALUE="0">
<PARAM NAME="CroppingWidth" VALUE="0">
<PARAM NAME="CroppingHeight" VALUE="0">
<PARAM NAME="OutputWidth" VALUE="0">
<PARAM NAME="OutputHeight" VALUE="0">
<PARAM NAME="NoiseFiltering" VALUE="0">
<PARAM NAME="BackColor" VALUE="11126946">
<PARAM NAME="BackStyle" VALUE="0">
<PARAM NAME="Target256KDSLCableModem" VALUE="0">
<PARAM NAME="Target384KDSLCableModem" VALUE="0">
<PARAM NAME="Target512KDSLCableModem" VALUE="0">
<embed WIDTH=399 HEIGHT=156></embed>
</OBJECT>
<SCRIPT LANGUAGE="javascript" FOR="RPControl" EVENT="OnErrorOccurred(ErrorCode,ErrorString)">
alert(ErrorCode+ErrorString);
</SCRIPT>
<SCRIPT LANGUAGE="javascript" FOR="RPControl" EVENT="OnEncodingStarted()">
alert( "±à&Acirc;&euml;&iquest;&ordf;&Ecirc;&frac14;");
document.message.contents.value = "±à&Acirc;&euml;&iquest;&ordf;&Ecirc;&frac14;";
</SCRIPT>
<SCRIPT LANGUAGE="javascript" FOR="RPControl" EVENT="OnEncodingStopped()">
document.message.contents.value = "±à&Acirc;&euml;&frac12;á&Ecirc;&oslash;";
</SCRIPT>
<SCRIPT language="javascript" for="RPCont" event="OnEncodingProgressChanged(Duration, PercentDone, Timestamp, AudioLevel)">
document.message.status.value = Duration + PercentDone + Timestamp + AudioLevel;
</SCRIPT>