I have a webcam page that has an JS refresh of the image. It pre-loads the image into the cache whilst the timer countdowns and then swaps when it hits zero.
Unfortunately this preload function has stopped working on IE5.5/6 even though it works on Netscape and IE4. I think I've isolated the problem down to one function, any one know why it doesn't work in these newer browsers?:
var picname = "function recache() {
var now = new Date();
var camImg = picname + "?" + now.getTime();
cachepic.src = camImg;
}
If you would like to the whole script in action, here is the page:
Unfortunately this preload function has stopped working on IE5.5/6 even though it works on Netscape and IE4. I think I've isolated the problem down to one function, any one know why it doesn't work in these newer browsers?:
var picname = "function recache() {
var now = new Date();
var camImg = picname + "?" + now.getTime();
cachepic.src = camImg;
}
If you would like to the whole script in action, here is the page: