the code displays a webcam feed for a few seconds.
clicking on the image will resume the feed

i use it on a personal html page of resources.

htiuts

Best,
Mike
==============================

<script language="JavaScript">
var framecount = 0;
var maxframes = 60;
var if_time = 000;
var started = 0;
var starttime = 2000;
var theImage;
var camName = "Scripps Pier Cam";

function setalarm(obj) {
if(!started) {
++started;
theImage = obj;
setTimeout("streamer(theImage);", starttime);
return;
}
if(framecount != -1) streamer(obj);
}
function streamer(obj) {
var now = new Date();
++framecount
secs = now.getTime()
if (framecount <= maxframes) {
var camzone = "http://os1.prod.camzone.com:8879/still?cam=6&rnd="; +
framecount + ":" + secs + ":" + if_time;
obj.src = camzone
} else {
var camzone = "http://www.camzone.com/trailer.jpg";;
var camzone = "http://os1.prod.camzone.com:8879/still?cam=6&rnd="; +
framecount + ":" + secs + ":" + if_time;
obj.src = camzone
framecount = -1
return
}
}
window.status = camName + "...";
document.write('<img NAME="ieanim"
src="http://os1.prod.camzone.com:8879/still?cam=6&rnd="; name="' +
camName + '" onclick="framecount=0;setalarm(this)"
onLoad="setalarm(this)">')
</script>


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to