Results 1 to 3 of 3

Thread: Modification to Lightbox 2.0?

  1. #1
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Modification to Lightbox 2.0?

    1) Script Title: Lightbox v2.0

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

    3) Describe problem:

    I am using the Lightbox image set to run a gallery. It all works fine, but ideally I would like the Next and Previous links to be permanently anchored in position (so that they don't just appear when the mouse hovers over).

    Alternatively, perhaps they could be permanently visible with a lower opacity, so that on hover, it can restore to full opacity.

    Any and all help with this one is much appreciated!

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

    Default

    To get the prev/ next link to appear by default when the enlarged image loads (instead of mouseover), inside lightbox.css, try adding to the below two lines the code in red:

    Code:
    #prevLink, #prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
    #nextLink, #nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
    A quick test seems to show it works, but this is a rather complex script, so there may be unforeseen issues you'll want to check for by playing around.

  3. #3
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That worked perfectly. Thanks so much for your help! I had no idea the solution could be so simple!

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
  •