Thu, 2004-06-24 21:18
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