DHTML SlideShow
http://www.dynamicdrive.com/dynamici...dhtmlslide.htm
Using the above script, i'd like to add a description for each picture that changes when the picture changes?
Help!!
DHTML SlideShow
http://www.dynamicdrive.com/dynamici...dhtmlslide.htm
Using the above script, i'd like to add a description for each picture that changes when the picture changes?
Help!!
I added this code, but it only runs when i use the Forward or back buttons, and each time i use it, the old text remains and the new text adds to it?
Code:function forward(){ if (which<photos.length-1){ which++ applyeffect() document.images.photoslider.src=photos[which] caption.innerHTML+='<b>' + desc[which] + '</b>'; <div id="caption" style="font-family:arial; font-size:13;"></div>
Remove the '+' sign from +=
Add an initial caption:Code:caption.innerHTML='<b>' + desc[which] + '</b>';
Code:<div id="caption" style="font-family:arial; font-size:13;">Put beginning caption here.</div>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
that's awesome, thx!
Bookmarks