Results 1 to 3 of 3

Thread: Lightbox v2.03 not working properlly

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

    Default Lightbox v2.03 not working properlly

    1) Script Title: lightbox v2.03

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

    3) Describe problem: I've got lightbox half working however theres something up with it and i'm completely stuck as to what it is. Any help would be greatly appreciated.

    Here's My website where I've been having problems:

    http://eggtrade.theeggbasket.com/my%...portfolio.html

    Thanks again

  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

    Two things I notice:

    1 ) In FF, it looks all messed up when the box displays.
    2 ) In several browsers, I don't see the next and previous images.

    For number 1, get rid of this (red) from your body tag:

    Code:
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
    onLoad="preloadImages();initLightbox();">
    The script itself is already initing and doing so without conflicting with with your image preload script. To place it here can cause it to init twice, making all of its created elements with id's invalid for scripting purposes.

    For number 2, the paths to these images is incorrect in the stylesheet (lightbox.css) they should be (red, for your current setup):

    Code:
    #prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
    #nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
    There could also be other problems.
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sorted

    Hi- the first suggestion you made sorted it straight out!

    Thanks a lot for your help!

    eggtrade

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
  •