Currently using the "document.image s" to "preload" images - not for
future pages, but for the page being loaded. I got it from
http://www.dynamicdrive.com/dynamici...agetooltip.htm
Its a nice script - pops up an img on mouseover.
I understand that its downloading SOMETHING - but its not rendering....
THE QUESTION: How does "preloading " these images (into cache, as I have
read) affect page size, page load, etc. I cannot find anything
specific regarding this.
CODE EXAMPLE:
if (document.image s) {
var theImgs = new Array();
for (var i=0; i<messages.leng th; i++) {
theImgs[i] = new Image();
theImgs[i].src = "myimg.jpg" ;
}
}