PDA

View Full Version : Link titles in Photo Album Script V.20



dmwhipp
07-02-2009, 05:33 AM
1) Script Title: Photo Album Script V2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/photoalbum.htm

3) Describe problem: I would like to hyperlink the titles as well as the thumbnails, but everything I've tried either doesn't work or causes validation errors.

Here is the page: http://www.dwwebdesigns.com/portfolio.html

Thanks for any help on this.
Deborah

ddadmin
07-02-2009, 04:07 PM
Try finding the code below inside the .js file:


if (typeof imgparts[1]!="undefined" && imgparts[1]!="") //Display description?
imageHTML+='<br />'+imgparts[1]

and replace it with:


if (typeof imgparts[1]!="undefined" && imgparts[1]!="") //Display description?
imageHTML+='<br />'+'<a href="'+imgparts[2]+'" target="'+imgparts[1]+'</a>'

dmwhipp
07-05-2009, 11:05 PM
After replacing that, the titles no longer appear at all: http://www.dwwebdesigns.com/portfolio2.html

ddadmin
07-07-2009, 03:38 AM
Ah yes there's an unclosed tag in the code I posted above. It should be:


if (typeof imgparts[1]!="undefined" && imgparts[1]!="") //Display description?
imageHTML+='<br />'+'<a href="'+imgparts[2]+'" target="">'+imgparts[1]+'</a>'

dmwhipp
07-07-2009, 02:56 PM
Works perfectly: http://www.dwwebdesigns.com/portfolio.html
Thank you!
Deborah