// JavaScript Document
<!-- Cut from here to the end of image display comment -->
<!-- Note: If you do not see a JavaScript below in the view source window you must -->
<!-- first save the html file from your browser, then open the saved -->
<!-- file in a text editor, for instance Notepad.-->
// Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";

var BaseURL = "http://81.166.5.242/";

// The two following lines need to be changed if an AXIS 2400/2400+ is used:

var Camera = ""; // If you use an AXIS 2400/2400+, comment away this line by inserting "//"
// var Camera = "n"; // Change n to the Video source used in the AXIS 2400/2400+ and remove "//"

// Go to the camera used and remove the "//" in front of the ImageResolution to be used.
// Note that only one can be enabled.

// AXIS 2100
// var ImageResolution = "320x240";var DisplayWidth = "320";var DisplayHeight = "240";
// var ImageResolution = "640x480";var DisplayWidth = "640";var DisplayHeight = "480";

// AXIS 2120/2400/2400+/2401/2401+/2420 PAL
// var ImageResolution = "352x288";var DisplayWidth = "352";var DisplayHeight = "288";
//var ImageResolution = "704x576";var DisplayWidth = "704";var DisplayHeight = "576";
var ImageResolution = "196x160";var DisplayWidth = "196";var DisplayHeight = "160";

// AXIS 2120/2400/2400+/2401/2401+/2420 NTSC
// var ImageResolution = "352x240";var DisplayWidth = "352";var DisplayHeight = "240";
// var ImageResolution = "704x480";var DisplayWidth = "704";var DisplayHeight = "480";


// No changes required below this point
var File = "axis-cgi/jpg/image.cgi?resolution=" + ImageResolution;
if (Camera != "") {File += "&camera=" + Camera;}
theDate = new Date();
var output = "<IMG SRC=\"";
output += BaseURL;
output += File;
output += "&dummy=";
output += theDate.getTime().toString(10);
// The above dummy cgi-parameter enforce a bypass of the browser image cache.
output += "\" HEIGHT=\"";
output += DisplayHeight;
output += "\" WIDTH=\"";
output += DisplayWidth;
output += "\" ALT=\"Live Image\">";
document.write(output);
<!-- End of image display part -->
