Hi,
I am javascript newbie.
I have a slideshow on my site and it works fine if I type in the images for it to display, however I want to get the image files path from my database, so it shows all the photos.
Here is the code I am working with.
I want to make all the image paths "images/photos/2.jpg" come from my database.
I have tried adding php into it but it doesn't work.
Any idea on how I can make this work??
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [260, 210], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/photos/2.jpg", "photos.php", "_new", "Some day I'd like to explore these caves!"],
["images/photos/3.jpg"],
["images/photos/4.jpg", "photos.php", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
Thanks for your help.
Cheers,
QWaz