-
Notifications
You must be signed in to change notification settings - Fork 2
/
mobile.html
91 lines (79 loc) · 1.85 KB
/
mobile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<html>
<head>
<title>Video Mobile</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<script language="javascript">
<!--
var img = new Image();
var imgObj;
function preload()
{
img.src='/tmpfs/auto.jpg?'+new Date;
}
function changesrc()
{
img1.src=img.src;
preload();
setTimeout(changesrc,3500);
}
function update()
{
imgObj = document.getElementById('img1');
imgObj.src = img.src;
img.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
}
function takeError()
{
img.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
}
function startonload()
{
img.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
img.onerror=takeError;
img.onload=update;
}
function load()
{
if (navigator.appName.indexOf("Microsoft IE Mobile") != -1)
{
preload();
changesrc();
return;
}
startonload();
}
function ptzUpSubmit()
{
form1.action="/cgi-bin/hi3510/ytup.cgi";
form1.submit();
}
function ptzDownSubmit()
{
form1.action="/cgi-bin/hi3510/ytdown.cgi";
form1.submit();
}
function ptzLeftSubmit()
{
form1.action="/cgi-bin/hi3510/ytleft.cgi";
form1.submit();
}
function ptzRightSubmit()
{
form1.action="/cgi-bin/hi3510/ytright.cgi";
form1.submit();
}
//-->
</script>
</head>
<body onLoad="load()">
<form name="form1" method="get" target="test">
</form>
<p><input type="button" value="↑" name="B3" onClick="ptzUpSubmit()">
<input type="button" value="↓" name="B2" onClick="ptzDownSubmit()">
<input type="button" value="←" name="B1" onClick="ptzLeftSubmit()">
<input type="button" value="→" name="B0" onClick="ptzRightSubmit()">
<input type="button" value="Refresh" name="B4" onClick="location.reload()"></p>
<p><img id="img1" border="0" src="tmpfs/auto.jpg"></p>
<iframe name="test" style="none" width="0" height="0"></iframe>
</body>
</html>