No replies
MalphasWats
Offline
Regular
Last seen: 14 years 12 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

Hi, I've got a script on my website to run my webcam, and I'm sure it used to work fine - and it still works on Firefox, but it doesn't work on Internet Explorer anymore - I get an "Object Expected" error pointing at the <body> tags.

Can anyone help me with it please?

...
<script type="text/javascript">
   <!-- hide
	const INTERVAL = 5;

	var x = INTERVAL;
	var now;
	
	function startCam()
	{
		reload();
		startClock();
	}

	function startClock()
	{
		x = x-1;
		if (x < 1) reload();
		timerID = setTimeout("startClock()", 1000);
	}

	function reload()
	{
		now = new Date();
		var camImg = "http://www.aqpj48.dsl.pipex.com/webcam/webcam.jpg" + "?" + now.getTime();
		document.campicture.src = camImg;
		x = INTERVAL;
	}
   // end hide -->
</script>

</head>

<body onload="startCam()">
...

-Mal

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"

Tags: