Results 1 to 2 of 2

Thread: thumbnail viewer loading problem.

  1. #1
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thumbnail viewer loading problem.

    Image Thumbnail Viewer Script

    http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    hi, i apologise if this has been addressed earlier, iv done a search with no luck.

    Iv been using the script on my local web server with no problems I.E or FF, However when i uploaded the script on line, Whilst the script works it only works once all the thumbnail images have been loaded.

    is there any changes i can make to allow the script to work, even when the rest of the page hasn't loaded?

    Kind regards
    Matt Roberts

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can try removing this from the end of thumbnailviewer.js:

    Code:
    thumbnailviewer.dotask(window, function(){thumbnailviewer.init()}, "load") //Initialize script on page load
    and placing this in the body of your page after all of your links with the rel="thumbnail" set:

    Code:
    <script type="text/javascript">
    thumbnailviewer.init();
    </script>
    I say try, because I haven't tested this idea. It has a good chance of working. Otherwise I would suggest that, since the thumbnail viewer links and their thumbnail images do not require much load time (especially if those thumbnails are not too many in number, small in size, and optimized), limit the rest of the byte load of the page by removing other images, scripts, Flash, etc.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •