Results 1 to 2 of 2

Thread: Loading gif problem

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

    Default Loading gif problem

    1) Script Title: Image Thumbnail Viewer

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

    3) Describe problem: For some reason the loading gif doesn't show and so what should look like a nice rotating image loading gif just looks like a missing image icon.

    I'm sure it's an easy fix but I just can't get . See example here http://www.charmnecklaces.co.uk/news...ard/pinks.html

    dynamic drive javascript page is here:
    http://www.charmnecklaces.co.uk/news...bnailviewer.js

    Please help!

  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

    This is where the browser expects the image to be:

    Code:
    http://www.charmnecklaces.co.uk/newsite/standard/images/loading.gif
    It is not there. Make sure the path and filename are spelled correctly, including upper and lower case. If that's not where the image is, but it is on the server, make the path correct. Oh, I found it, change (in thumbnailviewer.js):

    Code:
    defineLoading: '<img src="images/loading.gif" /> Loading...', //Define HTML for "loading" div
    to:

    Code:
    defineLoading: '<img src="http://www.charmnecklaces.co.uk/newsite/images/loading.gif" /> Loading...', //Define HTML for "loading" div
    If you want to use the relative path (instead of the absolute one I'm giving you) it must be relative to the page that is using it, not to the script file.
    - 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
  •