Results 1 to 8 of 8

Thread: lightbox2 newbie help

  1. #1
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default lightbox2 newbie help

    Hi
    I looked through the forum, and did not find a fix, I am trying this script out on this test page:
    http://nwchristiancowboys.com/lite.html
    I cannot get the lightbox effect with my image, it just opens in a new page. I only have 1 image set up until I get a handle on this.
    I am missing something, hopefully simple. Any help is greatly appreciated. Thank you in advance for patience with a newbie!
    Susan

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's a syntax error in your BODY tag:

    Code:
    <body onload="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()">
    It should read:

    Code:
    <body onload="MM_preloadImages('/images/menu_on.gif');initLightbox()">

  3. #3
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi
    Thank you for taking the time to reply! I changed the syntax error in the BODY tag, but this did not resolve the issue of image opening in a new page.
    Any other suggestions???
    Thank you again
    Susan

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's still a (different) javascript error on your page, namely:

    Code:
    Error: MM_preloadImages is not defined
    Source File: http://nwchristiancowboys.com/lite.html
    Line: 1
    I'd remove the MM_preloadimages() code from the BODY altogether for now just to see if that does it.

  5. #5
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi
    I removed the MM_preloadimages() code from the BODY, still not resolved.
    Thank you for offering this suggestion.
    Any other thoughts?
    Susan
    http://nwchristiancowboys.com/lite.html

  6. #6
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question lightbox2 still not functioning...

    Hi
    Appreciate the ideas so far, still hoping to get this functioning, where is my error?
    http://nwchristiancowboys.com/lite.html
    Susan

  7. #7
    Join Date
    Oct 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Susan

    Couple of problems I can see ...

    1: The link to your CSS file appear to be incorrect
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

    2: The link to your Javascript files also appears to be incorrect
    <script src="js/prototype.js" type="text/javascript"></script>
    <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="js/lightbox.js" type="text/javascript"></script>

    You will need to correct these before it will work
    I attempted to load both (CSS & JS) and both came up with URL Errors.

    HTH, John
    Last edited by johnb; 04-23-2006 at 10:48 PM.

  8. #8
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, John
    What a phew, to finally see it work!!!
    Susan

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
  •