Use this instead of Step 1 from the demo page:
Code:
<script type="text/javascript" src="http://www.mysite.com/myimages/getalbumpics.php?id=myvacation"></script>
<script type="text/javascript">
(function(av){
var re = /\.[^\.]*/, avi = av.images, i = avi.length - 2;
for (i; i > -1; --i){
av.desc[i] = avi[i][1].replace(re, '');
}
})(myvacation);
</script>
<script type="text/javascript" src="ddphpalbum.js">
/***********************************************
* PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="ddphpalbum.css" />
If you use the same (highlighted and red) variable for both the getalbumpics.php?id and in the function, the script will take care of the rest. Just install the rest of the script as you normally would.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks