PDA

View Full Version : Lightbox-How to put Previous and Next buttons outside image area?



ian_6500
08-26-2010, 02:17 AM
1) Script Title: Lightbox 2.03

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/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!

bluewalrus
08-26-2010, 02:39 AM
I think you'll need to move this


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