Results 1 to 2 of 2

Thread: Help with dynamic imagery gallery

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with dynamic imagery gallery

    1) Script Title: dynamic image gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...geselector.htm

    3) Describe problem: I am trying to add links, or images to the description in the array like this
    description[0]="info 1"
    description[1]="DHTML Visual QuickStart Guide"
    description[2]="HTML 4 and DHTML"

    when I add an link or image source here
    description[0]="info 1<img src="images/02.jpg" />"
    description[1]="DHTML Visual QuickStart Guide"
    description[2]="HTML 4 and DHTML"

    the page stops working. I have also tried adding a hyperlink, but it will not work. I am by no means a javascript expert, please help.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Try this instead:
    Code:
    description[0]="info 1<img src='mages/02.jpg' />"
    description[1]="DHTML Visual QuickStart Guide"
    description[2]="HTML 4 and DHTML"
    Changed the " in the array, to '.
    Jeremy | jfein.net

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
  •