login_remote.jsp 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893
  1. <%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
  7. <script type="text/javascript" src="/shares/js/yw/master1_oa/remote/wt.js"></script>
  8. <script type="text/javascript" src="/shares/js/yw/master1_oa/remote/m.js"></script>
  9. <script type="text/javascript" src="${remoteUrl}/cap.js"></script>
  10. <script type="text/javascript" src="/shares/js/yw/master1_oa/remote/qt.js"></script>
  11. <link rel="stylesheet" type="text/css" media="screen" href="${remoteUrl}/m.css" />
  12. <script>
  13. var gdomready=0;
  14. var gopenall=0;
  15. var gsld;
  16. var gslda;
  17. var gsldb;
  18. var gsldc;
  19. var gsldd;
  20. //var gslde;
  21. var gca=0;
  22. var gcb=0;
  23. var gcc=0;
  24. var gcd=0;
  25. var gwid=0;
  26. var gcid=-1;
  27. var gptz=0;
  28. var gxh=0;
  29. var gxz=0;
  30. var gxs=0;
  31. var gxj=0;
  32. var gdj=0;
  33. var gdg=0;
  34. var gfmu1=0;
  35. var gfmu2=0;
  36. var gfmnudj=0;
  37. var gomnudj=null;
  38. var gfmnuopen=0;
  39. var gomnuopen=null;
  40. var i=0;
  41. var j=0;
  42. var glhight=0;
  43. var grhight=287;
  44. var gcam=-1;
  45. var hh=600;
  46. var m32=false;
  47. var cnum=0;
  48. var glin=false; //是否登录成功的标志
  49. var gflag = 0; //0当前是monitor,1当前是回放,2当前是配置
  50. var gpflag = 0; //上次的记录
  51. var playback_loaded=false; //回访控件是否已经加载
  52. var playState = new Array(); //各通道的播放状态, 0-无码流, 1-主码流, 2-辅码流. 初始值为0
  53. var channelSel = -1; //选择的通道
  54. var g_clone;
  55. var chAry = new Array();
  56. var HashCookie = new Hash.Cookie('DhWebCookie',{duration: 30});
  57. var settings = {
  58. username:'',
  59. talktype:'0',
  60. logintype:'0',
  61. openall:'1',
  62. loginid:''
  63. }
  64. var TALK_CODING_TYPE = ['DEFAULT', 'PCM', 'G711a', 'AMR', 'G711u', 'G726', 'G723_53', 'G723_63', 'AAC'];
  65. var netType = 0; //0-lan 1-wan
  66. function iniocx(){
  67. ocx = $('ocx');
  68. }
  69. function showlogin(){
  70. $('l').style.top="0px";
  71. }
  72. function ld()
  73. {
  74. $('lbt').disabled = true;
  75. setTimeout('loginOCX()', 0);
  76. }
  77. function loginOCX()
  78. {
  79. // var ip ='218.206.168.14';
  80. var ip = "${remoteServer.url}";
  81. var username = $("username").value;
  82. var password = $("password").value;
  83. var logintype= $("logintype").value;
  84. if($('rlan').checked) netType = 0;
  85. else netType = 1;
  86. if(gcam==-1)
  87. {
  88. onInit();
  89. var r=ocx.LoginDeviceEx(ip,0,username,password,logintype);
  90. if (r==1){
  91. chkdev();
  92. getcl();
  93. resize();
  94. getdjl();
  95. disableOpenBtn(netType == 1);
  96. //if (settings['talktype'] != '0')
  97. var loginID=ocx.GetLoginID();
  98. ocx.SetDeviceMode(0,settings['talktype']);
  99. $('password').value="";
  100. $('l').style.display="none";
  101. $('m').style.top="0px";
  102. settings['username'] = username;
  103. settings['logintype'] = logintype;
  104. settings['loginid'] = loginID;
  105. glin=true;
  106. savesetting();
  107. if(chAry.length>0)
  108. {
  109. //alert('len2:'+chAry.length);
  110. chAry.each(function(item,index)
  111. {
  112. //alert('each c,'+item);
  113. var oc = $('c'+item);
  114. oc.removeClass(oc.className);
  115. oc.addClass('cl2');
  116. }
  117. )
  118. //chAry.empty();
  119. }
  120. }
  121. }
  122. else
  123. {
  124. var r=ocx.LoginDeviceEx(ip,0,'op','1234',logintype,netType);
  125. if (r==1){
  126. chkdev();
  127. getcl();
  128. resize();
  129. getdjl();
  130. disableOpenBtn(netType == 1);
  131. ocx.SetDeviceMode(0,settings['talktype']);
  132. $('l').style.display="none";
  133. $('m').style.top="0px";
  134. ca($('c' + gcam),gcam);
  135. }
  136. }
  137. $('info').style.display='none';
  138. $('lbt').disabled = false;
  139. }
  140. function onInit()
  141. {
  142. for(var i=0; i<32; i++)
  143. {
  144. playState[i] = 0;
  145. }
  146. ocx.NetType = netType;
  147. settings['openall'] = '1';
  148. gflag = 0;
  149. gpflag = 0;
  150. glin=false;
  151. if(netType == 1)
  152. {
  153. $('cover').style.display = 'none';
  154. }
  155. $('mb').style.display="";
  156. $('mbb').style.display="";
  157. if($('ocx')) $('ocx').style.display="";
  158. $('mb1').style.display="none";
  159. }
  160. function disableOpenBtn(b)
  161. {
  162. var ls = $$('#cl li');
  163. ls.each(function(item){
  164. item.disabled = b;
  165. item.firstChild.disabled = b;
  166. });
  167. $('xac0').disabled = b;
  168. $$('#xac0 a').each(function(item){
  169. item.disabled = b;
  170. });
  171. }
  172. function lo()
  173. {
  174. if(playback_loaded)
  175. {
  176. ocx_playback.StopAllNetPlay();
  177. }
  178. if (ocx.LogoutDevice() >=0)
  179. {
  180. loeft();
  181. }
  182. }
  183. function loeft()
  184. {
  185. if(m32) $('up1').click();
  186. $('m').style.top="-10000px";
  187. $('l').style.display="";
  188. $('l').style.width=$('m').offsetWidth;
  189. glin=false;
  190. //playback控件清理工作
  191. playback_loaded=false;
  192. showpreview();
  193. //$('video2').empty();
  194. closemu();
  195. closemnudj();
  196. closemnuopen();
  197. if (gdj==1){
  198. gdj=0;
  199. $('xdj').innerText=tl('AudioTalk');
  200. }
  201. if (gopenall==1){
  202. gopenall=0;
  203. $('xac').innerText=tl('W_ACO');
  204. }
  205. $('cl').empty();
  206. if(chAry.length > 0)
  207. {
  208. //alert('empty');
  209. chAry = [];
  210. }
  211. ocx.CloseLocalPlay();
  212. }
  213. function ca(o,ch)
  214. {
  215. if ($(o).hasClass('cl1')){
  216. if (ocx.ConnectRealVideo(ch,1)){
  217. ;
  218. }
  219. }
  220. else{
  221. if (!ocx.DisConnectRealVideo(ch)){
  222. ;
  223. }
  224. }
  225. closemu();
  226. }
  227. function cptz(){
  228. if (gptz==0)
  229. {
  230. gptz=1;
  231. ocx.ControlPtz(51,0,0,0,0);
  232. }
  233. else{
  234. gptz=0;
  235. ocx.ControlPtz(51,0,0,0,1);
  236. }
  237. setptzs();
  238. }
  239. function setptzs(){
  240. if (gdomready==1){
  241. if (gptz==0){
  242. if ($('cptz').hasClass('y51')){
  243. $('cptz').removeClass($('cptz').className);
  244. $('cptz').addClass('y5');
  245. }
  246. }
  247. else{
  248. $('cptz').removeClass($('cptz').className);
  249. $('cptz').addClass('y51');
  250. }
  251. }
  252. }
  253. function cxh(o,ts,tb0,tb1,tb2,tb3){
  254. if (gxh==0)
  255. {
  256. if (gxz==1)
  257. {
  258. if (ocx.ControlPtz(40,0,0,0,0))
  259. {
  260. gxz=0;
  261. $('xspxz').innerText=tb1;
  262. }
  263. }
  264. if(gxs==1)
  265. {
  266. if (ocx.ControlPtz(44,0,0,0,0))
  267. {
  268. gxs=0;
  269. $('xxs').innerText=tb2;
  270. }
  271. }
  272. if(gxj==1)
  273. {
  274. if (ocx.ControlPtz(48,$('pv').value,0,0,0))
  275. {
  276. gxj=0;
  277. $('xxuj').innerText=tb3;
  278. }
  279. }
  280. if (ocx.ControlPtz(13,$('pv').value,0,76,0))
  281. {
  282. gxh=1;
  283. o.innerText=ts;
  284. }
  285. }
  286. else{
  287. if (ocx.ControlPtz(13,$('pv').value,0,96,0))
  288. {
  289. gxh=0;
  290. o.innerText=tb0;
  291. }
  292. }
  293. }
  294. function cxz(o,ts,tb0,tb1,tb2,tb3){
  295. if (gxz==0)
  296. {
  297. if (gxh==1)
  298. {
  299. if (ocx.ControlPtz(13,$('pv').value,0,96,0))
  300. {
  301. gxh=0;
  302. $('xdjxh').innerText=tb0;
  303. }
  304. }
  305. if(gxs==1)
  306. {
  307. if (ocx.ControlPtz(44,0,0,0,0))
  308. {
  309. gxs=0;
  310. $('xxs').innerText=tb2;
  311. }
  312. }
  313. if(gxj==1)
  314. {
  315. if (ocx.ControlPtz(48,$('pv').value,0,0,0))
  316. {
  317. gxj=0;
  318. $('xxuj').innerText=tb3;
  319. }
  320. }
  321. if (ocx.ControlPtz(39,0,0,0,0))
  322. {
  323. gxz=1;
  324. o.innerText=ts;
  325. }
  326. }
  327. else{
  328. if (ocx.ControlPtz(40,0,0,0,0))
  329. {
  330. gxz=0;
  331. o.innerText=tb1;
  332. }
  333. }
  334. }
  335. function cxs(o,ts,tb0,tb1,tb2,tb3){
  336. if (gxs==0)
  337. {
  338. if (gxh==1)
  339. {
  340. if (ocx.ControlPtz(13,$('pv').value,0,96,0))
  341. {
  342. gxh=0;
  343. $('xdjxh').innerText=tb0;
  344. }
  345. }
  346. if (gxz==1)
  347. {
  348. if (ocx.ControlPtz(40,0,0,0,0))
  349. {
  350. gxz=0;
  351. $('xspxz').innerText=tb1;
  352. }
  353. }
  354. if(gxj==1)
  355. {
  356. if (ocx.ControlPtz(48,$('pv').value,0,0,0))
  357. {
  358. gxj=0;
  359. $('xxuj').innerText=tb3;
  360. }
  361. }
  362. if (ocx.ControlPtz(43,0,0,0,0))
  363. {
  364. gxs=1;
  365. o.innerText=ts;
  366. }
  367. }
  368. else{
  369. if (ocx.ControlPtz(44,0,0,0,0))
  370. {
  371. gxs=0;
  372. o.innerText=tb2;
  373. }
  374. }
  375. }
  376. function cxj(o,ts,tb0,tb1,tb2,tb3){
  377. if (gxj==0)
  378. {
  379. if (gxh==1)
  380. {
  381. if (ocx.ControlPtz(13,$('pv').value,0,96,0))
  382. {
  383. gxh=0;
  384. $('xdjxh').innerText=tb0;
  385. }
  386. }
  387. if (gxz==1)
  388. {
  389. if (ocx.ControlPtz(40,0,0,0,0))
  390. {
  391. gxz=0;
  392. $('xspxz').innerText=tb1;
  393. }
  394. }
  395. if(gxs==1)
  396. {
  397. if (ocx.ControlPtz(44,0,0,0,0))
  398. {
  399. gxs=0;
  400. $('xxs').innerText=tb2;
  401. }
  402. }
  403. if (ocx.ControlPtz(47,$('pv').value,0,0,0))
  404. {
  405. gxj=1;
  406. o.innerText=ts;
  407. }
  408. }
  409. else{
  410. if (ocx.ControlPtz(48,$('pv').value,0,0,0))
  411. {
  412. gxj=0;
  413. o.innerText=tb3;
  414. }
  415. }
  416. }
  417. function cdj(o,ts,tb){
  418. var ret;
  419. if (gdj==0)
  420. {
  421. if (ocx.ControlTalking(1))
  422. {
  423. gdj=1;
  424. o.innerText=ts;
  425. }
  426. }
  427. else{
  428. if (ocx.ControlTalking(0))
  429. {
  430. gdj=0;
  431. o.innerText=tb;
  432. }
  433. }
  434. }
  435. function cdg(o,ts,tb){
  436. if (gdg==0)
  437. {
  438. if (ocx.ControlPtz(14,1,0,0,0))
  439. {
  440. gdg=1;
  441. o.innerText=ts;
  442. }
  443. }
  444. else{
  445. if (ocx.ControlPtz(14,0,0,0,0))
  446. {
  447. gdg=0;
  448. o.innerText=tb;
  449. }
  450. }
  451. }
  452. function sldtopos(sld,step){
  453. sld.knob.setStyle('left', sld.toPosition(step));
  454. }
  455. function txreset(step){
  456. setcolorsv(1,step);
  457. setcolorsv(2,step);
  458. setcolorsv(3,step);
  459. setcolorsv(4,step);
  460. sldtopos(gslda,step);
  461. sldtopos(gsldb,step);
  462. sldtopos(gsldc,step);
  463. sldtopos(gsldd,step);
  464. setcolors();
  465. }
  466. function getcolors(){
  467. var colors="";
  468. colors=ocx.GetColor();
  469. var t= new Array();
  470. if (colors !="")
  471. t=colors.split(',');
  472. sldtopos(gslda,parseInt(t[0]));
  473. sldtopos(gsldb,parseInt(t[1]));
  474. sldtopos(gsldc,parseInt(t[2]));
  475. sldtopos(gsldd,parseInt(t[3]));
  476. setcolorsv(1,parseInt(t[0]));
  477. setcolorsv(2,parseInt(t[1]));
  478. setcolorsv(3,parseInt(t[2]));
  479. setcolorsv(4,parseInt(t[3]));
  480. }
  481. function setcolorsv(f,v){
  482. switch (f)
  483. {
  484. case 1: gca=v;
  485. $('ska').title=v;
  486. break;
  487. case 2: gcb=v;
  488. $('skb').title=v;
  489. break;
  490. case 3: gcc=v;
  491. $('skc').title=v;
  492. break;
  493. case 4: gcd=v;
  494. $('skd').title=v;
  495. break;
  496. }
  497. }
  498. function setcolors(){
  499. ocx.SetColor(0,gca,gcb,gcc,gcd);
  500. }
  501. function showmu(o,cid){
  502. if (gcid==cid){
  503. closemu();
  504. }
  505. else{
  506. gcid=cid;
  507. showStrmStatus(cid);
  508. $('cmu').setProperty('title', cid);
  509. $('cmu').injectAfter($(o).getParent());
  510. $('cmu').setStyle('height', 35);
  511. if(m32)
  512. {
  513. var h=parseInt($('dcl').style.height);
  514. if(h!=387&&h!=739) $('dcl').setStyle('height', h+35);
  515. }
  516. }
  517. }
  518. function closemu(){
  519. gcid=-1;
  520. $('cmu').injectAfter($('cl'));
  521. $('cmu').setStyle('height', '0');
  522. if(m32)
  523. {
  524. var h=parseInt($('dcl').style.height);
  525. if(h!=352&&h!=704) $('dcl').setStyle('height', h-35);
  526. }
  527. }
  528. function onmu(f){
  529. var cid=$('cmu').getProperty('title');
  530. ocx.ConnectRealVideo(parseInt(cid),f)
  531. closemu();
  532. }
  533. function closeMenus()
  534. {
  535. if (gcid>=0)
  536. {
  537. closemu();
  538. }
  539. if (gfmnuopen==1)
  540. {
  541. closemnuopen();
  542. }
  543. if (gfmnudj==1)
  544. {
  545. closemnudj();
  546. }
  547. }
  548. function tl(s){
  549. var ret;
  550. ret=ocx.Translate(s);
  551. return ret;
  552. }
  553. function chkdev(){
  554. var strhtm="";
  555. var strhtmopen="";
  556. var sret="";
  557. //sret=ocx.GetDevConfig(1);
  558. sret = streamCap.toString(2);
  559. //if (sret.substring(0,1)=="1")
  560. strhtm="<a id='xzml' href='javascript:;' onclick='onmu(1)' ><span id='dot0' style='visibility:hidden; font-weight:bold; font-size:12px; color:green'>●</span> "+ tl('MainStream') +"</a>";
  561. if (netType == 0)
  562. {
  563. strhtmopen="<li><a href='javascript:;' class='cdj1' onclick='onmnuopen(this,1)'>" + tl('MainStream') + "</a></li>";
  564. }
  565. if ( (2&streamCap)>>1 )
  566. {
  567. strhtm=strhtm+"<a id='xfml' href='javascript:;' onclick='onmu(2)'><span id='dot1' style='visibility:hidden; font-weight:bold; font-size:12px; color:green'>●</span> "+ tl('SecondStream') +"</a>";
  568. strhtmopen=strhtmopen+"<li><a href='javascript:;' class='cdj1' onclick='onmnuopen(this,2)'>" + tl('SecondStream') + "</a></li>";
  569. }
  570. $('cmu').setHTML(strhtm);
  571. $("mnuopenl").innerHTML=strhtmopen;
  572. sret=ocx.GetDevConfig(2);
  573. if (sret=='1')
  574. {
  575. $('xkl').style.display="";
  576. }
  577. sret=ocx.GetDevConfig(7);
  578. if (sret=='1' && netType==0)
  579. {
  580. $('xhf').style.display="";
  581. }
  582. else
  583. {
  584. $('xhf').style.display="none";
  585. }
  586. sret=ocx.GetDevConfig(8);
  587. if (sret=='1')
  588. {
  589. $('xfmq').style.display="";
  590. }
  591. sret=ocx.GetDevConfig(9);
  592. if (sret=='1')
  593. {
  594. $('xlxgs').style.display="";
  595. }
  596. sret=ocx.GetDevConfig(11);
  597. if (sret=='1') //新回放
  598. {
  599. $('newplay0').style.display = "";
  600. $('newplay1').style.display = "";
  601. $('oldplay').style.display = "none";
  602. }
  603. else
  604. {
  605. $('newplay0').style.display = "none";
  606. $('newplay1').style.display = "none";
  607. $('oldplay').style.display = "";
  608. }
  609. }
  610. function savesetting(){
  611. HashCookie.extend(settings);
  612. }
  613. function reps(str){
  614. var strReg1 =/"/g;
  615. var strReg2=/'/g;
  616. var strReg3=/</g;
  617. var strReg4=/>/g;
  618. var strReg5=/&/g;
  619. var ret=str.replace(strReg5, "&amp;");
  620. ret=ret.replace(strReg1, "&quot;");
  621. ret=ret.replace(strReg2, "&acute;");
  622. ret=ret.replace(strReg3, "&lt;");
  623. ret=ret.replace(strReg4, "&gt;");
  624. return ret;
  625. }
  626. function showmu1(){
  627. if (gfmu1==0)
  628. {
  629. gfmu1=1;
  630. $('smu1').style.display="";
  631. }
  632. else{
  633. closemu1();
  634. }
  635. }
  636. function closemu1(){
  637. gfmu1=0;
  638. $('smu1').style.display="none";
  639. }
  640. function showmu2(){
  641. if (gfmu2==0)
  642. {
  643. //alert('show');
  644. var i = $('smu2').getParent();
  645. gfmu2=1;
  646. $('smu2').style.display="";
  647. }
  648. else{
  649. //alert('close');
  650. closemu2();
  651. }
  652. }
  653. function closemu2(){
  654. gfmu2=0;
  655. $('smu2').style.display="none";
  656. }
  657. function onmu1(v){
  658. $('ps').value=v;
  659. closemu1();
  660. }
  661. function onmu2(v){
  662. if(0==v)
  663. {
  664. str = 'DAV';
  665. ocx.SetRecordExtension('dav');
  666. }
  667. else if(1==v)
  668. {
  669. str = 'ASF';
  670. ocx.SetRecordExtension('asf');
  671. }
  672. //var str = (0==v)?'DAV':'ASF';
  673. //alert('v:'+v);
  674. $('rtys').value=str;
  675. closemu2();
  676. }
  677. function showmnudj(){
  678. if (gfmnudj==0)
  679. {
  680. gfmnudj=1;
  681. $('mnudj').style.display="";
  682. }
  683. else{
  684. closemnudj();
  685. }
  686. }
  687. function closemnudj(){
  688. gfmnudj=0;
  689. $('mnudj').style.display="none";
  690. }
  691. function onmnudj(o,v){
  692. if (gomnudj !=null)
  693. {
  694. gomnudj.removeClass(gomnudj.className);
  695. gomnudj.addClass('cdj1');
  696. }
  697. gomnudj=$(o);
  698. gomnudj.removeClass(gomnudj.className);
  699. gomnudj.addClass('cdj2');
  700. //if (v=='0') v='1';
  701. ocx.SetDeviceMode(0,v);
  702. cdj($('xdj'),tl('StopTalk'),tl('AudioTalk'));
  703. closemnudj();
  704. settings['talktype'] = v;
  705. savesetting();
  706. }
  707. function ontalk()
  708. {
  709. ocx.SetDeviceMode(0,settings['talktype']);
  710. cdj(this,tl('StopTalk'),tl('AudioTalk'));
  711. }
  712. function showmnuopen(){
  713. if (gfmnuopen==0)
  714. {
  715. gfmnuopen=1;
  716. $('mnuopen').style.display="";
  717. }
  718. else{
  719. closemnuopen();
  720. }
  721. }
  722. function closemnuopen(){
  723. gfmnuopen=0;
  724. $('mnuopen').style.display="none";
  725. }
  726. function onmnuopen(o,v){
  727. if (gomnuopen !=null)
  728. {
  729. gomnuopen.removeClass(gomnuopen.className);
  730. gomnuopen.addClass('cdj1');
  731. }
  732. gomnuopen=$(o);
  733. gomnuopen.removeClass(gomnuopen.className);
  734. gomnuopen.addClass('cdj2');
  735. closemnuopen();
  736. settings['openall'] = v;
  737. savesetting();
  738. gopenall=0;
  739. openall($('xac'),tl('W_ACC'),tl('W_ACO'))
  740. }
  741. function onChannelMouseDown(ch)
  742. {
  743. //console.log('onChannelMouseDown');
  744. try{
  745. ocx.SetSelOpState(ch, 3);
  746. channelSel = ch;
  747. }
  748. catch(e){
  749. ;
  750. }
  751. }
  752. function getcl(){
  753. var t= new Array();
  754. var ts=new Array();
  755. var shtml="";
  756. var strsplita=String.fromCharCode(9);
  757. var strsplitb=String.fromCharCode(16);
  758. var sc;
  759. //sc=ocx.GetChannelName();
  760. sc = channelNames;
  761. if (sc !=""){
  762. //sc=sc.substr(0, sc.length-1);
  763. t=sc.split('&&');
  764. var num=t.length;
  765. cnum=num;
  766. for (var i =0; i<t.length;i++ ){
  767. //ts=t[i].split(strsplitb);
  768. //ts[1]=reps(ts[1]);
  769. //alert(ts[0]);
  770. shtml+="<li title='" + t[i]+ "' >"+
  771. "<div id='c" + i + "' class='cl1' onMousedown='onChannelMouseDown(" + i + ")' onMouseup='ca(this," + i +")' >" + t[i] + "</div>"
  772. if(Sys.safari || Sys.chrome)
  773. {
  774. shtml+="<a class='mute' href='javascript:;' onclick='startAudio(this," + i + ")'></a>"
  775. }
  776. shtml+="<a class='ca1' href='javascript:;' onclick='showmu(this," + i + ")'></a></li>"
  777. //t[i]=ts;
  778. }
  779. $("cl").innerHTML=shtml;
  780. $$('#cl a.ca1').each(function(item){
  781. //alert(item.className)
  782. item.addEvent('click', function(e){
  783. preventBubble(e);
  784. });
  785. });
  786. //var wheight=document.documentElement.clientHeight;
  787. var maxH=screen.height-207;
  788. if(num>19&&(maxH+63)<800) //20路及以上的设备,且分辨率不大于1152*864(-->720)时(screenHeight<=944),视频窗口大小自动匹配,通道分页显示. 1024-->880
  789. {
  790. m32=true;
  791. hh=maxH+63;
  792. $('cup').style.display='';
  793. $('cdw').style.display='';
  794. $('dcl').style.height='352px';
  795. $('dcl').style.overflow='hidden';
  796. var myFx = new Fx.Style('dcl', 'margin-top',{duration:500});
  797. var myFx1 = new Fx.Style('dcl', 'height',{duration:500});
  798. $('up1').addEvent('click', function(e){
  799. if(parseInt($('dcl').style.height)==704&&gcid==-1)
  800. {
  801. myFx.start(-352,0);
  802. myFx1.start(704,352);
  803. }
  804. else if(parseInt($('dcl').style.height)==739&&gcid!=-1)
  805. {
  806. myFx.start(-352,0);
  807. myFx1.start(739,387);
  808. }
  809. });
  810. $('dw1').addEvent('click', function(e){
  811. if(parseInt($('dcl').style.height)==352&&gcid==-1)
  812. {
  813. myFx.start(0,-352);
  814. myFx1.start(352,704);
  815. }
  816. else if(parseInt($('dcl').style.height)==387&&gcid!=-1)
  817. {
  818. myFx.start(0,-352);
  819. myFx1.start(387,739);
  820. }
  821. });
  822. }
  823. else if(num>24&&(maxH+63)>=840) //24路以上设备, 且分辨率高于1280*1024时,进入老版本的32路模式
  824. {
  825. hh=880;
  826. if(maxH<830)
  827. {
  828. var top_thiz = 10;
  829. var types = talkTypes.split('&');
  830. var t_len = types.length;
  831. if(types.contains(''))
  832. {
  833. t_len--;
  834. }
  835. if(!types.contains('0'))
  836. {
  837. t_len++;
  838. }
  839. if(t_len > 3)
  840. {
  841. top_thiz = 10 - (t_len - 3) * 18;
  842. }
  843. $('mnudj').style.left='78px';
  844. $('mnudj').style.top = top_thiz+'px';
  845. }
  846. }
  847. else hh=600;
  848. var ls = $$('#cl li');
  849. ls.each(function(element) {
  850. var fx = new Fx.Styles(element, {duration:100, wait:false});
  851. element.addEvent('mouseenter', function(){
  852. if(netType != 1)
  853. {
  854. this.style.background = 'url(clbg.png)';
  855. this.getElement('a[class=ca1]').style.display = 'block';
  856. }
  857. });
  858. element.addEvent('mouseleave', function(){
  859. if(netType != 1)
  860. {
  861. this.style.background = '';
  862. this.getElement('a[class=ca1]').style.display = 'none';
  863. }
  864. });
  865. });
  866. var div = $$('#cl div');
  867. div.each(function(element) {
  868. element.addEvent('mousedown', function(e){
  869. e = new Event(e).stop();
  870. //console.log(this.getCoordinates());
  871. g_clone = this.clone()
  872. .setStyles(this.getCoordinates()) // this returns an object with left/top/bottom/right, so its perfect
  873. .setStyles({'position': 'absolute', 'padding': '3px 0 0 25px', 'cursor': 'pointer', 'color': '#555'})
  874. .addEvent('emptydrop', function() {this.remove();this.removeEvents();})
  875. .inject(document.body);
  876. element.addEvents({
  877. 'drop': function() {
  878. //console.log('drop');
  879. //this.removeEvents();
  880. //alert(1)
  881. g_clone.remove();
  882. this.click();
  883. //dropFx.start('1');
  884. },
  885. 'over': function() {
  886. //console.log('over');
  887. //dropFx.start('0.7');
  888. },
  889. 'leave': function() {
  890. //console.log('leave');
  891. //dropFx.start('1');
  892. }
  893. });
  894. var drag = g_clone.makeDraggable({
  895. //'container':$('mb'),
  896. //'droppables': [element]
  897. }); // this returns the dragged element
  898. drag.start(e); // start the event manual
  899. });
  900. });
  901. }
  902. }
  903. function preventBubble(e)
  904. {
  905. if(Sys.ie)
  906. {
  907. event.cancelBubble = true;
  908. }
  909. else
  910. {
  911. e.stopPropagation();
  912. }
  913. }
  914. function getdjl(){
  915. var t = talkTypes;
  916. t = t.substr(0, t.length-1);
  917. var shtml = '';
  918. if(t=='0&')
  919. {
  920. $('xdj0').style.display = 'none';
  921. return;
  922. }
  923. var ts = t.split('&');
  924. var first = 0 ;
  925. for(var i =0; i < ts.length; i++)
  926. {
  927. if( ts[i] != '' )
  928. {
  929. if(!ts.contains('0') && (0 == first))
  930. {
  931. first = 1;
  932. settings['talktype'] = ts[i];
  933. shtml+="<li><a href='javascript:;' class='cdj1' onclick='onmnudj(this, " +ts[i]+")'>" + TALK_CODING_TYPE[0] + "</a></li>";
  934. }
  935. shtml+="<li><a href='javascript:;' class='cdj1' onclick='onmnudj(this, "+ts[i]+")'>" + TALK_CODING_TYPE[ts[i]-0] + "</a></li>";
  936. }
  937. }
  938. $("mnudjl").innerHTML=shtml;
  939. }
  940. function rfc(){
  941. var t= new Array();
  942. var ts=new Array();
  943. var shtml="";
  944. var strsplita=String.fromCharCode(9);
  945. var strsplitb=String.fromCharCode(16);
  946. var sc;
  947. sc=ocx.GetChannelName();
  948. if (sc !=""){
  949. sc=sc.substr(0, sc.length-1);
  950. t=sc.split(strsplita);
  951. for (var i =0; i<t.length;i++ ){
  952. ts=t[i].split(strsplitb);
  953. //ts[1]=reps(ts[1]);
  954. var temp='c' + ts[0];
  955. $(temp).setText(ts[1]);
  956. var pr=$(temp).getParent();
  957. pr.title=ts[1];
  958. t[i]=ts;
  959. }
  960. }
  961. }
  962. function reboot(){
  963. var ret;
  964. var ret1 = false;
  965. try{
  966. ret1 = ocx.ConfirmReboot();
  967. }
  968. catch(e){
  969. ret1 = confirm(tl('w_rebootconfirm'));
  970. }
  971. if (ret1){
  972. ret=ocx.Restart();
  973. if (ret==0)
  974. {
  975. //alert(tl('w_rebootfail'));
  976. }
  977. else{
  978. ocx.LogoutDevice();
  979. loeft();
  980. }
  981. }
  982. }
  983. function openall(o,ts,tb){
  984. var ret;
  985. //alert(settings['openall']);
  986. if (gopenall==0)
  987. {
  988. if (ocx.ConnectAllChannelEx(settings['openall']))
  989. {
  990. gopenall=1;
  991. o.innerText=ts;
  992. }
  993. }
  994. else{
  995. if (ocx.DisConnectAllChannel())
  996. {
  997. gopenall=0;
  998. o.innerText=tb;
  999. }
  1000. }
  1001. }
  1002. function toggleDisplay(obj){
  1003. if (obj.getStyle('display')=='none'){
  1004. obj.setStyle('display','');
  1005. }
  1006. else{
  1007. obj.setStyle('display','none');
  1008. }
  1009. }
  1010. function closebeep(){
  1011. ocx.BeepAlarmControl(0);
  1012. }
  1013. function limitPs(){
  1014. var inpt=$('ps').value;
  1015. $('ps').value = inpt.replace(/[^\d]/g,'');
  1016. if(inpt=='0')$('ps').value =1;
  1017. else if(inpt=='9') $('ps').value =8;
  1018. }
  1019. function limitPv(){
  1020. $('pv').value = $('pv').value.replace(/[^\d]/g,'');
  1021. var inpt=$('pv').value;
  1022. if(inpt.length >= 3 && (inpt-0)>255) $('pv').value=255;
  1023. else if(inpt!='') $('pv').value=inpt-0;
  1024. }
  1025. function showStrmStatus(ch)
  1026. {
  1027. var state = playState[ch]
  1028. if(state == 1)
  1029. {
  1030. $('dot0').style.visibility = 'visible';
  1031. if($('dot1'))
  1032. {
  1033. $('dot1').style.visibility = 'hidden';
  1034. }
  1035. }
  1036. else if(state == 2)
  1037. {
  1038. $('dot0').style.visibility = 'hidden';
  1039. if($('dot1'))
  1040. {
  1041. $('dot1').style.visibility = 'visible';
  1042. }
  1043. }
  1044. else
  1045. {
  1046. $('dot0').style.visibility = 'hidden';
  1047. if($('dot1'))
  1048. {
  1049. $('dot1').style.visibility = 'hidden';
  1050. }
  1051. }
  1052. }
  1053. function inilanguage_ex(){
  1054. $('xpreview').setText(tl('MONITOR'));
  1055. $('xxtpz').setText(tl('SysConfig'));
  1056. $('xlxcx').setText(tl('RecQuery'));
  1057. $('xlxcx0').setText(tl('RecQuery'));
  1058. $('xbjsz').setText(tl('w_AlarmConfig'));
  1059. $('xgy').setText(tl('About'));
  1060. }
  1061. function showabout(){
  1062. ocx.AboutBox();
  1063. }
  1064. function inilanguage(){
  1065. $('xyhm').setText(tl('User Name')+":");
  1066. $('xmm').setText(tl('Password')+":");
  1067. $('lbt').setText(tl('Login'));
  1068. /* showlogin();
  1069. $('xtc').setText(tl('Logout')); */
  1070. //$('xzml').setText(tl('MainStream'));
  1071. //$('xfml').setText(tl('SecondStream'));
  1072. $('xdj').setText(tl('AudioTalk'));
  1073. $('xhf').setText(tl('OpenRec'));
  1074. $('xbb').setText(tl('Zoom'));
  1075. $('xbj').setText(tl('Focus'));
  1076. $('xgq').setText(tl('Iris'));
  1077. $('xbc').setText(tl('w_Step'));
  1078. $('xz').setText(tl('w_SetValue'));
  1079. $('xtld').setProperty('title', tl('Bright'));
  1080. $('xtdbd').setProperty('title', tl('Cont'));
  1081. $('xtbhd').setProperty('title', tl('Sat'));
  1082. $('xtsd').setProperty('title', tl('Hue'));
  1083. $('xcz').setText(tl('Reset'));
  1084. $('xztlj').setText(tl('PicturePath'));
  1085. $('xlxlj').setText(tl('RecordPath'));
  1086. $('xztlj').setProperty('title', tl('SetPicturePath'));
  1087. $('xlxlj').setProperty('title', tl('SetRecordPath'));
  1088. $('taba1').setText(tl('Img Config'));
  1089. $('taba2').setText(tl('Other Config'));
  1090. $('xyzd').setText(tl('Preset'));
  1091. $('xdjxh').setText(tl('Auto-Tour'));
  1092. $('xspxz').setText(tl('Auto-Pan'));
  1093. $('xxs').setText(tl('Auto-Scan'));
  1094. $('xxuj').setText(tl('Pattern'));
  1095. $('xfzk').setText(tl('AUX ON'));
  1096. $('xfzg').setText(tl('AUX OFF'));
  1097. $('xytsz').setText(tl('w_PTZsetting'));
  1098. $('xkl').setText(tl('W_Burning'));
  1099. //$('xkl').setProperty('title', tl('w_ptjrtitle'));
  1100. $('xsxt').setText(tl('w_refresh'));
  1101. $('xsxt').setProperty('title', tl('w_trefresh'));
  1102. $('xcqsb').setText(tl('w_reboot'));
  1103. $('xcqsb').setProperty('title', tl('w_reboottitle'));
  1104. $('xac').setText(tl('W_ACO'));
  1105. $('xac').setProperty('title', tl('W_ACO_T'));
  1106. $('xp1').setProperty('title', tl('W_P1'));
  1107. $('xp2').setProperty('title', tl('W_P2'));
  1108. $('xp3').setProperty('title', tl('W_P3'));
  1109. $('xp4').setProperty('title', tl('W_P4'));
  1110. $('xp5').setProperty('title', tl('W_P5'));
  1111. //$('xdlfs').setText(tl('type'));
  1112. //$('xdlfszb').setText(tl('w_muticast'));
  1113. //$('xladv').setText(tl('C_ADVANCED.'));
  1114. $('xfmq').setText(tl('W_CLOSEBEEP'));
  1115. $('rdty').setText(tl('RecordFormat'));
  1116. inilanguage_ex();
  1117. }
  1118. function resize(){
  1119. var mbbw;
  1120. var mbbh;
  1121. wwidth =document.documentElement.clientWidth;
  1122. wheight=document.documentElement.clientHeight;
  1123. var clientw = wwidth;
  1124. var clienth = wheight;
  1125. //alert(screen.availHeight+' '+screen.height+' '+wheight)
  1126. if (wheight<hh) wheight=hh;
  1127. //ma:31;mc:18;plc:33;dra,b,c:24
  1128. mbbh=wheight - (31+18+33+24+3+8);
  1129. //alert(mbbh+'mbbh')
  1130. glhight=mbbh+33;
  1131. grhight=mbbh+33-263-$('yt21').offsetHeight;
  1132. mbbw=mbbh *64/51;
  1133. var minWidth = (hh-117)*64/51+298;
  1134. if( wwidth < minWidth )
  1135. {
  1136. $('m').style.width = minWidth;
  1137. }
  1138. else
  1139. {
  1140. $('m').style.width = "100%";
  1141. }
  1142. var mbw=Sys.ie ? mbbw+(145*2+8) : mbbw+(145+8);
  1143. $('mb').setStyle('width', mbw);
  1144. $('mbb').setStyle('width', mbbw);//yzt 0508
  1145. $('mbb').setStyle('height', mbbh);
  1146. $('mbal').setStyle('height', glhight);
  1147. $('yt3').setStyle('height', grhight);
  1148. //回放的缩放控制
  1149. //var pbackw = clientw<904? 884:clientw-20;
  1150. var pbackh = clienth<670? 610:clienth-60;
  1151. var pbackw = (pbackh-193)*3/2+180;
  1152. $('mb1').setStyle('width', pbackw);
  1153. $('mb1').setStyle('height', pbackh);
  1154. }
  1155. function browserDetectSetOpacity(el, value) {
  1156. // ensure value is in [0-1] range
  1157. value = Math.min(1, Math.max(value, 0));
  1158. if (navigator.userAgent.match(/\bMSIE\b/)
  1159. && (!document.documentMode || document.documentMode < 9))
  1160. el.style.filter = "alpha(opacity=" + (value * 100) + ")";
  1161. }
  1162. function showDeviceConfig()
  1163. {
  1164. if(netType == 1 && (gflag == 0 || gflag == 1))
  1165. {
  1166. if(!ocx.ShowMessageBox('Are you sure leave this page?'))
  1167. {
  1168. return false;
  1169. }
  1170. if(gflag == 0)
  1171. {
  1172. ocx.CloseCurRealPlay();
  1173. gpflag = 0;
  1174. }
  1175. else if(playback_loaded && gflag == 1)
  1176. {
  1177. ocx_playback.StopAllNetPlay();
  1178. gpflag = 1;
  1179. }
  1180. }
  1181. if(netType == 1)
  1182. {
  1183. $('cover').style.display = "";
  1184. }
  1185. ocx.ShowDeviceConfig();
  1186. gflag = 2;
  1187. }
  1188. function showpreview()
  1189. {
  1190. if(netType == 1 && gflag == 1)
  1191. {
  1192. ocx.ResumeCurRealPlay();
  1193. }
  1194. else if(netType == 1)
  1195. {
  1196. return false;
  1197. }
  1198. $('mb').style.display="";
  1199. $('mbb').style.display="";
  1200. if($('ocx')) $('ocx').style.display="";
  1201. $('mb1').style.display="none";
  1202. if(playback_loaded)
  1203. {
  1204. ocx_playback.StopAllNetPlay();
  1205. }
  1206. glin = true;
  1207. gflag = 0;
  1208. }
  1209. function showNewplayback()
  1210. {
  1211. if(netType == 1 && gflag == 0)
  1212. {
  1213. if(!ocx.ShowMessageBox('Are you sure leave this page?'))
  1214. {
  1215. return false;
  1216. }
  1217. ocx.CloseCurRealPlay();
  1218. }
  1219. else if(netType == 1 && gflag == 2)
  1220. {
  1221. return false;
  1222. }
  1223. $('mb1').style.display="";
  1224. $('mbb').style.display="none";
  1225. $('mbb').style.display="none";
  1226. $('mb').style.display="none";
  1227. if($('ocx')) $('ocx').style.display="none";
  1228. //glin = false;
  1229. if(!playback_loaded)
  1230. {
  1231. loadPlaybackOcx();
  1232. playback_loaded=true;
  1233. }
  1234. ocx_playback.ShowPlayBack();
  1235. gflag = 1;
  1236. ocx.DetectAudioCondition();
  1237. }
  1238. function loadPlaybackOcx()
  1239. {
  1240. $('video2').innerHTML="<object id='ocx_playback' width='100%' height='100%' classid='CLSID:D0EBB421-525A-4863-A5D4-0D0BFA6F8821'>"+
  1241. "<param name='LoginID' value="+HashCookie.get('loginid')+">"+
  1242. "<param name='strUserName' value="+HashCookie.get('username')+">"+
  1243. "<param name='strLangPath' value='"+ ocx.GetLangPath()+"'"+">"+
  1244. "<param name='SetLangFromIP' value='" + window.location.href +"'>"+
  1245. "</object>"
  1246. }
  1247. window.addEvent('resize',function(){
  1248. resize();
  1249. });
  1250. window.addEvent('domready',function(){
  1251. hideFunctions();
  1252. gsld = new Slider($('sa'), $('sk'), {
  1253. steps:1000,
  1254. onComplete:function(step){ocx.SetPlayPos(step);}
  1255. });
  1256. gslda = new Slider($('saa'), $('ska'), {
  1257. steps:128,
  1258. onChange:function(step){setcolorsv(1,step);setcolors();}
  1259. });
  1260. gsldb = new Slider($('sab'), $('skb'), {
  1261. steps:128,
  1262. onChange:function(step){setcolorsv(2,step);setcolors();}
  1263. });
  1264. gsldc = new Slider($('sac'), $('skc'), {
  1265. steps:128,
  1266. onChange:function(step){setcolorsv(3,step);setcolors();}
  1267. });
  1268. gsldd = new Slider($('sad'), $('skd'), {
  1269. steps:128,
  1270. onChange:function(step){setcolorsv(4,step);setcolors();}
  1271. });
  1272. $('xac1').addEvent('click', function(e){
  1273. showmnuopen();
  1274. preventBubble(e);
  1275. });
  1276. $('xdj1').addEvent('click', function(e){
  1277. showmnudj();
  1278. preventBubble(e);
  1279. });
  1280. var kwicks = $$('#kwick .kwick');
  1281. var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition:Fx.Transitions.Back.easeOut});
  1282. kwicks.each(function(kwick, i){
  1283. kwick.addEvent('mouseenter', function(e){
  1284. var obj = {};
  1285. obj[i] = {
  1286. 'width': [kwick.getStyle('width').toInt(), 155]
  1287. };
  1288. kwicks.each(function(other, j){
  1289. if (other != kwick){
  1290. var w = other.getStyle('width').toInt();
  1291. if (w != 80) obj[j] = {'width': [w,80]};
  1292. }
  1293. });
  1294. fx.start(obj);
  1295. });
  1296. });
  1297. $('kwick').addEvent('mouseleave', function(e){
  1298. var obj = {};
  1299. kwicks.each(function(other, j){
  1300. obj[j] = {'width': [other.getStyle('width').toInt(), 95]};
  1301. });
  1302. fx.start(obj);
  1303. });
  1304. //
  1305. var container = $('mb');
  1306. var drop = $('drb');
  1307. var mba=$('mba');
  1308. var mbb=$('mbb');
  1309. var mbc=$('mbc');
  1310. var dropFx = drop.effect('opacity', {wait: false}); // wait is needed so that to toggle the effect,
  1311. var bedra= $('dra');
  1312. var bedrc= $('drc');
  1313. var hCyt21 = new Fx.Style('yt21', 'height',{duration:500});
  1314. var hCyt3 = new Fx.Style('yt3', 'height',{duration:500});
  1315. $('ayt22').addEvent('click', function(e){
  1316. new Event(e).stop();
  1317. if (this.hasClass('y1'))
  1318. {
  1319. this.removeClass(this.className);
  1320. this.addClass('y2');
  1321. hCyt21.start(0,160);
  1322. hCyt3.start(grhight,grhight-160);
  1323. grhight=grhight-160
  1324. }
  1325. else{
  1326. this.removeClass(this.className);
  1327. this.addClass('y1');
  1328. hCyt21.start(160,0);
  1329. hCyt3.start(grhight,grhight+160);
  1330. grhight=grhight+160
  1331. }
  1332. });
  1333. var taba1=$('taba1');
  1334. var taba2=$('taba2');
  1335. taba1.addEvent('click', function(e){
  1336. new Event(e).stop();
  1337. if (this.hasClass('t3'))
  1338. {
  1339. this.removeClass(this.className);
  1340. this.addClass('t1');
  1341. taba2.removeClass(taba2.className);
  1342. taba2.addClass('t2');
  1343. $('yt3t1').style.display="";
  1344. $('yt3t2').style.display="none";
  1345. }
  1346. });
  1347. taba2.addEvent('click', function(e){
  1348. new Event(e).stop();
  1349. if (this.hasClass('t2'))
  1350. {
  1351. taba1.removeClass(taba2.className);
  1352. taba1.addClass('t3');
  1353. this.removeClass(this.className);
  1354. this.addClass('t4');
  1355. $('yt3t1').style.display="none";
  1356. $('yt3t2').style.display="";
  1357. }
  1358. });
  1359. //
  1360. document.addEvent('keydown', function(event) {
  1361. event = new Event(event);
  1362. if(glin && $('mb').style.display!='none')
  1363. {
  1364. if (event.key == 'up') ocx.ControlPtz(0,0,$('ps').value,0,0);
  1365. if (event.key == 'left') ocx.ControlPtz(2,0,$('ps').value,0,0);
  1366. if (event.key == 'right') ocx.ControlPtz(3,0,$('ps').value,0,0);
  1367. if (event.key == 'down') ocx.ControlPtz(1,0,$('ps').value,0,0);
  1368. }
  1369. });
  1370. document.addEvent('keyup', function(event) {
  1371. event = new Event(event);
  1372. if(glin && $('mb').style.display!='none')
  1373. {
  1374. if (event.key == 'up') ocx.ControlPtz(0,0,$('ps').value,0,1);
  1375. if (event.key == 'left') ocx.ControlPtz(2,0,$('ps').value,0,1);
  1376. if (event.key == 'right') ocx.ControlPtz(3,0,$('ps').value,0,1);
  1377. if (event.key == 'down') ocx.ControlPtz(1,0,$('ps').value,0,1);
  1378. }
  1379. });
  1380. inilanguage();
  1381. var ls = $$('div div.mpad');
  1382. ls.each(function(element){
  1383. browserDetectSetOpacity(element, 0.35);
  1384. if (navigator.userAgent.match(/\bMSIE\b/)
  1385. && (!document.documentMode || document.documentMode < 9))
  1386. element.style.background = "#555";
  1387. });
  1388. gdomready=1;
  1389. });
  1390. </script>
  1391. <script language="javascript" for="ocx" event="ReturnWindInfo(wid,cid,ps,sit)">
  1392. gptz=sit;
  1393. gwid=wid;
  1394. if (ps!=0)
  1395. {
  1396. if (ps==5 || ps==4){
  1397. $('pbh').setStyle('display','none');
  1398. }
  1399. else{
  1400. $('pbh').setStyle('display','');
  1401. }
  1402. getcolors();
  1403. }
  1404. setptzs();
  1405. </script>
  1406. <script language="javascript" for="ocx" event="ReturnPlayState(pos)">
  1407. sldtopos(gsld,pos);
  1408. </script>
  1409. <script language="javascript" for="ocx" event="StateChangedEx(ci,ps,wid, strm)">
  1410. //alert(ci+', '+ps+', '+wid);
  1411. //if preview mode, do noting and return;
  1412. if(ci==32 && ps==0) return;
  1413. var oc;
  1414. if (ci != -1)
  1415. {
  1416. oc=$('c' + ci);
  1417. if (ps==0)
  1418. {
  1419. oc.removeClass(oc.className);
  1420. oc.addClass('cl1');
  1421. $('xac').innerText=tl('W_ACO');
  1422. gopenall=0;
  1423. }
  1424. if(ps == 1) playState[ci] = strm;
  1425. else playState[ci] = 0;
  1426. if(glin)
  1427. {
  1428. //alert('if');
  1429. if (ps==1){
  1430. //alert('ci:'+ci+', '+oc);
  1431. //oc.removeClass('cl1');
  1432. oc.removeClass(oc.className);
  1433. oc.addClass('cl2');
  1434. var ALL_ON=true;
  1435. for(var i=0;i<cnum;i++)
  1436. {
  1437. //ALL_ON&=($('c'+i).hasClass('cl2'));
  1438. if($('c'+i).hasClass('cl1'))
  1439. {
  1440. ALL_ON=false;
  1441. break;
  1442. }
  1443. }
  1444. if(ALL_ON)
  1445. {
  1446. $('xac').innerText=tl('W_ACC');
  1447. gopenall=1;
  1448. }
  1449. }
  1450. }
  1451. else
  1452. {
  1453. //alert('else');
  1454. chAry.include(ci);
  1455. }
  1456. if (ps==3){
  1457. //oc.removeClass('cl1');
  1458. oc.removeClass(oc.className);
  1459. oc.addClass('cl3');
  1460. }
  1461. if(ps==6){
  1462. oc.removeClass(oc.className);
  1463. oc.addClass('cl2');
  1464. }
  1465. }
  1466. if (wid == gwid){
  1467. if (ps==3||ps==5){$('pbh').setStyle('display','none');}else{$('pbh').setStyle('display','');}
  1468. getcolors();
  1469. }
  1470. </script>
  1471. <script language="javascript" for="ocx" event="DeviceDisconnected(ip,pt)">
  1472. loeft();
  1473. </script>
  1474. <script language="javascript" for="ocx" event="Talk(talkState,extendPara)">
  1475. if (talkState==1){
  1476. if (gdj==0) cdj($('xdj'),tl('StopTalk'),tl('AudioTalk'));
  1477. }
  1478. else
  1479. {
  1480. if (gdj==1) cdj($('xdj'),tl('StopTalk'),tl('AudioTalk'));
  1481. }
  1482. </script>
  1483. <script language="javascript" for="ocx" event="DeviceChanged(strDevIp, lPort, lType)">
  1484. if (lType == 1)
  1485. {
  1486. rfc();
  1487. }
  1488. if (lType==3)
  1489. {
  1490. lo();
  1491. $('l').setStyle('display','none');
  1492. glin=false;
  1493. playback_loaded=false;
  1494. window.location.href='http://' + strDevIp;
  1495. }
  1496. </script>
  1497. <script language="javascript" for="ocx" event="OpenSelRealPlay(nState)">
  1498. if( channelSel >= 0)
  1499. {
  1500. g_clone.remove();
  1501. g_clone.removeEvents();
  1502. }
  1503. if( ( 1 == nState ) && ( channelSel >= 0 ) )
  1504. {
  1505. ocx.ConnectRealVideo(channelSel, 1);
  1506. }
  1507. </script>
  1508. <script language="javascript" for="ocx" event="CloseCofigDlgEvent()">
  1509. if(netType == 1)
  1510. {
  1511. $('cover').style.display = 'none';
  1512. gflag =1;
  1513. if(gpflag == 0)
  1514. {
  1515. showpreview();
  1516. }
  1517. else if(gpflag == 1)
  1518. {
  1519. showNewplayback();
  1520. }
  1521. }
  1522. </script>
  1523. </head>
  1524. <body onload="ld()" style="background:#ccc">
  1525. <div id="info" style="font-size:20px;font-weight:bold;text-align:center;color:#000;margin-top:10%;">数据连接中...请稍候!</div>
  1526. <div id='l' style="display:none">
  1527. <div id='lx'>
  1528. <div id='lb'></div>
  1529. <div id='la'>
  1530. <div id='lal'></div>
  1531. <div id='lar'></div>
  1532. <div id='lalogo'></div>
  1533. <div id='lainput'>
  1534. <div><span id='xyhm'>username:</span><input value="${remoteAccount.loginName}" type='text' class="input1" maxlength='20' id='username' onKeyDown="javascript:if (event.keyCode==13) event.keyCode=9;"></div>
  1535. <div><span id='xmm'>pass:</span><input value="${remoteAccount.loginPwd}" type="password" class="input1" maxlength="20" id="password" onKeyDown="javascript:if (event.keyCode==13) ld();"></div>
  1536. <div id='ladvxx' style="display:block;"><input type="radio" name="wtype" id="rlan" checked /><label for="rlan">LAN</label><input type="radio" name="wtype" id="rwan" /><label for="rwan">WAN</label></div>
  1537. <div id='ladvxx' style="display:none;"><span id='xdlfs'>type</span><select id="logintype" onKeyDown="javascript:if (event.keyCode==13) ld();"><option value="0">TCP</option><option value="4">UDP</option><option id='xdlfszb' value="3">w_muticast</option></select></div>
  1538. </div>
  1539. <div id='labt'><button id='lbt' onClick="ld()">l</button></div>
  1540. </div>
  1541. <div id='lc'></div>
  1542. </div>
  1543. </div>
  1544. <div id="m" onclick="closeMenus()">
  1545. <div id="ma">
  1546. <div id="maa"></div>
  1547. <div id="mab"></div>
  1548. <div id="mac"></div>
  1549. <div id="mad"></div>
  1550. <div id=kwick>
  1551. <ul class=kwicks>
  1552. <li id="newplay0"><span id='xpreview' class="kwick b" onclick="showpreview()">MONITOR</span></li>
  1553. <li id="newplay1"><span id='xlxcx' class="kwick b" onclick="showNewplayback()">PLAYBACK</span></li>
  1554. <li id="oldplay"><span id='xlxcx0' class="kwick b" onclick="ocx.ShowPlayback()">PLAYBACK</span></li>
  1555. <li><span id='xbjsz' class="kwick c" onclick="ocx.ShowAlarm()">ac</span></li>
  1556. <li><span id='xxtpz' class="kwick a" onclick="showDeviceConfig()">sysc</span></li>
  1557. <li><span id='xgy' class="kwick d" onclick="showabout()">about</span></li>
  1558. <!-- <li><span id='xtc' class="kwick e" onclick="lo()">quit</span></li> -->
  1559. </ul>
  1560. </div>
  1561. <div id="mae"></div>
  1562. </div>
  1563. <div id="mb" >
  1564. <div id="mba" style="float:left;padding:0 0 0 5px;">
  1565. <div class="mpad">
  1566. <div id='dra' class="drabc1">
  1567. <div class="drabc2"></div>
  1568. <div class="drabc3"></div>
  1569. <div class="drabc4"></div>
  1570. </div>
  1571. <div id='mbal' style="height:533px;position:relative; overflow:hidden;">
  1572. <div id='cup' style="margin-left:5px;width:129px;height:9px;overflow:hidden; display:none;position:relative;top:0;z-index:30;"><a id='up1' class="y1" href="javascript:;" ></a></div>
  1573. <div id='dcl' style="float:left;position:relative;">
  1574. <ul id='cl'></ul>
  1575. <div id='cmu' title='' style="z-index:40;"></div>
  1576. </div>
  1577. <div id='cdw' style="margin-left:5px;width:129px;height:9px;overflow:hidden; display:none;position:relative;top:352;"><a id='dw1' class="y2" href="javascript:;" ></a></div>
  1578. <div id='ddj' style="width:100%; height:100px;">
  1579. <div style="float:left;position:relative;z-index:50">
  1580. <div style="padding:10px 0 0 4px; float:left" id="xac0"><a id='xac' class="cbt" href="javascript:;" onclick="openall(this,tl('W_ACC'),tl('W_ACO'))">open all</a><a href="javascript:;" id="xac1" class="cbtm"></a></div>
  1581. <div id="mnuopen" style="display:none">
  1582. <ul id='mnuopenl'></ul>
  1583. </div>
  1584. </div>
  1585. <div style="float:left;position:relative;">
  1586. <div style=" padding:10px 0 0 4px; float:left" id="xdj0"><a id='xdj' class="cbt" href="javascript:;" onclick="cdj(this,tl('StopTalk'),tl('AudioTalk'))">st</a><a href="javascript:;" id="xdj1" class="cbtm"></a></div>
  1587. <div id="mnudj" style="display:none">
  1588. <ul id='mnudjl'></ul>
  1589. </div>
  1590. </div>
  1591. <div style="padding:10px 0 0 4px; float:left"><a id='xhf' style="display:none" class="cbt" href="javascript:;" onclick="ocx.QuickOperation(0)">playback</a></div>
  1592. <div style="padding:10px 0 0 4px; float:left"><a id='xsxt' class="cbt" href="javascript:;" onclick="rfc()">refresh</a></div>
  1593. <div style="padding:10px 0 0 4px; float:left"><a id='xkl' style="display:none" class="cbt" href="javascript:;" onclick="ocx.ShowBurning()">kel</a></div>
  1594. <!--
  1595. <div style="margin:5px 0 0 4px;">
  1596. <div style='width:21px; height:21px;background:url(yl.png);float:left' title='volue'></div>
  1597. <div style="margin:4px 0 0 4px;float:left"><a class="sal" href="javascript:;" onclick="gslde.set(gslde.step-1)"></a></div>
  1598. <div id='sae' style="width:70px;height:13px;margin:4px 0 0 4px;float:left;background:url(sas.png) repeat-x">
  1599. <div id='ske' style="width:6px;height:13px;background:url(sks.png) no-repeat; cursor:pointer;"></div>
  1600. </div>
  1601. <div style="margin:4px 0 0 4px; float:left;"><a class="sar" href="javascript:;" onclick="gslde.set(gslde.step+1)"></a></div>
  1602. </div>
  1603. -->
  1604. </div>
  1605. <div style="padding:0 0 0 4px; float:left"><a id='xfmq' style="display:none" class="cbt" href="javascript:;" onclick="closebeep()">closebeep</a></div>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <div id="mbb" style="width:650px;height:500px;float:left; left:120px;padding:0 0 0 5px;">
  1610. <div id="drb" class="drabc1">
  1611. <div class="drabc2"></div>
  1612. <div class="drabc3"></div>
  1613. <div class="drabc4"></div>
  1614. </div>
  1615. <div id='pla' style="width:100%;height:100%;float:left;background:#848484;padding:0"><script type="text/javascript" src="${remoteUrl}/olp.js"></script></div>
  1616. <div id='plc' style="width:100%;float:left;height:33px;background:url(plcb.png);">
  1617. <div style="width:7px;height:33px;float:left; background:url(plcbl.png);background-repeat:no-repeat;background-position:0 0;"></div>
  1618. <div id='pbh' style="background:url(plcb.png);width:580px;height:33px;position:absolute;margin-left:7px;z-index:10;"></div>
  1619. <div id='pb' style="height:26px;margin:3px 0 0 10px;position:absolute;z-index:9;overflow:hidden;">
  1620. <div id='sa'>
  1621. <div id='sk'></div>
  1622. </div>
  1623. <div id='pc' style="float:left;">
  1624. <div style="margin:0 0 0 5px"><a id='xp1' class="p1" href="javascript:;" onclick="ocx.PlayVideo(1)" ></a></div>
  1625. <div style="margin:0 0 0 10px"><a id='xp2' class="p2" href="javascript:;" onclick="ocx.PlayVideo(2)"></a></div>
  1626. <div style="margin:0 0 0 10px"><a id='xp3' class="p3" href="javascript:;" onclick="ocx.PlayVideo(3)"></a></div>
  1627. <div style="margin:0 0 0 10px"><a id='xp4' class="p4" href="javascript:;" onclick="ocx.PlayVideo(5)"></a></div>
  1628. <div style="margin:0 0 0 10px"><a id='xp5' class="p5" href="javascript:;" onclick="ocx.PlayVideo(4)"></a></div>
  1629. <!--<div style="margin:0 0 0 10px"><a class="p6" href="javascript:;"></a></div>
  1630. <div style="margin:0 0 0 10px"><a class="p7" href="javascript:;"></a></div>-->
  1631. </div>
  1632. </div>
  1633. <div style="width:7px;height:33px;float:right; background:url(plcbl.png);background-repeat:no-repeat;background-position:-7px 0;"></div>
  1634. </div>
  1635. </div>
  1636. <div id="mbc" style="float:left;padding:0 0 0 5px; width:140px;">
  1637. <div class="mpad" style="float:left;">
  1638. <div id='drc' class="drabc1">
  1639. <div class="drabc2"></div>
  1640. <div class="drabc3"></div>
  1641. <div class="drabc4"></div>
  1642. </div>
  1643. <div id='yt' style="height:120px;position:relative;padding:0 10px 0 10px;">
  1644. <div style="width:33px;height:26px;padding:14px 0 0 7px;"><a class="y1" href="javascript:;" onmousedown="ocx.ControlPtz(32,5,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(32,5,$('ps').value,0,1)"></a></div>
  1645. <div style="width:33px;height:26px;padding:14px 0 0 7px;"><a class="y2" href="javascript:;" onmousedown="ocx.ControlPtz(0,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(0,0,$('ps').value,0,1)"></a></div>
  1646. <div style="width:33px;height:26px;padding:14px 0 0 7px;"><a class="y3" href="javascript:;" onmousedown="ocx.ControlPtz(33,5,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(33,5,$('ps').value,0,1)"></a></div>
  1647. <div style="width:33px;height:33px;padding:7px 0 0 7px;"><a class="y4" href="javascript:;" onmousedown="ocx.ControlPtz(2,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(2,0,$('ps').value,0,1)"></a></div>
  1648. <div style="width:40px;height:40px;"><a id='cptz' class="y5" href="javascript:;" onclick="cptz()" ></a></div>
  1649. <div style="width:33px;height:33px;padding:7px 0 0 7px;"><a class="y6" href="javascript:;" onmousedown="ocx.ControlPtz(3,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(3,0,$('ps').value,0,1)"></a></div>
  1650. <div style="width:33px;height:40px;padding:0 0 0 7px;"><a class="y7" href="javascript:;" onmousedown="ocx.ControlPtz(34,5,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(34,5,$('ps').value,0,1)"></a></div>
  1651. <div style="width:33px;height:40px;padding:0 0 0 7px;"><a class="y8" href="javascript:;" onmousedown="ocx.ControlPtz(1,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(1,0,$('ps').value,0,1)"></a></div>
  1652. <div style="width:33px;height:40px;padding:0 0 0 7px;"><a class="y9" href="javascript:;" onmousedown="ocx.ControlPtz(35,5,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(35,5,$('ps').value,0,1)"></a></div>
  1653. </div>
  1654. <div style="width:132px;height:20px;padding:0 0 0 8px;position:relative;overflow:hidden;">
  1655. <div id='xbc' class="divt" style="float:left;">(1-8):</div>
  1656. <div style="width:53px;height:18px; background:url(ytabg.png); padding:0 0 0 3px;float:left;">
  1657. <input class="inputyt" type="text" id="ps" value="5" maxlength="1" onkeyup="limitPs()" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
  1658. <a href="javascript:;" class="yta1" onclick="showmu1()"></a>
  1659. </div>
  1660. </div>
  1661. <div id="smu1" style="display:none">
  1662. <ul>
  1663. <li ><a href='javascript:;' onclick='onmu1(1)'>1</a></li>
  1664. <li ><a href='javascript:;' onclick='onmu1(2)'>2</a></li>
  1665. <li ><a href='javascript:;' onclick='onmu1(3)'>3</a></li>
  1666. <li ><a href='javascript:;' onclick='onmu1(4)'>4</a></li>
  1667. <li ><a href='javascript:;' onclick='onmu1(5)'>5</a></li>
  1668. <li ><a href='javascript:;' onclick='onmu1(6)'>6</a></li>
  1669. <li ><a href='javascript:;' onclick='onmu1(7)'>7</a></li>
  1670. <li ><a href='javascript:;' onclick='onmu1(8)'>8</a></li>
  1671. </ul>
  1672. </div>
  1673. <div id='yt1' style="height:90px;position:relative; margin:0 5px 0 5px;">
  1674. <div style=" padding:0 0 5px 14px;"><a class="y1" href="javascript:;" onmousedown="ocx.ControlPtz(4,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(4,0,$('ps').value,0,1)"></a></div>
  1675. <div id='xbb' style="height:18px;width:50px;padding:8px 0 0 0; text-align:center;">bb</div>
  1676. <div style=" padding:0 0 5px 0;"><a class="y2" href="javascript:;" onmousedown="ocx.ControlPtz(5,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(5,0,$('ps').value,0,1)"></a></div>
  1677. <div style=" padding:0 0 5px 14px;"><a class="y1" href="javascript:;" onmousedown="ocx.ControlPtz(6,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(6,0,$('ps').value,0,1)"></a></div>
  1678. <div id='xbj' style="height:18px;width:50px;padding:8px 0 0 0; text-align:center;">bj</div>
  1679. <div style=" padding:0 0 5px 0;"><a class="y2" href="javascript:;" onmousedown="ocx.ControlPtz(7,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(7,0,$('ps').value,0,1)"></a></div>
  1680. <div style=" padding:0 0 5px 14px;"><a class="y1" href="javascript:;" onmousedown="ocx.ControlPtz(8,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(8,0,$('ps').value,0,1)"></a></div>
  1681. <div id='xgq' style="height:18px;width:50px;padding:8px 0 0 0; text-align:center;">gq</div>
  1682. <div style=" padding:0 0 5px 0;"><a class="y2" href="javascript:;" onmousedown="ocx.ControlPtz(9,0,$('ps').value,0,0)" onmouseup="ocx.ControlPtz(9,0,$('ps').value,0,1)"></a></div>
  1683. </div>
  1684. <div id='yt2' style="height:100%;position:relative;padding:0 0 0 4px;float:left;">
  1685. <div id='yt21' style=" height:0;overflow:hidden;float:left;">
  1686. <div class='cbtd'><div id='xz' class="divt">(0-255):</div><input type="text" class="inputyt" id="pv" value="1" maxlength="3" onkeyup="limitPv()" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></div>
  1687. <div class='cbtd'><a id='xyzd' class="cbt" href="javascript:;" onclick="ocx.ControlPtz(10,0,$('pv').value,0,0)">yzd</a></div>
  1688. <div class='cbtd'><a id='xdjxh' class="cbt" href="javascript:;" onclick="cxh(this,tl('Stop'),tl('Auto-Tour'),tl('Auto-Pan'),tl('Auto-Scan'),tl('Pattern'))">djxh</a></div>
  1689. <div class='cbtd'><a id='xspxz' class="cbt" href="javascript:;" onclick="cxz(this,tl('Stop'),tl('Auto-Tour'),tl('Auto-Pan'),tl('Auto-Scan'),tl('Pattern'))">spxz</a></div>
  1690. <div class='cbtd'><a id='xxs' class="cbt" href="javascript:;" onclick="cxs(this,tl('Stop'),tl('Auto-Tour'),tl('Auto-Pan'),tl('Auto-Scan'),tl('Pattern'))">xs</a></div>
  1691. <div class='cbtd'><a id='xxuj' class="cbt" href="javascript:;" onclick="cxj(this,tl('Stop'),tl('Auto-Tour'),tl('Auto-Pan'),tl('Auto-Scan'),tl('Pattern'))">xj</a></div>
  1692. <div class='cbtd'><a id='xfzk' class="cbt" href="javascript:;" onclick="ocx.ControlPtz(52,$('pv').value,0,0,0)">open</a></div>
  1693. <div class='cbtd'><a id='xfzg' class="cbt" href="javascript:;" onclick="ocx.ControlPtz(53,$('pv').value,0,0,0)">close</a></div>
  1694. <div class='cbtd'><a id='xytsz' class="cbt" href="javascript:;" onclick="ocx.ShowSetptz()">ptzsetup</a></div>
  1695. </div>
  1696. <div id='yt22' style="width:129px;height:9px;overflow:hidden; float:left;"><a id='ayt22' class="y1" href="javascript:;" ></a></div>
  1697. </div>
  1698. </div>
  1699. <div id='taba' style="float:left;margin:3px 0 0 0; width:140px;">
  1700. <div style="float:left"><a id='taba1' class="t1" href="javascript:;" >pic</a></div>
  1701. <div style="float:left"><a id='taba2' class="t2" href="javascript:;" >other</a></div>
  1702. </div>
  1703. <div class="mpad" style="float:left;">
  1704. <div id='yt3' style=" height:287px;position:relative; overflow:hidden; margin:0 0 0 4px;">
  1705. <div id='yt3t1' style="height:100%;">
  1706. <div id='yt3t1a'>
  1707. <div style="margin:5px 0 0 0;">
  1708. <div id='xtld' style='width:21px; height:21px; background:url(tx1.png);background-repeat:no-repeat;background-position:0 0;' title='ld'></div>
  1709. <div style="margin:4px 0 0 4px;"><a class="sal" href="javascript:;" onclick="gslda.set(gca-1)"></a></div>
  1710. <div id='saa' class="sax">
  1711. <div id='ska' class="skx"></div>
  1712. </div>
  1713. <div style="margin:4px 0 0 4px;"><a class="sar" href="javascript:;" onclick="gslda.set(gca+1)"></a></div>
  1714. </div>
  1715. <div style="margin:5px 0 0 0;">
  1716. <div id='xtdbd' style='width:21px; height:21px;background:url(tx1.png);background-repeat:no-repeat;background-position:-21px 0;' title='dbd'></div>
  1717. <div style="margin:4px 0 0 4px;"><a class="sal" href="javascript:;" onclick="gsldb.set(gcb-1)"></a></div>
  1718. <div id='sab' class="sax">
  1719. <div id='skb' class="skx"></div>
  1720. </div>
  1721. <div style="margin:4px 0 0 4px;"><a class="sar" href="javascript:;" onclick="gsldb.set(gcb+1)"></a></div>
  1722. </div>
  1723. <div style="margin:5px 0 0 0;">
  1724. <div id='xtbhd' style='width:21px; height:21px;background:url(tx1.png);background-repeat:no-repeat;background-position:-42px 0;' title='bhd'></div>
  1725. <div style="margin:4px 0 0 4px;"><a class="sal" href="javascript:;" onclick="gsldc.set(gcc-1)"></a></div>
  1726. <div id='sac' class="sax">
  1727. <div id='skc' class="skx"></div>
  1728. </div>
  1729. <div style="margin:4px 0 0 4px;"><a class="sar" href="javascript:;" onclick="gsldc.set(gcc+1)"></a></div>
  1730. </div>
  1731. <div style="margin:5px 0 0 0;">
  1732. <div id='xtsd' style='width:21px; height:21px;background:url(tx1.png);background-repeat:no-repeat;background-position:-63px 0;' title='sd'></div>
  1733. <div style="margin:4px 0 0 4px;"><a class="sal" href="javascript:;" onclick="gsldd.set(gcd-1)"></a></div>
  1734. <div id='sad' class="sax">
  1735. <div id='skd' class="skx"></div>
  1736. </div>
  1737. <div style="margin:4px 0 0 4px;"><a class="sar" href="javascript:;" onclick="gsldd.set(gcd+1)"></a></div>
  1738. </div>
  1739. </div>
  1740. <div style=" padding:5px 0 0 0;"><a id='xcz' class="cbt" href="javascript:;" onclick="txreset(64);" >reset</a></div>
  1741. </div>
  1742. <div id='yt3t2' style="height:100%;display:none;position:relative;">
  1743. <div class='cbtd' ><a id='xztlj' class="cbt" href="javascript:;" onclick="ocx.SetConfigPath(1);" title="">cp</a></div>
  1744. <div class='cbtd'><a id='xlxlj' class="cbt" href="javascript:;" onclick="ocx.SetConfigPath(2);" title="">rp</a></div>
  1745. <div class='cbtd' ><a id='xcqsb' class="cbt" href="javascript:;" onclick="reboot();" title="">reboot</a></div>
  1746. <div class='cbtd' style="visibility:hidden"><a id='xxx' class="cbt" href="javascript:;" onclick="" title="">rebootdd</a></div>
  1747. <div id="xlxgs" style="height:60px;width:128px;padding:5px 0 0 8px;position:relative;overflow:hidden;display:none;">
  1748. <div id='rdty' class="divt" style="width:60px;float:left;">ReFormat</div>
  1749. <div style="width:53px;height:18px; background:url(ytabg.png);padding:0 0 0 3px;float:left;">
  1750. <input readonly class="inputyt" type="text" value="DAV" id="rtys" >
  1751. <a href="javascript:;" class="yta1" onclick="showmu2()"></a>
  1752. </div>
  1753. <div id="smu2" style="display:none;">
  1754. <ul>
  1755. <li ><a href='javascript:;' onclick='onmu2(0)'>DAV</a></li>
  1756. <li ><a href='javascript:;' onclick='onmu2(1)'>ASF</a></li>
  1757. </ul>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. </div>
  1763. </div><!--mbc-->
  1764. </div>
  1765. <div id="mb1" style="display:none;">
  1766. <div id="video2" style="width:100%; height:100%;float:left;"></div>
  1767. </div>
  1768. <div id="mc" ><script type="text/javascript" src="/shares/js/yw/master1_oa/remote/ft.js"></script></div>
  1769. <div style="-moz-opacity:.01;opacity:.01;filter:alpha(opacity=1);background:#ff0;position:absolute; z-index:1000; width:100%;height:100%;left:0;top:50px; display:none;" id="cover"></div>
  1770. </div>
  1771. </body>
  1772. </html>