Results 1 to 2 of 2

Thread: Lightbox-How to put Previous and Next buttons outside image area?

  1. #1
    Join Date
    Jan 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox-How to put Previous and Next buttons outside image area?

    1) Script Title: Lightbox 2.03

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

    3) Describe problem:

    Is there a way to have the "previous" and "next" buttons be outside the image area and have them always visible?

    Here's my test page: http://ianmartinphotography.com/portfolio-tester-1.html

    Thanks!
    Last edited by ian_6500; 08-27-2010 at 03:29 AM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I think you'll need to move this

    Code:
    var objPrevLink = document.createElement("a");
    		objPrevLink.setAttribute('id','prevLink');
    		objPrevLink.setAttribute('href','#');
    		objHoverNav.appendChild(objPrevLink);
    		
    		var objNextLink = document.createElement("a");
    		objNextLink.setAttribute('id','nextLink');
    		objNextLink.setAttribute('href','#');
    		objHoverNav.appendChild(objNextLink);
    outside of the image container and then adjust the styles to how you want it to appear.

    Oh yeah, forgot to tell you where to find that lightbox.js
    Last edited by bluewalrus; 08-26-2010 at 03:04 AM.
    Corrections to my coding/thoughts welcome.

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
  •