Results 1 to 9 of 9

Thread: problem with lightbox

  1. #1
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default problem with lightbox

    I'm having a problem with lightbox, it's not opening the image in front of the web page, it's opening in a whole different web page. Can anyone help

    www.themothershipmusic.com/links.html

    It's the top "An Horse" picture
    Last edited by Jasminrachel; 06-17-2009 at 12:30 PM.

  2. #2
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Bump, it's really urgently needed for an assignment

  3. #3
    Join Date
    Sep 2008
    Location
    Strawberry Hill, Twickenham, London, UK.
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Body Tag

    By looking at your code I can see that you have preloaded images in your body tag for rollovers if you take these out so the opening body tag is just

    HTML Code:
    <body>
    then your light box should work

  4. #4
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    But i still want to pre-load images for the menu rollovers. Is that possible?

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

  6. #6
    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

    All your lightbox scripts are 404's not found.

    There could also be other problems, but without the scripts, nothing (as far as lightbox goes) will happen.
    - John
    ________________________

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

  7. #7
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    All your lightbox scripts are 404's not found.

    There could also be other problems, but without the scripts, nothing (as far as lightbox goes) will happen.
    What do you mean by that?

  8. #8
    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

    I mean that when I tried to navigate to (for example):

    Code:
    http://www.themothershipmusic.com/js/lightbox.js
    as indicated by (in your source code for the page you linked to in your post):

    HTML Code:
    <script type="text/javascript" src="js/lightbox.js"></script>
    I got:

    Not Found

    The requested URL /js/lightbox.js was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.themothershipmusic.com Port 80
    This means that the lightbox.js script is not on the server in location pointed to by the source code of your page. The same was true of (again from your source code):

    HTML Code:
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
    The second of which (scriptaculous.js?load=effects,builder) requires effects.js and builder.js to be in the same path as scriptaculous.js. All of these files are available in the lightbox archive you should have downloaded when you first got lightbox.

    If you don't have them, go back to the download page:

    http://www.huddletogether.com/projects/lightbox2/

    and get them (get the full archive).

    If you already have them, upload them to the server to the locations indicated in your source code, or (if you have uploaded them to the server already) change the path in your source code to point to their actual locations.

    Now, as I say - there could also be other problems, but without the resource files, the script has no chance of working. The other advice (given by other members in this thread) probably is not relevant though. In the case of Nilsy, if you use the version of lightbox from the link I gave, it will play nice with other onload stuff. In the case of traq, yes you can do that, but it shouldn't be required - though it may be preferable.
    - John
    ________________________

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

  9. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Jasminrachel (06-19-2009)

  10. #9
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks, it was pointed in the wrong directory. And i didn't realize until i studied it for about 40 minutes. The Lightbox set-up should mention that if you do install it in a sub-directory, you will have to change the call for the java script as well.

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
  •