blob: c20f6d5ca5d93917edd37666c702545559d0785d (
plain)
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
|
<html>
<head>
<title>TV (<tmpl_var host>)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
var aktiv;
var interval = 5;
function switch_channel(url) {
Now = new Date();
document.switchimage.src = url + "&" + Now.getTime();
}
function WebcamUpdate() {
Now = new Date();
NewPicUrl = "<tmpl_var url>&" + Now.getTime();
document.Bild.src = NewPicUrl;
}
function go() {
//alert(document.liveform.livebild.checked);
if(document.liveform.livebild.checked == true)
v_Start();
else
v_Stop();
}
function v_Start() {
aktiv = window.setInterval("WebcamUpdate()", interval * 1000);
}
function v_Stop() {
window.clearInterval(aktiv);
}
function v_changeInterval(val) {
interval = val;
v_Stop();
go();
//v_Start();
}
//-->
</script>
<style type="text/css" media="screen"><!--
#Ebene1 { position: absolute; z-index: 0; top: 0px; left: 0px; width: 100px; height: 100px; visibility: visible; display: block }
#Ebene2 { position: absolute; z-index: 10; top: 0px; left: 0px; width: 100px; height: 100px; visibility: visible; display: block }
td { color: #000; font-weight: normal; font-size: 11px; font-family: Verdana, Arial, Geneva, Helvetica, sans-serif }
--></style>
</head>
<body background="bilder/tv_bottom.gif" bgcolor="#FFFFFF" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<form name="liveform">
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<img name="Bild" height="288" src="<tmpl_var url>" border="0">
<div id="Ebene2"><img src="bilder/framed.gif" alt="" border="0"></div>
</td>
</tr>
<tr>
<td>
<img src="bilder/spacer.gif" name="switchimage" width="1" height="1">
Grab <input type="checkbox" name="livebild" onClick="go()">
Interval <select name="Seconds" size="1" onChange="v_changeInterval(this.options[this.selectedIndex].value)">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="5" selected>five</option>
<option value="10">ten</option>
<option value="30">30</option>
<option value="60">60</option>
</select>
</td>
</tr>
</table>
</form>
</body>
</html>
|