Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <script language="JavaScript1.2" src="cgi-bin/hi3510/getvencattr.cgi?-chn=11" type="text/javascript"></script>
- <script language="JavaScript1.2" src="cgi-bin/hi3510/getvencattr.cgi?-chn=12" type="text/javascript"></script>
- <script language="JavaScript1.2" src="cgi-bin/hi3510/getsetupflag.cgi" type="text/javascript"></script>
- <SCRIPT language=JavaScript src="slider.js"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="cgi-bin/hi3510/param.cgi?cmd=getvdisplayattr&-brightness=&-saturation=&-contrast=&-hue=&-flip=&-mirror=&-powerfreq=&" TYPE="text/javascript"></SCRIPT>
- <script type="text/javascript">
- function newImage(arg) {
- if (document.images) {
- rslt = new Image();
- rslt.src = arg;
- return rslt;
- }
- }
- function changeImages() {
- if (document.images && (preloadFlag == true)) {
- for (var i=0; i<changeImages.arguments.length; i+=2) {
- document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
- }
- }
- }
- var preloadFlag = false;
- function preloadImages() {
- if (document.images) {
- index_08_Over = newImage("images/index_08-Over.gif");
- index_09_Over = newImage("images/index_09-Over.gif");
- index_11_Over = newImage("images/index_11-Over.gif");
- index_12_Over = newImage("images/index_12-Over.gif");
- index_13_Over = newImage("images/index_13-Over.gif");
- index_39_Over = newImage("images/index_39-Over.gif");
- index_39_Down = newImage("images/index_39-Down.gif");
- preloadFlag = true;
- }
- }
- // -->
- function MM_findObj(n, d) { //v4.01
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && d.getElementById) x=d.getElementById(n); return x;
- }
- //-->
- var w;
- var h;
- var rtsp;
- var img2345 = new Image();
- function update()
- {
- var imgObj;
- imgObj = document.getElementById('rimg12');
- imgObj.src = img2345.src;
- img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
- }
- function takeError()
- {
- img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
- }
- function startonload()
- {
- img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
- img2345.onerror=takeError;
- img2345.onload=update;
- }
- function ptzout()
- {
- MM_swapImgRestore();
- // ptzcmdSubmit('stop');
- }
- function load1()
- {
- /*
- if(language=='simple_chinese'){
- document.getElementById('Image8_c').style.display="";
- document.getElementById('Image8').style.display="none";
- document.getElementById('mediaid_c').style.display="";
- document.getElementById('mediaid').style.display="none";
- document.getElementById('networkid_c').style.display="";
- document.getElementById('networkid').style.display="none";
- document.getElementById('alarmid_c').style.display="";
- document.getElementById('alarmid').style.display="none";
- document.getElementById('adbancedid_c').style.display="";
- document.getElementById('adbancedid').style.display="none";
- document.getElementById('systemid_c').style.display="";
- document.getElementById('systemid').style.display="none";
- }else{
- document.getElementById('Image8').style.display="";
- document.getElementById('Image8_c').style.display="none";
- document.getElementById('mediaid').style.display="";
- document.getElementById('mediaid_c').style.display="none";
- document.getElementById('networkid').style.display="";
- document.getElementById('networkid_c').style.display="none";
- document.getElementById('alarmid').style.display="";
- document.getElementById('alarmid_c').style.display="none";
- document.getElementById('adbancedid').style.display="";
- document.getElementById('adbancedid_c').style.display="none";
- document.getElementById('systemid').style.display="";
- document.getElementById('systemid_c').style.display="none";
- }
- */
- var ip=document.location.host;
- //var url="rtsp://"+ip;
- var url = "http://"+ip;
- if ((navigator.appVersion.indexOf("iPod")!=-1) || (navigator.appVersion.indexOf("iPhone")!=-1))
- {
- data="<img src='/tmpfs/auto.jpg' id='rimg12'>";
- document.getElementById('mydisplay').innerHTML=data;
- }
- else
- {
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- var streamnum = DHiMPlayer.GetStreamNum();
- if (streamnum == 11)
- {
- w=parseInt(width_1);
- h=parseInt(height_1);
- document.form1.streamselect[0].selected=true;
- }
- else
- {
- w=parseInt(width_2);
- h=parseInt(height_2);
- document.form1.streamselect[1].selected=true;
- }
- }
- else
- {
- w=parseInt(width_1);
- h=parseInt(height_1);
- rtsp=url+"/"+"iphone/11"+"?"+name0+":"+password0+"&";
- h=h+14;
- data='<embed src='+rtsp+' width='+w+' height='+h+' autoplay="true" controller="true" ShowStatusBar="false" type="video/quicktime"';
- data=data+' pluginspage="http://www.apple.com/quicktime/download/index.html"> </embed>';
- document.getElementById('mydisplay').innerHTML=data;
- }
- }
- if ((navigator.appVersion.indexOf("iPod")!=-1) || (navigator.appVersion.indexOf("iPhone")!=-1))
- {
- startonload();
- }
- else
- {
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- DHiMPlayer.SetUrl(url,80,streamnum,name0,password0);
- DHiMPlayer.SetWndPos(0, 0, w, h);
- DHiMPlayer.SetZoomFlag(0);
- DHiMPlayer.Play();
- document.form1.sizeselect[3].selected=true;
- }
- //else
- //{
- // startonload();
- //}
- }
- //DHiMPlayer1.OpenMDSetPage(1);
- // startflag=1;
- }
- /*
- function do_cancel()
- {
- var form=document.form2;
- var form1=document.form11;
- var index=0;
- form.bright.value=brightness;
- form.contrast.value=contrast;
- form.hue.value = hue;
- form.saturation.value = saturation;
- form.cmd.value = "setvdisplayattrcancel";
- form.bright.name="-brightness";
- form.contrast.name="-contrast";
- form.hue.name="-hue";
- form.saturation.name="-saturation";
- form.cururl.value=document.URL ;
- form.action="cgi-bin/hi3510/param.cgi";
- form.submit();
- }
- function do_submit()
- {
- var form=document.form2;
- var form1=document.form11;
- var index=0;
- form.bright.value=form1.brightnesstext.value;
- form.contrast.value=form1.contrasttext.value;
- form.hue.value = form1.huetext.value;
- form.saturation.value = form1.saturationtext.value;
- form.bright.name="-brightness";
- form.contrast.name="-contrast";
- form.hue.name="-hue";
- form.saturation.name="-saturation";
- form.cururl.value=document.URL ;
- form.action="cgi-bin/hi3510/param.cgi";
- form.submit();
- }
- function defaultset()
- {
- var form=document.form2;
- var form1=document.form11;
- form.bright.value = "120";
- form.contrast.value = "140";
- form.saturation.value = "150";
- form.hue.value = "255";
- form.cmd.value = "setvdisplayattr";
- form.bright.name="-brightness";
- form.contrast.name="-contrast";
- form.hue.name="-hue";
- form.saturation.name="-saturation";
- form.cururl.value=document.URL ;
- form.action="cgi-bin/hi3510/param.cgi";
- form.submit();
- }
- */
- function audioctrl()
- {
- DHiMPlayer.Mute();
- }
- function talkctrl()
- {
- DHiMPlayer.Talk();
- }
- function SetPath()
- {
- DHiMPlayer.SetRecordPath();
- }
- function IsMonitorMute()
- {
- var MuteState = DHiMPlayer.GetMuteState;
- //alert(MuteState);
- if (MuteState == true)
- {//静音
- document.getElementById("audioctrl").alt = str_mute_mute;
- //audioctrl.alt = str_mute_mute;
- document.getElementById("audioctrl").src = "images/MuteStateoff.gif";
- }
- else
- {//监听
- document.getElementById("audioctrl").alt = str_monitor_monitor;
- //audioctrl.alt = str_monitor_monitor;
- document.getElementById("audioctrl").src = "images/MuteStateno.gif";
- }
- }
- function IsTalkState()
- {
- var TalkState = DHiMPlayer.GetTalkState;
- //alert(MuteState);
- if (TalkState == true)
- {//正在对讲
- document.getElementById("talkctrl").alt = str_talk_start;
- document.getElementById("talkctrl").src = "images/TalkStateno.gif";
- }
- else
- {//停止对讲
- document.getElementById("talkctrl").alt = str_talk_stop;
- document.getElementById("talkctrl").src = "images/TalkStateoff.gif";
- }
- }
- function flush()
- {
- DHiMPlayer.InvalidateWnd();
- MM_swapImage('Image100','','images/botton/capture.jpg',1);
- }
- function sizechange()
- {
- var form=document.form1;
- if(form.sizeselect[0].selected==true)
- {
- if ((h == 576) || (h == 288) || (h == 144))
- DHiMPlayer.SetWndPos(0, 0, 704, 576);
- else
- DHiMPlayer.SetWndPos(0, 0, 704, 480);
- }
- else if(form.sizeselect[1].selected==true)
- {
- if ((h == 576) || (h == 288) || (h == 144))
- DHiMPlayer.SetWndPos(0, 0, 352, 288);
- else
- DHiMPlayer.SetWndPos(0, 0, 352, 240);
- }
- else if(form.sizeselect[2].selected==true)
- {
- if ((h == 576) || (h == 288) || (h == 144))
- DHiMPlayer.SetWndPos(0, 0, 176, 144);
- else
- DHiMPlayer.SetWndPos(0, 0, 176, 120);
- }
- else
- {
- DHiMPlayer.SetWndPos(0, 0, w, h);
- }
- }
- function streamchange()
- {
- var form=document.form1;
- if (form.streamselect[0].selected==true)
- {
- DHiMPlayer.SetStreamNum(11);
- location.reload();
- }
- else
- if (form.streamselect[1].selected==true)
- {
- DHiMPlayer.SetStreamNum(12);
- location.reload();
- }
- }
- function snap()
- {
- DHiMPlayer.Snapshot();
- }
- function record()
- {
- DHiMPlayer.Record(0);
- }
- function playback()
- {
- DHiMPlayer.PlayBack();
- }
- function ptzcmdSubmit(casename)
- {
- var speed1 = document.getElementById('speedslct').value;
- parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=' + casename+'&-speed='+speed1;
- }
- function ptzctrlpresetSubmit(casenum)
- {
- parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=goto&-number=' + casenum;
- }
- function ptzsetpresetSubmit(casenum)
- {
- parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=set&-status=1&-number=' + casenum;
- }
- function ptzcmdextSubmit(flag)
- {
- parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=auto&-switch=' + flag;
- }
- function ptzcmdbrushSubmit(flag)
- {
- parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=brush&-switch=' + flag;
- }
- function ptzcmdlightSubmit(flag)
- {
- parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=light&-switch=' + flag;
- }
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
- function MM_swapImgRestore() { //v3.0
- var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- var request = null;
- function CreateRequest(){
- request = null;
- try {
- request = new XMLHttpRequest();
- } catch (trymicrosoft) {
- try {
- request = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (othermicrosoft) {
- try {
- request = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (failed) {
- request = false;
- }
- }
- }
- if (!request)
- alert("Error initializing XMLHttpRequest!");
- return request;
- }
- function HttpRequest(method, cgistr, cb, async){
- var tempstring = eval("'"+cgistr+"'");
- request=CreateRequest();
- if ( request == null) { // Sorry, no Ajax
- alert("Ajax not available");
- return null;
- }
- request.open(method, tempstring, async); //synchronous
- if(async)
- {
- request.onreadystatechange = function(){
- if (request.readyState == 4)
- {
- if (request.status == 200){
- response = request.responseText
- if(cb) cb();
- }
- else if (request.status == 404)
- alert("Request URL does not exist");
- }
- }
- }
- if(method=="POST")
- {
- request.send(cgistr);
- }
- else
- {
- request.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );
- request.send(null);
- }
- if(async) return;
- if (request.status != 200)
- {
- return error;
- }
- return request.responseText;
- }
- function SendCGICMD(cgistring){
- return HttpRequest("GET", cgistring, null, false);
- }
- function BrightnessChg(val){
- var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-brightness="+val+"'");
- SendCGICMD(string);
- }
- function ContrastChg(val){
- var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-contrast="+val+"'");
- SendCGICMD(string);
- }
- function SaturationChg(val){
- var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-saturation="+val+"'");
- SendCGICMD(string);
- }
- function HueChg(val){
- var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-hue="+val+"'");
- SendCGICMD(string);
- }
- //-->
- </script><!-- End Preload Script -->
- <style>a{color:000000;TEXT-DECORATION:none}a:hover{color:FF0000;TEXT-DECORATION:underline}</style>
- <style>
- BODY {
- MARGIN: 0px; BACKGROUND-COLOR: #848284; font: arial;font-family:Arial, Helvetica, sans-serif;
- }
- .mid01{border-top-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#d8d8d8; border-right-color:#d8d8d8; border-bottom-color:#d8d8d8; border-left-color:#d8d8d8; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;}
- .mid02{border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b;}
- .mid03{border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b;}
- .rect_left{border-top-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;}
- .rect_right{border-top-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;}
- </style>
- <title></title>
- </head>
- <script src="public.js"></script>
- <script src="language.js"></script>
- <script language="javascript">
- var record_osd=1;
- var current = 0;
- var PRI_REFUSE = 0;
- var PRI_VISITOR = 1;
- var PRI_OPERATOR = 2;
- var PRI_ADMINISTRATOR = 3;
- var R320_240 = 8;
- var R640_480 = 32;
- var OK = 0;
- var ERROR_CONNECT = -1;
- var ERROR_SOCKET = -2;
- var ERROR_TIMEOUT = -3;
- var ERROR_VERSION = -4;
- var ERROR_CANCEL = -5;
- var ERROR_CLOSED = -6;
- var ERROR_UNKNOWN = -7;
- var ERROR_FILE = -8;
- var ERROR_PARAM = -9;
- var ERROR_THREAD = -10;
- var ERROR_STATUS = -11;
- var ERROR_ID = -12;
- var FAIL_USER = 1;
- var FAIL_MAXCONNS = 2;
- var FAIL_VERSION = 3;
- var FAIL_ID = 4;
- var FAIL_PWD = 5;
- var FAIL_PRI = 6;
- var FAIL_UNSUPPORT = 7;
- var PTZ_STOP = 1;
- var TILT_UP = 0;
- var TILT_DOWN = 2;
- var PAN_LEFT = 6;
- var PAN_RIGHT = 4;
- var PTZ_LEFT_UP = 91;
- var PTZ_RIGHT_UP = 90;
- var PTZ_LEFT_DOWN = 93;
- var PTZ_RIGHT_DOWN = 92;
- var PTZ_CENTER = 25;
- var PTZ_VPATROL = 26;
- var PTZ_VPATROL_STOP = 27;
- var PTZ_HPATROL = 28;
- var PTZ_HPATROL_STOP = 29;
- var IO_ON = 95;
- var IO_OFF = 94;
- var FILE_NO =1;
- var cameras = {};
- cameras.alias = new Array();
- cameras.host = new Array();
- cameras.port = new Array();
- cameras.user = new Array();
- cameras.pwd = new Array();
- cameras.pri = new Array();
- cameras.valid = new Array();
- cameras.restart = new Array();
- cameras.retry_times = new Array();
- cameras.alarm = new Array();
- cameras.alarm_light = new Array();
- cameras.count = 1;
- cameras.first = 0;
- cameras.pri[0] = cameras.pri[1] = cameras.pri[2] = cameras.pri[3] = 0;
- cameras.pri[4] = cameras.pri[5] = cameras.pri[6] = cameras.pri[7] = 0;
- cameras.pri[8] = 0;
- cameras.set_params = function(index,alias,host,port,user,pwd)
- {
- if ((index > 8) || (index < 0))
- return;
- this.alias[index] = alias;
- this.host[index] = host;
- this.port[index] = port;
- this.user[index] = user;
- this.pwd[index] = pwd;
- }
- cameras.set_count = function(current,count)
- {
- if(count > 9)
- count = 9;
- if ((count > 4) && (count < 9))
- count = 4;
- if (count < 1 || ((count > 1) && (count <4)))
- count = 1;
- this.count = count;
- if (parseInt(current) + parseInt(count) > 9)
- this.first = 9 - count;
- else
- this.first = current;
- for (i = 0;i < 9;++ i)
- this.valid[i] = 0;
- for (i = this.first;i < parseInt(this.first) + parseInt(this.count);++ i)
- this.valid[i] = 1;
- }
- /*
- function timer()
- {
- for (i = 0;i < 9;++ i)
- {
- if (cameras.alarm[i] == 1)
- {
- if (cameras.alarm_light[i] == 1)
- {
- sound_player.controls.play();
- device_status[i].src = red_ball.src;
- cameras.alarm_light[i] = 0;
- }
- else
- {
- device_status[i].src = green_ball.src;
- cameras.alarm_light[i] = 1;
- }
- }
- }
- setTimeout('timer()',1000);
- }
- */
- function showerror(index,msg,err)
- {
- var err_info;
- switch (err)
- {
- case OK:
- err_info = '';
- break;
- case ERROR_CONNECT:
- err_info = str_err_connect;
- break;
- case ERROR_SOCKET:
- err_info = str_err_socket;
- break;
- case ERROR_TIMEOUT:
- err_info = str_error_timeout;
- break;
- case ERROR_VERSION:
- err_info = str_err_version;
- break;
- case ERROR_CANCEL:
- err_info = str_err_cancel;
- break;
- case ERROR_CLOSED:
- err_info = str_err_closed;
- break;
- case ERROR_FILE:
- err_info = str_err_file;
- break;
- case ERROR_PARAM:
- err_info = str_err_param;
- break;
- case ERROR_THREAD:
- err_info = str_err_thread;
- break;
- case ERROR_STATUS:
- err_info = str_err_status;
- break;
- case ERROR_ID:
- err_info = str_err_id;
- break;
- case FAIL_USER:
- err_info = str_fail_user;
- break;
- case FAIL_MAXCONNS:
- err_info = str_fail_maxconns;
- break;
- case FAIL_VERSION:
- err_info = str_fail_version;
- break;
- case FAIL_ID:
- err_info = str_fail_id;
- break;
- case FAIL_PWD:
- err_info = str_fail_pwd;
- break;
- case FAIL_PRI:
- err_info = str_fail_pri;
- break;
- case FAIL_UNSUPPORT:
- err_info = str_fail_unsupport;
- break;
- default:
- err_info = str_err_unknown;
- break;
- }
- alert(cameras.alias[index] + ' : ' + msg + ' : ' + err_info);
- }
- function x_onclick()
- {
- if (x1.checked)
- {
- if (cameras.count == 1)
- return;
- cameras.set_count(current,1);
- }
- else if(x4.checked)
- {
- if (cameras.count == 4)
- return;
- cameras.set_count(current,4);
- }
- else
- {
- if (cameras.count == 9)
- return;
- cameras.set_count(current,9);
- }
- for (i = 0;i < 9; ++ i)
- {
- if (cameras.valid[i] == 1)
- {
- if ((cameras.count == 1) && (ipcam[i].resolution == R640_480))
- {
- ipcam[i].style.width = 640;
- ipcam[i].style.height = 480;
- }
- else if(cameras.count == 4)
- {
- ipcam[i].style.width = 320;
- ipcam[i].style.height = 240;
- }
- else if(cameras.count == 9)
- {
- ipcam[i].style.width = 213;
- ipcam[i].style.height = 160;
- }
- ipcam[i].PlayVideo();
- }
- else
- {
- ipcam[i].StopVideo();
- ipcam[i].StopRecord();
- ipcam[i].style.width = 0;
- ipcam[i].style.height = 0;
- }
- }
- }
- function image_reversal_onclick()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- if (image_reversal.checked)
- ipcam[current].CameraFlip = ipcam[current].CameraFlip | 0x01;
- else
- ipcam[current].CameraFlip = ipcam[current].CameraFlip & 0x02;
- }
- function image_mirror_onclick()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- if (image_mirror.checked)
- ipcam[current].CameraFlip = ipcam[current].CameraFlip | 0x02;
- else
- ipcam[current].CameraFlip = ipcam[current].CameraFlip & 0x01;
- }
- function nofilePop_onmousedown()
- {
- /* if (ipcam[current].MonitorStatus != 2)
- return;
- */
- if(FILE_NO==1)
- {
- ipcam[current].AutoDisplayAlarmRecord = false;
- nofilePop.src = filePop_no1.src;
- setcookie('filepop',1,720);
- FILE_NO = 0;
- }
- else
- {
- ipcam[current].AutoDisplayAlarmRecord = true;
- nofilePop.src = filePop_yes1.src;
- setcookie('filepop',0,720);
- FILE_NO = 1;
- }
- }
- function playvideo_onclick()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- ipcam[current].PlayVideo();
- }
- function playvideo_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- playvideo.src = play_down.src;
- }
- function playvideo_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- playvideo.src = play_up.src;
- }
- function stopvideo_onclick()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- ipcam[current].StopVideo();
- }
- function stopvideo_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- stopvideo.src = record_down.src;
- }
- function stopvideo_onmouseup()
- {
- /* if (ipcam[current].MonitorStatus != 2)
- return;*/
- stopvideo.src = record_up.src;
- }
- function snapshot_onclick()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;
- */
- var url = 'snapshot.html';
- var page = window.open(url,'','toolbar=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+700+',height='+550+',left='+100+', top='+100+',screenX='+100+',screenY='+100+'');
- page.focus();
- }
- function snapshot_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- snapshot.src = snapshot_down.src;
- }
- function snapshot_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- snapshot.src = snapshot_up.src;
- }
- function record_onclick(index)
- {
- if ((ipcam[index].VideoStatus != 2) && (ipcam[index].AudioStatus != 2))
- return;
- if (ipcam[index].RecordStatus == 0)
- {
- var ret = ipcam[index].StartRecord3();
- }
- else
- {
- ipcam[index].StopRecord();
- }
- }
- function record_onmousedown(index)
- {
- if ((ipcam[index].VideoStatus != 2) && (ipcam[index].AudioStatus != 2))
- return;
- if (ipcam[index].RecordStatus != 2)
- record[index].src = record_down.src;
- else
- record[index].src = stop_down_small.src;
- }
- function record_onmouseup(index)
- {
- if ((ipcam[index].VideoStatus != 2) && (ipcam[index].AudioStatus != 2))
- return;
- if (ipcam[index].RecordStatus != 2)
- {
- record[index].src = record_up.src;
- }
- else
- record[index].src = stop_up_small.src;
- }
- function audio_onclick(index)
- {
- /*if (ipcam[index].MonitorStatus != 2)
- return;*/
- if (ipcam[index].AudioStatus == 0)
- ipcam[index].PlayAudio();
- else
- ipcam[index].StopAudio();
- }
- function audio_onmousedown(index)
- {
- /*if (ipcam[index].MonitorStatus != 2)
- return;*/
- if (ipcam[index].AudioStatus != 2)
- audio[index].src = audio_down.src;
- else
- audio[index].src = stop_down_small.src;
- }
- function audio_onmouseup(index)
- {
- /*if (ipcam[index].MonitorStatus != 2)
- return;*/
- if (ipcam[index].AudioStatus != 2)
- audio[index].src = audio_up.src;
- else
- audio[index].src = stop_up_small.src;
- }
- function talk_onclick(index)
- {
- /*if (ipcam[index].MonitorStatus != 2)
- return;*/
- if (ipcam[index].TalkStatus == 0)
- ipcam[index].StartTalk();
- else
- ipcam[index].StopTalk();
- }
- function talk_onmousedown(index)
- {
- /*if (ipcam[index].MonitorStatus != 2)
- return;*/
- if (ipcam[index].TalkStatus != 2)
- talk[index].src = talk_down.src;
- else
- talk[index].src = stop_down_small.src;
- }
- function talk_onmouseup(index)
- {
- /*if (ipcam[index].MonitorStatus != 2)
- return;*/
- if (ipcam[index].TalkStatus != 2)
- talk[index].src = talk_up.src;
- else
- talk[index].src = stop_up_small.src;
- }
- function up_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- up.src = up_down.src;
- if (ipcam[current].CameraFlip & 0x01)
- ipcam[current].DecoderControl(TILT_DOWN);
- else
- ipcam[current].DecoderControl(TILT_UP);
- }
- function up_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- up.src = up_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function down_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- down.src = down_down.src;
- if (ipcam[current].CameraFlip & 0x01)
- ipcam[current].DecoderControl(TILT_UP);
- else
- ipcam[current].DecoderControl(TILT_DOWN);
- }
- function down_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- down.src = down_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function left_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- left.src = left_down.src;
- if (ipcam[current].CameraFlip & 0x02)
- ipcam[current].DecoderControl(PAN_RIGHT);
- else
- ipcam[current].DecoderControl(PAN_LEFT);
- }
- function left_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- left.src = left_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function right_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- right.src = right_down.src;
- if (ipcam[current].CameraFlip & 0x02)
- ipcam[current].DecoderControl(PAN_LEFT);
- else
- ipcam[current].DecoderControl(PAN_RIGHT);
- }
- function right_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- right.src = right_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function leftup_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- leftup.src = leftup_down.src;
- if ((ipcam[current].CameraFlip & 0x03) == 0x03)
- ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
- else if (ipcam[current].CameraFlip & 0x02)
- ipcam[current].DecoderControl(PTZ_RIGHT_UP);
- else if (ipcam[current].CameraFlip & 0x01)
- ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
- else
- ipcam[current].DecoderControl(PTZ_LEFT_UP);
- }
- function leftup_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- leftup.src = leftup_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function rightup_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- rightup.src = rightup_down.src;
- if ((ipcam[current].CameraFlip & 0x03) == 0x03)
- ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
- else if (ipcam[current].CameraFlip & 0x02)
- ipcam[current].DecoderControl(PTZ_LEFT_UP);
- else if (ipcam[current].CameraFlip & 0x01)
- ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
- else
- ipcam[current].DecoderControl(PTZ_RIGHT_UP);
- }
- function rightup_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- rightup.src = rightup_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function leftdown_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- leftdown.src = leftdown_down.src;
- if ((ipcam[current].CameraFlip & 0x03) == 0x03)
- ipcam[current].DecoderControl(PTZ_RIGHT_UP);
- else if (ipcam[current].CameraFlip & 0x02)
- ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
- else if (ipcam[current].CameraFlip & 0x01)
- ipcam[current].DecoderControl(PTZ_LEFT_UP);
- else
- ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
- }
- function leftdown_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- leftdown.src = leftdown_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function rightdown_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- rightdown.src = rightdown_down.src;
- if ((ipcam[current].CameraFlip & 0x03) == 0x03)
- ipcam[current].DecoderControl(PTZ_LEFT_UP);
- else if (ipcam[current].CameraFlip & 0x02)
- ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
- else if (ipcam[current].CameraFlip & 0x01)
- ipcam[current].DecoderControl(PTZ_RIGHT_UP);
- else
- ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
- }
- function rightdown_onmouseup()
- {
- /* if (ipcam[current].MonitorStatus != 2)
- return;*/
- rightdown.src = rightdown_up.src;
- ipcam[current].DecoderControl(PTZ_STOP);
- }
- function center_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- gocenter.src = center_down.src;
- ipcam[current].DecoderControl(PTZ_CENTER);
- }
- function center_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- gocenter.src = center_up.src;
- }
- function vpatrol_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;
- */
- vpatrol.src = vpatrol_down.src;
- //ipcam[current].DecoderControl(PTZ_VPATROL);
- ptzcmdSubmit('vscan');
- }
- function vpatrol_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- vpatrol.src = vpatrol_up.src;
- }
- function vpatrolstop_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- vpatrolstop.src = stop_down.src;
- //ipcam[current].DecoderControl(PTZ_VPATROL_STOP);
- ptzcmdSubmit('stop');
- }
- function vpatrolstop_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- vpatrolstop.src = stop_up.src;
- }
- function hpatrol_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- hpatrol.src = hpatrol_down.src;
- //ipcam[current].DecoderControl(PTZ_HPATROL);
- ptzcmdSubmit('hscan');
- }
- function hpatrol_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;
- */
- hpatrol.src = hpatrol_up.src;
- }
- function hpatrolstop_onmousedown()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- hpatrolstop.src = stop_down.src;
- //ipcam[current].DecoderControl(PTZ_HPATROL_STOP);
- ptzcmdSubmit('stop')
- }
- function hpatrolstop_onmouseup()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- hpatrolstop.src = stop_up.src;
- }
- function resolution_onchange()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- if (ipcam[current].Resolution != resolution.value)
- ipcam[current].Resolution = resolution.value;
- }
- function mode_onchange()
- {
- /* if (ipcam[current].MonitorStatus != 2)
- return;*/
- if (ipcam[current].Saturation != mode.value)
- ipcam[current].Saturation = mode.value;
- }
- function MaxVideoRate_onchange()
- {
- /*if (ipcam[current].MonitorStatus != 2)
- return;*/
- if (ipcam[current].MaxVideoRate != MaxVideoRate.value)
- ipcam[current].MaxVideoRate = MaxVideoRate.value;
- }
- function osd_onchange()
- {
- ipcam[current].OSD = osd.selectedIndex;
- if (current == 0)
- setcookie('osd1',osd.selectedIndex,720);
- else if (current == 1)
- setcookie('osd2',osd.selectedIndex,720);
- else if (current == 2)
- setcookie('osd3',osd.selectedIndex,720);
- else if (current == 3)
- setcookie('osd4',osd.selectedIndex,720);
- else if (current == 4)
- setcookie('osd5',osd.selectedIndex,720);
- else if (current == 5)
- setcookie('osd6',osd.selectedIndex,720);
- else if (current == 6)
- setcookie('osd7',osd.selectedIndex,720);
- else if (current == 7)
- setcookie('osd8',osd.selectedIndex,720);
- else if (current == 8)
- setcookie('osd9',osd.selectedIndex,720);
- }
- function record_osd_onclick()
- {
- for (i=0;i<9;i++) ipcam[i].RecordOSD=record_osd_chk.checked?true:false;
- setcookie('record_osd',record_osd_chk.checked?'true':'false',720);
- }
- function buffer_onchange()
- {
- ipcam[current].BufferTime = buffer.value;
- }
- function plus_brightness()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- if (parseInt(brightness.value) < 15)
- ipcam[current].Brightness = (parseInt(brightness.value) + 1) * 16;
- }
- function minus_brightness()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- if (parseInt(brightness.value) > 0)
- ipcam[current].Brightness = (parseInt(brightness.value) - 1) * 16;
- }
- function plus_contrast()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- if (parseInt(contrast.value) < 6)
- ipcam[current].Contrast = parseInt(contrast.value) + 1;
- }
- function minus_contrast()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- if (parseInt(contrast.value) > 0)
- ipcam[current].Contrast = parseInt(contrast.value) - 1;
- }
- function set_preset()
- {
- //ipcam[current].DecoderControl(parseInt(preset.value));
- var presetset1 = document.getElementById('preset').value;
- parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=set&-status=1&-number=' + presetset1;
- }
- function go_preset()
- {
- //ipcam[current].DecoderControl(parseInt(preset.value)+1);
- var presetset = document.getElementById('preset').value;
- parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=goto&-number=' + presetset;
- }
- function default_all()
- {
- if (ipcam[current].MonitorStatus != 2)
- return;
- resolution.selectedIndex = 0;
- resolution.value = 32;
- ipcam[current].Resolution = resolution.value;
- mode.selectedIndex = 0;
- ipcam[current].Saturation = mode.value;
- MaxVideoRate.selectedIndex=0;
- ipcam[current].MaxVideoRate = MaxVideoRate.value;
- brightness.value = 6;
- if (brightness.value != Math.round(ipcam[current].Brightness / 16))
- ipcam[current].Brightness = brightness.value * 16;
- contrast.value = 4;
- if (contrast.value != ipcam[current].Contrast)
- ipcam[current].Contrast = contrast.value;
- preset.value = 30;
- }
- function connect_camera(index)
- {
- if (ipcam[index].MonitorStatus != 0)
- return;
- if (cameras.host[index] == '')
- return;
- ipcam[index].DefaultFileName = cameras.alias[index];
- re = ipcam[index].MonitorConnect(cameras.host[index],cameras.port[index],cameras.user[index],cameras.pwd[index]);
- if (re != OK)
- showerror(index,str_failtoconnect,re);
- }
- function ipcam_OnAlarm(index,alarm)
- {
- cameras.alarm[index] = 1;
- cameras.alarm_light[index] = 1;
- device_status[index].src = red_ball.src;
- }
- function ipcam_OnAlarmStopped(index)
- {
- cameras.alarm[index] = 0;
- cameras.alarm_light[index] = 0;
- if (ipcam[index].MonitorStatus == 2)
- device_status[index].src = green_ball.src;
- else
- device_status[index].src = yellow_ball.src;
- }
- function ipcam_OnImageSizeChanged(index,width,height)
- {
- if ((cameras.count == 1) && (cameras.valid[index] == 1))
- {
- ipcam[index].style.width = width;
- ipcam[index].style.height = height;
- }
- }
- function ipcam_OnMonitorConnectResult(index,result,pri)
- {
- if (result != OK)
- {
- device_status[index].src = yellow_ball.src;
- if (cameras.retry_times[index] == 0)
- {
- showerror(index,str_failtoconnect,result);
- if (index == 0)
- location.href = 'login.htm';
- }
- else
- {
- cameras.retry_times[index] --;
- if (index == 0)
- setTimeout('connect_camera(0)',30000);
- else if (index == 1)
- setTimeout('connect_camera(1)',30000);
- else if (index == 2)
- setTimeout('connect_camera(2)',30000);
- else if (index == 3)
- setTimeout('connect_camera(3)',30000);
- else if (index == 4)
- setTimeout('connect_camera(4)',30000);
- else if (index == 5)
- setTimeout('connect_camera(5)',30000);
- else if (index == 6)
- setTimeout('connect_camera(6)',30000);
- else if (index == 7)
- setTimeout('connect_camera(7)',30000);
- else if (index == 8)
- setTimeout('connect_camera(8)',30000);
- }
- }
- else
- {
- cameras.pri[index] = pri + 1;
- if (current == index)
- {
- visitor_link.disabled = false;
- if (cameras.pri[index] > PRI_VISITOR)
- {
- operator_link.disabled = false;
- visitor_table.style.display = 'none';
- operator_table.style.display = '';
- }
- else
- {
- operator_link.disabled = true;
- visitor_table.style.display = '';
- operator_table.style.display = 'none';
- }
- }
- if (index == 0)
- {
- if (cameras.pri[0] > PRI_OPERATOR)
- administrator_link.disabled = false;
- else
- administrator_link.disabled = true;
- }
- cameras.retry_times[index] = 0;
- device_status[index].src = green_ball.src;
- audio[index].src = audio_up.src;
- talk[index].src = talk_up.src;
- ipcam[index].PlayVideo();
- }
- }
- function ipcam_OnMonitorDisconnected(index,reason)
- {
- cameras.pri[index] = PRI_REFUSE;
- if (current == index)
- {
- visitor_link.disabled = true;
- visitor_table.style.display = 'none';
- operator_link.disabled = true;
- operator_table.style.display = 'none';
- }
- if (index == 0)
- {
- administrator_link.disabled = true;
- }
- if (cameras.host[index] == '')
- device_status[index].src = gray_ball.src;
- else
- device_status[index].src = yellow_ball.src;
- if ((reason == OK) || (reason == ERROR_CANCEL))
- {
- if (cameras.restart[index] == 1)
- {
- cameras.restart[index] = 0;
- connect_camera(index);
- }
- return;
- }
- cameras.retry_times[index] = 10;
- if (index == 0)
- setTimeout('connect_camera(0)',30000);
- else if (index == 1)
- setTimeout('connect_camera(1)',30000);
- else if (index == 2)
- setTimeout('connect_camera(2)',30000);
- else if(index == 3)
- setTimeout('connect_camera(3)',30000);
- else if (index == 4)
- setTimeout('connect_camera(4)',30000);
- else if(index == 5)
- setTimeout('connect_camera(5)',30000);
- else if (index == 6)
- setTimeout('connect_camera(6)',30000);
- else if(index == 7)
- setTimeout('connect_camera(7)',30000);
- else if (index == 8)
- setTimeout('connect_camera(8)',30000);
- }
- function ipcam_OnMonitorParamsChanged(index)
- {
- if (current == index)
- {
- resolution.value = ipcam[index].Resolution;
- mode.value = ipcam[index].Saturation;
- MaxVideoRate.value = ipcam[index].MaxVideoRate;
- brightness.value = Math.round(ipcam[index].Brightness / 16);
- contrast.value = ipcam[index].Contrast;
- image_reversal.checked = (ipcam[index].CameraFlip & 0x01)?true:false;
- image_mirror.checked = (ipcam[index].CameraFlip & 0x02)?true:false;
- osd.selectedIndex = ipcam[index].OSD;
- buffer.value = ipcam[index].BufferTime;
- }
- }
- function ipcam_OnPlayVideoResult(index,result)
- {
- if (result != OK)
- {
- if (ipcam[index].AudioStatus != 2)
- record[index].src = record_off.src;
- showerror(index,str_failtoplayvideo,result);
- }
- else
- {
- if (ipcam[index].AudioStatus != 2)
- record[index].src = record_up.src;
- }
- }
- function ipcam_OnPlayAudioResult(index,result)
- {
- if (result != OK)
- {
- audio[index].src = audio_up.src;
- if (ipcam[index].VideoStatus != 2)
- record[index].src = record_off.src;
- showerror(index,str_failtoplayaudio,result);
- }
- else
- {
- if (ipcam[index].VideoStatus != 2)
- record[index].src = record_up.src;
- audio[index].src = stop_up_small.src;
- }
- }
- function ipcam_OnStartTalkResult(index,result)
- {
- if (result != OK)
- {
- talk[index].src = talk_up.src;
- showerror(index,str_failtostarttalk,result);
- }
- else
- {
- talk[index].src = stop_up.src;
- }
- }
- function ipcam_OnRecordStopped(index,reason)
- {
- record[index].src = record_up.src;
- if(reason != OK)
- {
- var str = navigator.userAgent.split(";");
- if(str[2] == " Windows NT 6.0")
- {
- window.alert(str_SetTrustedSites/*"To record video,you must add your device's ip address to IE's trusted sites!"+"\n"+"the 'Trusted sites' path: IE browser->Tool->Internet Options->Security->Trusted sites-> Add"*/);
- }
- }
- }
- function ipcam_OnStartRecordResult(index,result)
- {
- if (result != OK)
- {
- record[index].src = record_up.src;
- showerror(index,str_failtorecord,result);
- }
- else
- {
- record[index].src = stop_up_small.src;
- }
- }
- function ipcam_OnVideoStopped(index,reason)
- {
- if (ipcam[index].AudioStatus != 2)
- record[index].src = record_off.src;
- if (reason == ERROR_TIMEOUT)
- ipcam[index].PlayVideo();
- }
- function ipcam_OnAudioStopped(index,reason)
- {
- if (ipcam[index].VideoStatus != 2)
- record[index].src = record_off.src;
- audio[index].src = audio_up.src;
- }
- function ipcam_OnTalkStopped(index,reason)
- {
- talk[index].src = talk_up.src;
- }
- function ipcam_OnFocus(index)
- {
- if (index == current)
- return;
- ipcam[current].SetFocus(0);
- current = index;
- if (cameras.pri[index] > PRI_VISITOR)
- {
- visitor_link.disabled = false;
- operator_link.disabled = false;
- visitor_table.style.display = 'none';
- operator_table.style.display = '';
- }
- else if (cameras.pri[index] > PRI_REFUSE)
- {
- visitor_link.disabled = false;
- operator_link.disabled = true;
- visitor_table.style.display = '';
- operator_table.style.display = 'none';
- }
- else
- {
- visitor_link.disabled = true;
- operator_link.disabled = true;
- visitor_table.style.display = 'none';
- operator_table.style.display = 'none';
- }
- if (cameras.valid[index])
- alias_span.innerText = cameras.alias[index];
- else
- alias_span.innerText = str_unselected;
- if (ipcam[index].MonitorStatus == 2)
- {
- resolution.value = ipcam[index].Resolution;
- mode.value = ipcam[index].Saturation;
- MaxVideoRate.value = ipcam[index].MaxVideoRate;
- brightness.value = Math.round(ipcam[index].Brightness / 16);
- contrast.value = ipcam[index].Contrast;
- image_reversal.checked = (ipcam[index].CameraFlip & 0x01)?true:false;
- image_mirror.checked = (ipcam[index].CameraFlip & 0x02)?true:false;
- osd.selectedIndex = ipcam[index].OSD;
- buffer.value = ipcam[index].BufferTime;
- }
- }
- function visitor()
- {
- /*if (cameras.pri[current] < PRI_VISITOR)
- return;*/
- /*
- operator_table.style.display = 'none';
- if (visitor_table.style.display == 'none')
- visitor_table.style.display = '';
- else
- visitor_table.style.display = 'none'; */
- }
- function operator()
- {
- /*if (cameras.pri[current] < PRI_OPERATOR)
- return;*/
- /*
- visitor_table.style.display = 'none';
- if (operator_table.style.display == 'none')
- operator_table.style.display = '';
- else
- operator_table.style.display = 'none'; */
- }
- function administrator()
- {
- /*if (cameras.pri[0] < PRI_ADMINISTRATOR)
- return; */
- location.href = 'fadmin.html';
- }
- function set_ipcam_osd(index,osd)
- {
- if (osd == '1')
- ipcam[index].OSD = 1;
- else if (osd == '2')
- ipcam[index].OSD = 2;
- else if (osd == '3')
- ipcam[index].OSD = 3;
- else if (osd == '4')
- ipcam[index].OSD = 4;
- else if (osd == '5')
- ipcam[index].OSD = 5;
- else
- ipcam[index].OSD = 0;
- }
- function body_onload()
- {
- load1();
- /* FILE_NO = top.getcookie('filepop');
- if(FILE_NO==1)
- {
- ipcam[current].AutoDisplayAlarmRecord = false;
- nofilePop.src = filePop_no1.src;
- FILE_NO = 0;
- }
- else
- {
- ipcam[current].AutoDisplayAlarmRecord = true;
- nofilePop.src = filePop_yes1.src;
- FILE_NO = 1;
- }*/
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- //nofilePop.title = str_pop_sd;
- playvideo.alt = str_pop_playback;
- stopvideo.alt = str_pop_record;
- snapshot.alt = str_pop_snapshot;
- //vpatrol.title = str_start_vscan;
- //vpatrolstop.title = str_stop_vertical_patrol;
- //hpatrol.title = str_start_hscan;
- //hpatrolstop.title = str_stop_horizon_patrol;
- document.getElementById("audioctrl").alt = str_mute_mute;
- document.getElementById("talkctrl").alt = str_talk_stop;
- document.getElementById("SetPath").alt = str_path_set;
- /*document.getElementById("audioctrl").title = str_mute_mute;
- document.getElementById("talkctrl").title = str_talk_stop;
- document.getElementById("SetPath").title = str_path_set;
- */
- /*talkctrl.alt = str_talk_stop;
- audioctrl.alt = str_mute_mute;
- SetPath.alt = str_path_set;
- talkctrl.title = str_talk_stop;
- audioctrl.title = str_mute_mute;
- SetPath.title = str_path_set;*/
- }
- /*audio[0].title = top.str_audio;
- audio[1].title = top.str_audio;
- audio[2].title = top.str_audio;
- audio[3].title = top.str_audio;
- audio[4].title = top.str_audio;
- audio[5].title = top.str_audio;
- audio[6].title = top.str_audio;
- audio[7].title = top.str_audio;
- audio[8].title = top.str_audio;
- talk[0].title = top.str_talk;
- talk[1].title = top.str_talk;
- talk[2].title = top.str_talk;
- talk[3].title = top.str_talk;
- talk[4].title = top.str_talk;
- talk[5].title = top.str_talk;
- talk[6].title = top.str_talk;
- talk[7].title = top.str_talk;
- talk[8].title = top.str_talk;
- record[0].title = top.str_record;
- record[1].title = top.str_record;
- record[2].title = top.str_record;
- record[3].title = top.str_record;
- record[4].title = top.str_record;
- record[5].title = top.str_record;
- record[6].title = top.str_record;
- record[7].title = top.str_record;
- record[8].title = top.str_record;
- gocenter.title = top.str_center;*/
- /*
- var port;
- if (location.port == '')
- port = 80;
- else
- port = location.port;
- cameras.set_params(0,top.alias,location.hostname,port,top.user,top.pwd);
- cameras.set_params(1,'','',0,'','');
- cameras.set_params(2,'','',0,'','');
- cameras.set_params(3,'','',0,'','');
- cameras.set_params(4,'','',0,'','');
- cameras.set_params(5,'','',0,'','');
- cameras.set_params(6,'','',0,'','');
- cameras.set_params(7,'','',0,'','');
- cameras.set_params(8,'','',0,'','');
- cameras.set_count(0,1);
- //x1.checked = true;
- current = 0;
- ipcam[0].SetFocus(true);
- alias_span.innerText = cameras.alias[0];
- set_ipcam_osd(0,top.getcookie('osd1'));
- set_ipcam_osd(1,top.getcookie('osd2'));
- set_ipcam_osd(2,top.getcookie('osd3'));
- set_ipcam_osd(3,top.getcookie('osd4'));
- set_ipcam_osd(4,top.getcookie('osd5'));
- set_ipcam_osd(5,top.getcookie('osd6'));
- set_ipcam_osd(6,top.getcookie('osd7'));
- set_ipcam_osd(7,top.getcookie('osd8'));
- set_ipcam_osd(8,top.getcookie('osd9'));
- if (record_osd && (top.getcookie('record_osd')=='true'))
- {
- record_osd_chk.checked=true;
- ipcam[0].RecordOSD=true;
- ipcam[1].RecordOSD=true;
- ipcam[2].RecordOSD=true;
- ipcam[3].RecordOSD=true;
- ipcam[4].RecordOSD=true;
- ipcam[5].RecordOSD=true;
- ipcam[6].RecordOSD=true;
- ipcam[7].RecordOSD=true;
- ipcam[8].RecordOSD=true;
- }
- for (i = 0;i < 9; ++ i)
- {
- ipcam[i].AutoRecordOnAlarm = true;
- ipcam[i].PTZOnScreen = 1;
- cameras.pri[i] = PRI_REFUSE;
- cameras.retry_times[i] = 0;
- cameras.restart[i] = 0;
- cameras.alarm[i] = 0;
- cameras.alarm_light[i] = 0;
- if (cameras.valid[i] == 1)
- {
- ipcam[i].style.width = 320;
- ipcam[i].style.height = 240;
- }
- else
- {
- ipcam[i].style.width = 0;
- ipcam[i].style.height = 0;
- }
- if (cameras.host[i] != '')
- {
- device_status[i].src = yellow_ball.src;
- connect_camera(i);
- }
- else
- {
- device_status[i].src = gray_ball.src;
- audio[i].src = audio_off.src;
- }
- }*/
- }
- function body_onunload()
- {/*
- for (i = 0;i < 9;++ i)
- {
- ipcam[i].StopVideo();
- ipcam[i].StopAudio();
- ipcam[i].StopTalk();
- ipcam[i].StopRecord();
- ipcam[i].MonitorDisconnect();
- }*/
- }
- function ipcam_OnOtherDevicesParamsChanged(index)
- {
- if (index != 0)
- return;
- var alias, host, port, user, pwd;
- ipcam[1].StopVideo();
- ipcam[1].StopAudio();
- ipcam[1].StopTalk();
- ipcam[1].StopRecord();
- ipcam[1].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(1);
- alias = ipcam[0].GetOtherDeviceAlias(1);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(1);
- user = ipcam[0].GetOtherDeviceUser(1);
- pwd = ipcam[0].GetOtherDevicePwd(1);
- if (host == '')
- {
- cameras.set_params(1,'','',0,'','');
- device_status[1].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(1,alias,host,port,user,pwd);
- device_status[1].src = yellow_ball.src;
- setTimeout('connect_camera(1)',1000);
- }
- ipcam[2].StopVideo();
- ipcam[2].StopAudio();
- ipcam[2].StopTalk();
- ipcam[2].StopRecord();
- ipcam[2].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(2);
- alias = ipcam[0].GetOtherDeviceAlias(2);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(2);
- user = ipcam[0].GetOtherDeviceUser(2);
- pwd = ipcam[0].GetOtherDevicePwd(2);
- if (host == '')
- {
- cameras.set_params(2,'','',0,'','');
- device_status[2].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(2,alias,host,port,user,pwd);
- device_status[2].src = yellow_ball.src;
- setTimeout('connect_camera(2)',1000);
- }
- ipcam[3].StopVideo();
- ipcam[3].StopAudio();
- ipcam[3].StopTalk();
- ipcam[3].StopRecord();
- ipcam[3].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(3);
- alias = ipcam[0].GetOtherDeviceAlias(3);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(3);
- user = ipcam[0].GetOtherDeviceUser(3);
- pwd = ipcam[0].GetOtherDevicePwd(3);
- if (host == '')
- {
- cameras.set_params(3,'','',0,'','');
- device_status[3].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(3,alias,host,port,user,pwd);
- device_status[3].src = yellow_ball.src;
- setTimeout('connect_camera(3)',1000);
- }
- ipcam[4].StopVideo();
- ipcam[4].StopAudio();
- ipcam[4].StopTalk();
- ipcam[4].StopRecord();
- ipcam[4].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(4);
- alias = ipcam[0].GetOtherDeviceAlias(4);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(4);
- user = ipcam[0].GetOtherDeviceUser(4);
- pwd = ipcam[0].GetOtherDevicePwd(4);
- if (host == '')
- {
- cameras.set_params(4,'','',0,'','');
- device_status[4].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(4,alias,host,port,user,pwd);
- device_status[4].src = yellow_ball.src;
- setTimeout('connect_camera(4)',1000);
- }
- ipcam[5].StopVideo();
- ipcam[5].StopAudio();
- ipcam[5].StopTalk();
- ipcam[5].StopRecord();
- ipcam[5].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(5);
- alias = ipcam[0].GetOtherDeviceAlias(5);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(5);
- user = ipcam[0].GetOtherDeviceUser(5);
- pwd = ipcam[0].GetOtherDevicePwd(5);
- if (host == '')
- {
- cameras.set_params(5,'','',0,'','');
- device_status[5].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(5,alias,host,port,user,pwd);
- device_status[5].src = yellow_ball.src;
- setTimeout('connect_camera(5)',1000);
- }
- ipcam[6].StopVideo();
- ipcam[6].StopAudio();
- ipcam[6].StopTalk();
- ipcam[6].StopRecord();
- ipcam[6].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(6);
- alias = ipcam[0].GetOtherDeviceAlias(6);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(6);
- user = ipcam[0].GetOtherDeviceUser(6);
- pwd = ipcam[0].GetOtherDevicePwd(6);
- if (host == '')
- {
- cameras.set_params(6,'','',0,'','');
- device_status[6].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(6,alias,host,port,user,pwd);
- device_status[6].src = yellow_ball.src;
- setTimeout('connect_camera(6)',1000);
- }
- ipcam[7].StopVideo();
- ipcam[7].StopAudio();
- ipcam[7].StopTalk();
- ipcam[7].StopRecord();
- ipcam[7].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(7);
- alias = ipcam[0].GetOtherDeviceAlias(7);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(7);
- user = ipcam[0].GetOtherDeviceUser(7);
- pwd = ipcam[0].GetOtherDevicePwd(7);
- if (host == '')
- {
- cameras.set_params(7,'','',0,'','');
- device_status[7].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(7,alias,host,port,user,pwd);
- device_status[7].src = yellow_ball.src;
- setTimeout('connect_camera(7)',1000);
- }
- ipcam[8].StopVideo();
- ipcam[8].StopAudio();
- ipcam[8].StopTalk();
- ipcam[8].StopRecord();
- ipcam[8].MonitorDisconnect();
- host = ipcam[0].GetOtherDeviceHost(8);
- alias = ipcam[0].GetOtherDeviceAlias(8);
- if (alias == '')
- alias = str_anonymous;
- port = ipcam[0].GetOtherDevicePort(8);
- user = ipcam[0].GetOtherDeviceUser(8);
- pwd = ipcam[0].GetOtherDevicePwd(8);
- if (host == '')
- {
- cameras.set_params(8,'','',0,'','');
- device_status[8].src = gray_ball.src;
- }
- else
- {
- cameras.set_params(8,alias,host,port,user,pwd);
- device_status[8].src = yellow_ball.src;
- setTimeout('connect_camera(8)',1000);
- }
- }
- function ipcam_OnPTZOnScreen(index,ptz)
- {
- if (ipcam[index].MonitorStatus != 2)
- return;
- if (ptz == 0)
- {
- ipcam[index].DecoderControl(PTZ_STOP);
- }
- else if (ptz == 1)
- {
- if ((ipcam[index].CameraFlip & 0x03) == 0x03)
- ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
- else if (ipcam[index].CameraFlip & 0x02)
- ipcam[index].DecoderControl(PTZ_RIGHT_UP);
- else if (ipcam[index].CameraFlip & 0x01)
- ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
- else
- ipcam[index].DecoderControl(PTZ_LEFT_UP);
- }
- else if (ptz == 2)
- {
- if (ipcam[index].CameraFlip & 0x01)
- ipcam[index].DecoderControl(TILT_DOWN);
- else
- ipcam[index].DecoderControl(TILT_UP);
- }
- else if (ptz == 3)
- {
- if ((ipcam[index].CameraFlip & 0x03) == 0x03)
- ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
- else if (ipcam[index].CameraFlip & 0x02)
- ipcam[index].DecoderControl(PTZ_LEFT_UP);
- else if (ipcam[index].CameraFlip & 0x01)
- ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
- else
- ipcam[index].DecoderControl(PTZ_RIGHT_UP);
- }
- else if (ptz == 4)
- {
- if (ipcam[index].CameraFlip & 0x02)
- ipcam[index].DecoderControl(PAN_RIGHT);
- else
- ipcam[index].DecoderControl(PAN_LEFT);
- }
- else if (ptz == 5)
- {
- ipcam[index].DecoderControl(PTZ_CENTER);
- }
- else if (ptz == 6)
- {
- if (ipcam[index].CameraFlip & 0x02)
- ipcam[index].DecoderControl(PAN_LEFT);
- else
- ipcam[index].DecoderControl(PAN_RIGHT);
- }
- else if (ptz == 7)
- {
- if ((ipcam[index].CameraFlip & 0x03) == 0x03)
- ipcam[index].DecoderControl(PTZ_RIGHT_UP);
- else if (ipcam[index].CameraFlip & 0x02)
- ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
- else if (ipcam[index].CameraFlip & 0x01)
- ipcam[index].DecoderControl(PTZ_LEFT_UP);
- else
- ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
- }
- else if (ptz == 8)
- {
- if (ipcam[index].CameraFlip & 0x01)
- ipcam[index].DecoderControl(TILT_UP);
- else
- ipcam[index].DecoderControl(TILT_DOWN);
- }
- else if (ptz == 9)
- {
- if ((ipcam[index].CameraFlip & 0x03) == 0x03)
- ipcam[index].DecoderControl(PTZ_LEFT_UP);
- else if (ipcam[index].CameraFlip & 0x02)
- ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
- else if (ipcam[index].CameraFlip & 0x01)
- ipcam[index].DecoderControl(PTZ_RIGHT_UP);
- else
- ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
- }
- }
- //setTimeout('timer()',1000);
- </script>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnOtherDevicesParamsChanged()>
- <!--
- // ipcam_OnOtherDevicesParamsChanged(this.name)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnAlarm(alarm)>
- <!--
- //ipcam_OnAlarm(this.name,alarm)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnImageSizeChanged(width,height)>
- <!--
- // ipcam_OnImageSizeChanged(this.name,width,height)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnMonitorConnectResult(result,pri)>
- <!--
- // ipcam_OnMonitorConnectResult(this.name,result,pri)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnMonitorDisconnected(reason)>
- <!--
- //ipcam_OnMonitorDisconnected(this.name,reason)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnMonitorParamsChanged>
- <!--
- //ipcam_OnMonitorParamsChanged(this.name)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnPlayVideoResult(result)>
- <!--
- //ipcam_OnPlayVideoResult(this.name,result)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnPlayAudioResult(result)>
- <!--
- //ipcam_OnPlayAudioResult(this.name,result)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnStartTalkResult(result)>
- <!--
- // ipcam_OnStartTalkResult(this.name,result)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnRecordStopped(reason)>
- <!--
- //ipcam_OnRecordStopped(this.name,reason)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnStartRecordResult(result)>
- <!--
- //ipcam_OnStartRecordResult(this.name,result)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnVideoStopped(reason)>
- <!--
- // ipcam_OnVideoStopped(this.name,reason)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnAudioStopped(reason)>
- <!--
- // ipcam_OnAudioStopped(this.name,reason)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnTalkStopped(reason)>
- <!--
- // ipcam_OnTalkStopped(this.name,reason)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnAlarmStopped>
- <!--
- //ipcam_OnAlarmStopped(this.name)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnFocus>
- <!--
- //ipcam_OnFocus(this.name)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnPTZOnScreen(ptz)>
- <!--
- //ipcam_OnPTZOnScreen(this.name,ptz)
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- function mouseover_bgcolor(obj)
- {
- oldcolor=obj.style.backgroundColor;
- old_font_color="f5ffff";
- obj.style.backgroundColor="#5a86ab";
- }
- function mouseout(obj)
- {
- obj.style.backgroundColor=oldcolor;
- obj.style.color=old_font_color;
- }
- function mouseover_font(obj)
- {
- oldcolor=obj.style.backgroundColor;
- old_font_color="f5ffff";
- obj.style.color="yellow";
- }
- function popwindow()
- {
- //window.open("interip.html",top.str_internet_ip_address,"height=400,width=550,top=200,left=300,toolbar=yes,menubar=yes,scrollbars=yes,location=yes,status=yes");
- }
- //-->
- </SCRIPT>
- <body alink="#0099ff" vlink="yellow" style="text-align:center;" onload = "body_onload();" onunload = "body_onunload();" onscroll="flush()">
- <table border=0 cellpadding=0 cellspacing=0 width=900 align="center" height =56 >
- <tr><td width="900" background="./images/toppic1.JPG" ><font face="Arial" color="white" size="5px"> Real-time H.264 IP Camera Monitoring System</font></td>
- </tr>
- </table>
- <table border=0 cellpadding=0 cellspacing=0 width=900 height=500 align="center"><tr><!--hawk width=814-->
- <td height=500 bgcolor = #d8d8d8 valign = "top" style="padding-left:2px; padding-right:2px; padding-top:5px; padding-bottom:5px" class="rect_right"><table width =190 border=0 cellpadding=0 cellspacing=0 class="mid01">
- <tr height="20">
- <td align = center valign="bottom" bgcolor=#c1c3c3 class="mid02"><a id = "visitor_link" style="font-size:13px; color:#000000"><strong><font face="Arial">
- <script language="javascript">document.write(str_4visitor);</script>
- </font></strong></a></td>
- </tr>
- <tr><td><table width = 188 height="21" border=0 id = visitor_table style="display:block">
- <!--<tr height="10"><td> </td></tr> -->
- <!--<tr height = 30 align = middle><td>
- <INPUT type="radio" id=x1 name=x checked LANGUAGE=javascript onClick="return x_onclick()"><img src = images/x1.gif>
- <INPUT type="radio" id=x4 name=x checked LANGUAGE=javascript onClick="return x_onclick()"><img src = images/x4.gif>
- <INPUT type="radio" id=x9 name=x LANGUAGE=javascript onClick="return x_onclick()"><img src = images/x9.gif>
- </td></tr>-->
- <!--hawk remove flip&mirro-->
- <!--<tr height = 10><td> </td></tr> -->
- <tr>
- <SCRIPT type=text/JavaScript>
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- document.open();
- document.write('<td valign="top" style="font-size:12px; color:#000000"><span class="STYLE4"><font face="Arial">'+str_monitor_look+'</font></span></td>');
- document.close();
- }
- </SCRIPT>
- </tr>
- <tr>
- <td height="13">
- <SCRIPT type=text/JavaScript>
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- document.open();
- document.write('<form name="form1">');
- document.write(' <select name="sizeselect" onChange="sizechange()">');
- document.write('<option>D1</option>');
- document.write('<option>CIF</option>');
- document.write('<option>QCIF</option>');
- document.write('<option>' + str_automatic_tmp + '</option>');
- document.write('</select> ');
- document.write('<select width=10 name="streamselect" onChange="streamchange()">');
- document.write('<option width=10>' + str_main_stream + '</option>');
- document.write('<option width=10>' + str_second_stream + '</option>');
- document.write('</select> ');
- document.write('</form>');
- document.close();
- }
- </SCRIPT>
- </td>
- </tr>
- <tr height = 16 align = center>
- <td>
- <SCRIPT type=text/JavaScript>
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- document.open();
- <!--document.write(' <img id="nofilePop" src="images/filepop_yes.gif" onClick="snap()" >'); -->
- <!--document.write(' <a href="/sd" target="_blank"><img id="nofilePop" src="images/filepop_yes.gif" border="0"></a>'); -->
- document.write(' <img id="snapshot" src="images/snapshot_up.gif" onClick="snap()" onMouseDown="return snapshot_onmousedown()" onMouseUp="return snapshot_onmouseup()">');
- document.write(' <img id="stopvideo" src="images/record_up.gif" onClick="record()" onMouseDown="return stopvideo_onmousedown()" onMouseUp="return stopvideo_onmouseup()">');
- document.write(' <img id="playvideo" src="images/play_up.gif" onClick="playback()" onMouseDown="return playvideo_onmousedown()" onMouseUp="return playvideo_onmouseup()">');
- document.close();
- }
- </SCRIPT>
- </td>
- </tr>
- <tr height="16" align="center">
- <td>
- <!--<div><img id="homeup" src="images/home_on.gif" onMouseDown="return homeup_onmousedown()" onMouseUp="return homeup_onmouseup()"> <img id="homestop" src="images/stop_on.gif" onMouseDown="return homestop_onmousedown()" onMouseUp="return homestop_onmouseup()"></div>
- <div><img id="switchon" src="images/switchon_up.gif" onMouseDown="return switchon_onmousedown()" onMouseUp="return switchon_onmouseup()"> <img id="switchoff" src="images/switchoff_up.gif" onMouseDown="return switchoff_onmousedown()" onMouseUp="return switchoff_onmouseup()"></div> -->
- <SCRIPT type=text/JavaScript>
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- document.open();
- document.write(' <img id="audioctrl" src="images/MuteStateoff.gif" onMouseDown="audioctrl()" onMouseUp="IsMonitorMute()">');
- document.write(' <img id="talkctrl" src="images/TalkStateoff.gif" onMouseDown="talkctrl()" onMouseUp="IsTalkState()">');
- document.write(' <img id="SetPath" src="images/SetPath.gif" onClick="SetPath()">');
- document.close();
- }
- </SCRIPT>
- </td></tr>
- </table></td></tr>
- <tr height="20"><td align = center valign="bottom" bgcolor=#c1c3c3 class="mid02"><a id = "operator_link" style="font-size:13px; color:#000000"><strong><font face="Arial">
- <script language="javascript">document.write(str_4operator);</script><!--font huaikan-->
- </font></strong></a></td></tr>
- <tr><td align="center"><table id = operator_table width = 160 border=0 valign = middle style="display:block" ><!--huaikan-->
- <tr height="1"><td> </td></tr>
- <tr><td colspan="2" align ="center"><table width = 160 border=0 cellpadding=0 cellspacing=0><tr>
- <td>
- <div><img id="leftup" src="images/leftup_up.gif"><img id="up" src="images/up_up.gif" onMouseDown="ptzcmdSubmit('up')" onMouseUp="ptzcmdSubmit('stop')"><img id="rightup" src="images/rightup_up.gif"></div>
- <div><img id="left" src="images/left_up.gif" onMouseDown="ptzcmdSubmit('left')" onMouseUp="ptzcmdSubmit('stop')"><img id="gocenter" src="images/center_up.gif"><img id="right" src="images/right_up.gif" onMouseDown="ptzcmdSubmit('right')" onMouseUp="ptzcmdSubmit('stop')"></div>
- <div><img id="leftdown" src="images/leftdown_up.gif"><img id="down" src="images/down_up.gif" onMouseDown="ptzcmdSubmit('down')" onMouseUp="ptzcmdSubmit('stop')"><img id="rightdown" src="images/rightdown_up.gif"></div>
- </td>
- </tr></table></td></tr>
- <tr>
- <td width = "48" style="font-size:12px; color:000000"> <script language="javascript">document.write(str_preset);</script></td>
- <td width="112" class="f12b"><a href="javascript:set_preset()" class="f12" style="font-size:12px; color:000000">
- <script>document.write(str_set1);</script></a> <SELECT id="preset"><OPTION value="1">1</OPTION><OPTION value="2">2</OPTION><OPTION value="3">3</OPTION><OPTION value="4">4</OPTION><OPTION value="5">5</OPTION><OPTION value="6">6</OPTION><OPTION value="7">7</OPTION><OPTION value="0">8</OPTION></SELECT> <a href="javascript:go_preset()" class="f12" style="font-size:12px; color:000000"><script>document.write(str_go);</script></a></td>
- </tr>
- <tr>
- <td width = "88" style="font-size:12px; color:000000"> <script>document.write(str_speed_tmp)</script></td>
- <td >
- <p align="left">
- <select name="speedselect" size="1" id="speedslct">
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- <option value="24">24</option>
- <option value="25">25</option>
- <option value="26">26</option>
- <option value="27">27</option>
- <option value="28">28</option>
- <option value="29">29</option>
- <option value="30">30</option>
- <option value="31">31</option>
- <option value="32">32</option>
- <option value="33">33</option>
- <option value="34">34</option>
- <option value="35">35</option>
- <option value="36">36</option>
- <option value="37">37</option>
- <option value="38">38</option>
- <option value="39">39</option>
- <option value="40">40</option>
- <option value="41">41</option>
- <option value="42">42</option>
- <option value="43">43</option>
- <option value="44">44</option>
- <option value="45" selected>45</option>
- <option value="46">46</option>
- <option value="47">47</option>
- <option value="48">48</option>
- <option value="49">49</option>
- <option value="50">50</option>
- <option value="51">51</option>
- <option value="52">52</option>
- <option value="53">53</option>
- <option value="54">54</option>
- <option value="55">55</option>
- <option value="56">56</option>
- <option value="57">57</option>
- <option value="58">58</option>
- <option value="59">59</option>
- <option value="60">60</option>
- <option value="61">61</option>
- <option value="62">62</option>
- <option value="63">63</option>
- </select></td>
- </tr>
- <!--<tr><td height="15" colspan="2" align="center"><A id="default_link" href="javascript:defaultset();" style="font-size:12px; color:004080"><script language="javascript">document.write(str_default);</script></A></td></tr> -->
- </table></td></tr>
- <tr height="20"><td align = center valign="bottom" bgcolor=#c1c3c3 class="mid03"><a id="administrator_link" href="javascript:administrator();" style="font-size:13px; color:#000000"><strong><font face="Arial">
- <script language="javascript">document.write(str_4administrator);</script>
- </font></strong></a></td></tr>
- </table></td>
- <td height="500" width="702" align="left" valign ="middle"class="rect_left">
- <table border="0" cellpadding="0" align="left" cellspacing="0" height="500" width="702">
- <tbody>
- <tr>
- <td align="left" id="mydisplay" width="702">
- <SCRIPT type=text/JavaScript>
- if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
- {
- document.open();
- document.write('<object classid="clsid:42B182F9-3F08-484E-9913-07193A5D36FC" codebase="FCWebClientPlus.ocx#version=3.0.2.5" id="DHiMPlayer" align="absbottom" viewastext>');
- document.write('<p align="left" style="font-size:14px">');
- document.write(' <span id="t5">');
- document.write(str_alarm_info_display);
- document.write('</span><br>');
- document.write(' <span id="t6">');
- document.write(str_computer_no_install_browse);
- document.write('<br>');
- document.write(str_already_install_control_renewedly);
- document.write('<br><br>');
- document.write(str_please_point_hit);
- document.write('</span><a href="/web/FCClientOCXPlus_Setup.exe" id="t7" style="color:#0000ff">');
- document.write(str_download_control);
- document.write('</a>');
- document.write(' <span id="t8">');
- document.write(str_afterward_point);
- document.write('</span> <b id="t9">');
- document.write(str_run_tmp);
- document.write('</b> <span id="t10">');
- document.write(str_install_control_afresh_web);
- document.write('</span></p>');
- document.write(str_download_control);
- document.write('</span></p>');
- document.write('<param name="_Version" value="65536"> <param name="_ExtentX" value="10954"> <param name="_ExtentY" value="6826">');
- document.write('<param name="_StockProps" value="0">');
- document.write('<embed src="65536" _version="65536" _extentx="10954" _extenty="6826" _stockprops="0" align="center" height="0" width="0"> </object>');
- document.close();
- }
- </SCRIPT>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr></table>
- <img id = full_screen_up src = images/full_screen_up.GIF style = "width:0; height:0; visibility:hidden">
- <img id = full_screen_down src = images/full_screen_down.GIF style = "width:0; height:0; visibility:hidden">
- <img id = plus_up src = images/plus_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = plus_down src = images/plus_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = minus_up src = images/minus_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = minus_down src = images/minus_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = filePop_no1 src = images/filepop_no.gif style = "width:0; height:0; visibility:hidden">
- <img id = filePop_yes1 src = images/filepop_yes.gif style = "width:0; height:0; visibility:hidden">
- <img id = play_up src = images/play_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = play_down src = images/play_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = stop_up src = images/stop_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = stop_down src = images/stop_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = stop_up_small src = images/stop_up_small.gif style = "width:0; height:0; visibility:hidden">
- <img id = stop_down_small src = images/stop_down_small.gif style = "width:0; height:0; visibility:hidden">
- <img id = snapshot_up src = images/snapshot_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = snapshot_down src = images/snapshot_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = audio_off src = images/audio_off.gif style = "width:0; height:0; visibility:hidden">
- <img id = audio_up src = images/audio_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = audio_down src = images/audio_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = talk_off src = images/talk_off.gif style = "width:0; height:0; visibility:hidden">
- <img id = talk_up src = images/talk_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = talk_down src = images/talk_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = record_off src = images/record_off.gif style = "width:0; height:0; visibility:hidden">
- <img id = record_up src = images/record_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = record_down src = images/record_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = gray_ball src = images/gray.gif style = "width:0; height:0; visibility:hidden">
- <img id = red_ball src = images/red.gif style = "width:0; height:0; visibility:hidden">
- <img id = green_ball src = images/green.gif style = "width:0; height:0; visibility:hidden">
- <img id = yellow_ball src = images/yellow.gif style = "width:0; height:0; visibility:hidden">
- <img id = center_up src = images/center_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = center_down src = images/center_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = up_up src = images/up_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = up_down src = images/up_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = down_up src = images/down_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = down_down src = images/down_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = left_up src = images/left_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = left_down src = images/left_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = right_up src = images/right_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = right_down src = images/right_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = leftup_up src = images/leftup_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = leftup_down src = images/leftup_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = leftdown_up src = images/leftdown_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = leftdown_down src = images/leftdown_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = rightup_up src = images/rightup_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = rightup_down src = images/rightup_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = rightdown_up src = images/rightdown_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = rightdown_down src = images/rightdown_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = vpatrol_up src = images/vpatrol_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = vpatrol_down src = images/vpatrol_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = hpatrol_up src = images/hpatrol_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = hpatrol_down src = images/hpatrol_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = switchon_up src = images/switchon_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = switchon_down src = images/switchon_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = switchoff_up src = images/switchoff_up.gif style = "width:0; height:0; visibility:hidden">
- <img id = switchoff_down src = images/switchoff_down.gif style = "width:0; height:0; visibility:hidden">
- <img id = homeup_up src = images/home_on.gif style = "width:0; height:0; visibility:hidden">
- <img id = homeup_down src = images/home.gif style = "width:0; height:0; visibility:hidden">
- <img id = homestop_up src = images/stop_on.gif style = "width:0; height:0; visibility:hidden">
- <img id = homestop_down src = images/stop.gif style = "width:0; height:0; visibility:hidden">
- <!--<object id = sound_player CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
- type="application/x-oleobject" width="0" height="0"
- style="position:relative;left:0px; top:0px;width:0px;height:0px;"><param name="url" value="images/alarm.wav"><param name="autoStart" value="false"><param name="playCount" value="1"><param name="rate" value="1"></OBJECT -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement