1) Script Title: Swiss Army Image slide show script - © John Davenport Scheuer: combined with PHP Photo Album script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm
3) Describe problem:
A couple of years ago John Scheuer was kind enough to help me customize these scripts to suit my needs. I have used the code on several websites to display a slideshow and use the description from the slideshow as the pop-up window image description when you click on the thumbnail. The problem is that on the older websites the code works perfectly whereas on the newer websites the code no longer displays the description when you click on the thumbnail. I have tried & failed many times to figure out what is wrong. I swear I am using exactly the same code. I can't find the problem. I'm hoping perhaps John can see what it is I have done to adulterate his lovely code.
This is the code from the html page where the slideshow & thumbnails are:
I think this is the relevant code from dd-thumbnails.js...Code:var dimension="6x"+Math.ceil(galleryarray.length/6); //number of images across and down, such as 4x2, 3x1 etc var imagepath="../img/<?php echo $artist;?>/th/" //Absolute path to thumbnail image directory. Include trailing slash (/) var href_target="new" //Enter target attribute of links, if applicable var popupsetting=[1, "width=669px, height=694px, scrollbars, resizable"] var descriptionprefix=[0, ""] var gsortorder="" var targetlinkdir="../img/<?php echo $artist;?>/<?php echo $folder;?>/"; //large images (function(){ for (var i = galleryarray.length-1, j ; i > -1 ; --i) for (j = slides.length-1 ; j > -1 ; --j) if(slides[j][0].replace(/^.*\//,'') == galleryarray[i][0]) galleryarray[i][1]=slides[j][1]; })(); </script> <script src="../js/dd-thumbnails.js" type="text/javascript"></script>
Here is a site where it is working properly... http://www.sargentsfineart.com/artist/johnson.phpCode:function popuplinkfunc(imgsrc){ if (popupsetting[0]==1){ var desc=''; for (var i = galleryarray.length-1, lookup = imgsrc.href.replace(targetlinkdir,'') ; i > -1 ; --i) if(galleryarray[i][0]==lookup) desc=galleryarray[i][1]; var popwin=open('', "popwin", popupsetting[1]); popwin.document.write('<title>'+desc+ '<\/title><body style="margin:0;padding:0;font:85% sans-serif;text-align:'+ 'center;overflow:auto;background-color:#0b151e;color:#cccccc;"><img title="'+ desc+'" alt="Larger Image" style="margin:2px 0;" src="'+imgsrc.href+'"><br>'+desc);
Here is a site where it is not working properly (no description on popup)... http://www.costgallery.com/artist/curtis-all.php
I swear I have been trying to fix this for over a year, so here I am with my tail between my legs admitting defeat. Would really appreciate some fresh eyes on what I cannot see. Thanks.



Reply With Quote

Bookmarks