View Full Version : Resolved Photo Album script v2.0 Dual URLs

10-15-2008, 03:20 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 be able to have both the picture and the title have separate hyperlink capability.


10-17-2008, 08:04 PM
I hope I'm not breaking the rules by replying to my own post... but no one else did reply and I actually figured it out myself. So I want to help anyone else who might like to do the same thing.

I wanted to have the picture link to one URL and the title link to another URL... this was quite simple actually. I just needed to add an a HREF tag inside the "opt_image_title". I thought I'd need to do something to adjust the .js script.

Here is the answer:

//Syntax: ["path_to_thumbnail", "opt_image_title", "opt_destinationurl", "opt_linktarget"]


//Syntax: ["path_to_thumbnail", "<a target= _blank href='http://www.google.com'>My Title Here</a>", "opt_destinationurl", "opt_linktarget"]

Hope that helps anyone else with the same problem or need.
I've posted a couple of times in this forum and haven't gotten answers... that is kind of frustrating, except I guess it is good because in all cases it has made me get the cobwebs out of my brain and figure it out on my own.

Dont' get me wrong... I still really appreciate the forum and all the help people give to each other and hope I'm not doing anything out of protocol and that is why I haven't gotten answers. I think this concept of everyone helping each other is GREAT! So that is why I put this post in here. Again please forgive if I'm doing a "baddy".

Take care, everyone!


07-02-2009, 05:06 AM
Thanks - I've been trying to figure this out for over an hour!

07-02-2009, 05:20 AM
Damn, just ran the page through validator and it throws errors on the </a> for the added link. Still messing with this...