PDA

View Full Version : using lightbox and to always show next a previous buttons



jonnyfreak
03-05-2013, 01:00 PM
I am using the lightbox from this site but when viewing the images i need the next and previous to remain visible, how can this be achieved?

thanks

Beverleyh
03-05-2013, 01:39 PM
Which script are you refering to? Please provide a link to the script's demo page on DD to we can easily see which script you mean.

jonnyfreak
03-05-2013, 01:50 PM
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

Beverleyh
03-05-2013, 02:19 PM
I havent tested but you might be able to do it with some CSS changes;

#prevLink, #nextLink{
width: 49%;
height: 100%;
background: transparent url(../images/blank.gif) no-repeat; /* Trick IE into showing hover */
display: block;
}
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#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; }

jonnyfreak
03-05-2013, 08:52 PM
thats done it, thanks for your help :)