HI Leute!
Ich möchte gerne eine Webcam in eine HTML-Site einbinden.
Der Quellquode sieht so aus, und funktioniert auf der Originalseite, aber nicht bei mir!!!!!! WARUM NICHT???
<html>
<head>
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<title>Blick aus dem LAG</title>
</head>
<body>
<center>
<h2>Blick aus dem LAG</h2>
<!-- 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.-->
<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";
// Since this file is located inside the unit itself, no base url is specified here
var BaseURL = "http://10.74.192.205/";
// DisplayWidth specifies the displayed width of the image.
// You may have any number here, the effect will be horizontal
// strech or shrink of the image
var DisplayWidth = "320";
// DisplayHeight specifies the displayed width of the image.
// You may have any number here, the effect will be vertical
// strech or shrink of the image
var DisplayHeight = "240";
// This is the filepath to the video generating file inside the camera itself
var File = "axis-cgi/mjpg/video.cgi?resolution=320x240";
// No changes required below this point
var output = "";
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
{
// If Internet Explorer for Windows then use Java Applet
output = "<APPLET ARCHIVE=AxisCamApplet.zip CODEBASE=\"";
output += BaseURL;
output += "java/\"";
output += " CODE=AxisCamApplet.class HEIGHT=";
output += DisplayHeight;
output += " WIDTH=";
output += DisplayWidth;
output += ">";
output += "<PARAM NAME=\"StreamLocation\" VALUE=\"";
output += BaseURL;
output += File;
output += "&showlength=1\">";
output += "</APPLET>";
document.onstop=stopit;
function stopit() {
document.applets[0].stop();
}
}
else
{
// If not IE for Windows use the browser itself to display
output = "<IMG SRC=\"";
output += BaseURL;
output += File;
output += "&dummy=garb\" HEIGHT=\"";
// The above dummy cgi-parameter helps some versions of NS
output += DisplayHeight;
output += "\" WIDTH=\"";
output += DisplayWidth;
output += "\" ALT=\"Moving Image Stream\">";
}
document.write(output);
</SCRIPT>
<!-- End of image display part -->
</BODY></HTML>
Ich hoffe jemand hat eine Idee!!!!
CU soon
Kim
<FONT COLOR="#a62a2a" SIZE="1">[ 14. September 2001 12:50: Beitrag 1 mal editiert, zuletzt von KimH ]</font>