Artikkelen er over 11 år gammel

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Untitled Document</title></head><body><SCRIPT LANGUAGE="JavaScript">// Set the BaseURL to the URL of your cameravar BaseURL = "";// DisplayWidth &amp; DisplayHeight specifies the displayed width &amp; height of the image.// You may change these numbers, the effect will be a stretched or a shrunk imagevar DisplayWidth = "640";var DisplayHeight = "480";// This is the path to the image generating file inside the camera itselfvar File = "axis-cgi/jpg/image.cgi?resolution=640x480&amp;compression=30&amp;clock=1";// Force an immediate image loadvar theTimer = setTimeout('reloadImage()', 1);function reloadImage(){ theDate = new Date(); var url = BaseURL; url += File; url += '&amp;dummy=' + theDate.getTime().toString(10); // The dummy above enforces a bypass of the browser image cache // Here we load the image document.theImage.src = url; // Reload the image every ten seconds (10000 ms) theTimer = setTimeout('reloadImage()', 10000);}document.write('<img name="theImage" src="" height="' + DisplayHeight + '"');document.write('width="' + DisplayWidth + '" alt="Live image">');</SCRIPT></body></html>