s2k
|
2009-02-18
, 10:09
|
Posts: 56 |
Thanked: 4 times |
Joined on Dec 2007
|
#1
|
|
2009-02-18
, 15:43
|
Posts: 631 |
Thanked: 837 times |
Joined on May 2007
@ Milton, Ontario, Canada
|
#2
|
|
2009-02-18
, 16:41
|
Posts: 56 |
Thanked: 4 times |
Joined on Dec 2007
|
#3
|
|
2009-02-18
, 17:27
|
Posts: 56 |
Thanked: 4 times |
Joined on Dec 2007
|
#4
|
|
2009-02-18
, 20:05
|
Posts: 105 |
Thanked: 48 times |
Joined on Aug 2008
|
#5
|
|
2009-02-18
, 20:11
|
Posts: 56 |
Thanked: 4 times |
Joined on Dec 2007
|
#6
|
The Following User Says Thank You to s2k For This Useful Post: | ||
|
2009-02-18
, 20:34
|
Posts: 105 |
Thanked: 48 times |
Joined on Aug 2008
|
#7
|
<html> <body style="margin:0;padding0;background-color=black;"> <img src="PUT_URL_TO_YOUR_MJPEG_STREAM_HERE" height="480" /> </body> </html>
|
2009-02-18
, 20:36
|
Posts: 105 |
Thanked: 48 times |
Joined on Aug 2008
|
#8
|
I setup a simple JS function that causes a page refresh that shows the image every second. It works fne on PC. On NIT it runs for a a few seconds then stops as if the browser times outthe script, click the screen and it reactivates.
Anyone know how to prevent thsi from hapening, ie so it doesn't stop the JS refresh?
<html> <head> <title>Untitled Page</title> <script type="text/javascript"> function grabImage() { var imgFrm = document.getElementById('imageframe'); var img = document.createElement("img"); img.setAttribute('src', 'http://77.46.140.219/axis-cgi/mjpg/video.cgi?resolution=CIF&dummy=1234987014475'); imgFrm.removeChild(imgFrm.firstChild); imgFrm.appendChild(img); setTimeout(grabImage, 10000); } </script> </head> <body onload="grabImage();"> <div id="imageframe"><img /></div> </body> </html>
|
2009-02-18
, 20:45
|
Posts: 56 |
Thanked: 4 times |
Joined on Dec 2007
|
#9
|
|
2009-02-18
, 20:54
|
Posts: 56 |
Thanked: 4 times |
Joined on Dec 2007
|
#10
|