View Full Version : Image w/ description tooltip: Need to stop preloading, or move it to the end

10-16-2008, 02:12 PM
1) Script Title: Image w/ description tooltip

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

3) Describe problem:

Hi there everyone,

I'm using the above script to load around 40 400x250 images and it looks great. The problem is that the page load is horrendous because it preloads all of the images before it will allow any of the page to load.

Is there a way to either shift the preload to be the last thing the page does or nix the preload entirely, having the images load after the popup is initiated?


10-17-2008, 02:27 PM
Hi there guys,

I got the page to load by removing the preloader from the script entirely, giving me my page load back, but I was wondering if there was a way to alter the preloader to tell it to load the images but only after the rest of the pageload is done?

// preload images that are to appear in tooltip

// from arrays above

if (document.images) {

var theImgs = new Array();

for (var i=0; i<messages.length; i++) {

theImgs[i] = new Image();

theImgs[i].src = messages[i][0];



thanks for any help,