-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathslideshow.html
More file actions
35 lines (35 loc) · 918 Bytes
/
Copy pathslideshow.html
File metadata and controls
35 lines (35 loc) · 918 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Aokwevision example slideshow</title>
</head>
<body>
<img id="image" src="#" alt="camera image"/>
<script>
var timer;
function imageloop()
{
var image = document.getElementById("image");
var key = (new Date()).getTime();
var imageSrc = "http://192.168.1.110/jpgmulreq/1/image.jpg?key=" + key + "&lq=12";
image.src = imageSrc;
timer = setTimeout("imageloop()", 1000);
}
if(window.attachEvent) {
window.attachEvent('onload', imageloop);
} else {
if(window.onload) {
var curronload = window.onload;
var newonload = function(evt) {
curronload(evt);
imageloop(evt);
};
window.onload = newonload;
} else {
window.onload = imageloop;
}
}
</script>
</body>
</html>