Here is the web, (this is not a real web, but if someone solved it, it will work in a real web, wich i am doing... it is in czech language so i make just the problem with lightbox on another adress...) [SNIP . . .] if you need ftp: [SNIP . . .] login is: [SNIP . . .].
So photos are in wrong order, and head, ddphpalbum.js... are adjusted
It would be sorting by file, or just something that the photos were ranked from 1 to the last. I adjusting photos in Resampler, it changing the date so i can't sort by date.
second problem is i want to in lightbox open photo with normal size (they are with same name in folder "/normal" eg "galerie/lamborghini"=small "galerie/lamborghini/normal/"=normal )
Code:
<script type="text/javascript">
(function(groupName){
var d = document.createElement('div'), tmpLink = document.createElement('a'),
lbLink, arObj = window[groupName];
d.style.display = 'none';
tmpLink.rel = 'lightbox[' + groupName + ']';
/* for(var i = 0; i < arObj.images.length-1; ++i){
arObj.desc[i] = arObj.images[i][1];
arObj.desc[i] = arObj.desc[i].substring(0, arObj.desc[i].indexOf('.jpg'));
} */
for(var i = 0; i < arObj.images.length-1; ++i){
lbLink = tmpLink.cloneNode(false);
lbLink.href = arObj.baseurl + arObj.images[i][1];
// if(arObj.desc){
lbLink.title = arObj.images[i][2];
//}
d.appendChild(lbLink);
}
document.body.insertBefore(d, document.body.firstChild);
arObj.hiddenLinks = d.getElementsByTagName('a');
})('lamborghini');
new phpimagealbum({
albumvar: lamborghini, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [3,5],
sortby: ["none", "asc"], //["file" or "date", "asc" or "desc"]
autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: false, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
Lightbox.box.start(lamborghini.hiddenLinks[thumbindex]);
/* thumbnailviewer.loadimage (adress*thumbfilename, "fit2screen") */
}
})
</script>
Thanks for help
Bookmarks