Results 1 to 2 of 2

Thread: Lightbox image viewer 2.03 close/loading.gif problem.

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

    Default Lightbox image viewer 2.03 close/loading.gif problem.

    1) Script Title: Lightbox image viewer 2.03

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem: Everything works correctly for the exception of the loading.gif and close.gif images files. They just do not load onto the lightbox image viewer when activated. All I see are red X's (PREV and NEXT gifs load fine).

    I believe I have done everything correctly from using the zipped gif files to properly defining the images' path in the lightbox.js file. Nothing seems to work. I even tried placing the gif files into the same folder as the lightbox.js file but removed the "../" from the path.

    Here is the code from the lightbox.js file. Please help. Thank you.

    Code:
    // Configuration
    //
    var fileLoadingImage = "../images/loading.gif"; 
    var fileBottomNavCloseImage = "../images/close.gif";

  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

    The paths used here:

    Code:
    // Configuration
    //
    var fileLoadingImage = "../images/loading.gif"; 
    var fileBottomNavCloseImage = "../images/close.gif";
    must be accurate relative to the page that is using the script, not to the script. Alternatively, the absolute path to the images may be used. If you need more help:

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    - 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
  •