Results 1 to 2 of 2

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

  1. #1
    Join Date
    Oct 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    1) Script Title: Image w/ description tooltip

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...agetooltip.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?

    thanks,
    json

  2. #2
    Join Date
    Oct 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

    Code:
    // 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,
    json

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •