PDA

View Full Version : Help with dynamic imagery gallery



arepetski
04-05-2009, 10:49 AM
1) Script Title: dynamic image gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imageselector.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.

Nile
04-06-2009, 04:45 AM
Try this instead:

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 '.