Ok, some more info. This is the script I am using, but the problem is, it's always reporting the webcam to be online, even whe it isn't. Any suggestions? I am also using WebcamXP.
In the head section:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
newurl = new Array;
newurl[1] = "URL of my webcam server";
online = new Array;
online[1] = 'image1.jpg';
offline = 'image2.jpg';
indicator = new Array;
function CheckStatus(cam,mode)
{
// mode = 0 : goes to new url if online else pops up an alert window
if (mode == 0)
{if (indicator[cam] == 1){document.location.href = newurl[cam];}
else{alert("WebCam is Offline!");}}
// mode = 1 : displays online image
if (mode == 1)
{indicator[cam] = 1;document["indicator"+cam].src = online[cam];}
// mode = 2 : displays offline image
if (mode == 2)
{indicator[cam] = 0;document["indicator"+cam].src = offline;}
}
//-->
</SCRIPT>
In the body section:
<A HREF="javascript:CheckStatus(1,0)">
<IMG SRC="javascript:CheckStatus(1,1)" NAME="indicator1"
onError="javascript:CheckStatus(1,2)" border="0" width="86" height="17">
</A>