Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
name = new Image(x,x);
name.src = "./url/image.gif";
I use this both for preloading mouseovers and, sometimes, for preloading images on the next page.
The problem I've encountered is that, sometimes, mouseover images are not preloaded once the document has finished loading. Instead there is a pause onmouseover while the image is fetched from the server.
On top of that, there is sometimes a pause onmouseout while the original image is re-fetched. Also, this images are not catched after the first mouseover... They are continually refetched.
I'm not so sure, anymore... I've seen this problem in multiple versions of IE (including 5.x) and, now, in Netscape 6 the image being currently displayed will actually disappear while the replacement image is loaded both onmouseout and onmouseover.
The strange thing is that this is that this does not always happen. I just tried clearing the disk cache in NS6 and then reloading the page... Everything worked perfectly.
Stranger and stranger... Has anyone else noticed this? Any workarounds?
I'd like to understand this better -- I don't have any work-arounds either.