Which lightbox script are you using? If it is either of the two featured here on dynamic drive, you would need to change:
Code:
document.write('<a href="javascript:transport()">')
to:
Code:
document.write('<a id="lightboxlink" href="' + photoslink[0] + '" rel="lightbox">')
And change:
Code:
function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
to:
Code:
function backward(){
if (which>0){
which--
document.getElementById('lightboxlink').href = photoslink[which];
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photos.length-1){
which++
document.getElementById('lightboxlink').href = photoslink[which];
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
This:
Code:
//Specify whether images should be linked or not (1=linked)
var linkornot=1
must remain as is, set to 1.
Once you have all that, you configure your larger images here:
Code:
//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="image/remodeling.jpg"
photoslink[1]=""
photoslink[2]=""
There must be one for each of your smaller images which are configured here:
Code:
//define images. You can have as many as you want:
photos[0]="images/scroll1.jpg"
photos[1]="images/scroll2.jpg"
photos[2]="images/scroll3.jpg"
photos[3]="images/scroll4.jpg"
photos[4]="images/scroll5.jpg"
Bookmarks