PDA

View Full Version : Using an image slideshow in more than one collapsible div



nblakeman
05-09-2011, 06:56 PM
Hi there

I want to use this script (http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm) to run a slideshow on more than one project on my website.

Here's my website: http://www.nickblakeman.co.uk

I can make it work in one of the collapsible divs, but when using in more than one, the script gets confused because every project is referring to the same <head> section.

I tried pasting the head section part in more than once and re-naming 'photoslider' to 'photoslider2' (in the hope that they would now call upon different sets of photos) but alas, the second slideshow displayed the same images as the first.

Do I need to adapt this line of the body section? (img src?) -

document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')

and name the photos differently?

HOPE this makes sense!

Cheers