Results 1 to 5 of 5

Thread: Link titles in Photo Album Script V.20

  1. #1
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default Link titles in Photo Album Script V.20

    1) Script Title: Photo Album Script V2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try finding the code below inside the .js file:

    Code:
    	if (typeof imgparts[1]!="undefined" && imgparts[1]!="") //Display description?
    		imageHTML+='<br />'+imgparts[1]
    and replace it with:

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

  3. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    After replacing that, the titles no longer appear at all: http://www.dwwebdesigns.com/portfolio2.html
    Last edited by dmwhipp; 07-05-2009 at 11:10 PM. Reason: Add link
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ah yes there's an unclosed tag in the code I posted above. It should be:
    Code:
    	if (typeof imgparts[1]!="undefined" && imgparts[1]!="") //Display description?
    		imageHTML+='<br />'+'<a href="'+imgparts[2]+'" target="">'+imgparts[1]+'</a>'
    DD Admin

  5. The Following User Says Thank You to ddadmin For This Useful Post:

    dmwhipp (07-07-2009)

  6. #5
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    Works perfectly: http://www.dwwebdesigns.com/portfolio.html
    Thank you!
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •