Hi, wonder if anyone could help me, I have taken an image slideshow from dynamicdrive.com and would like to use my own photos, the location of these images are stored in a php array, and I am struggling to get the images out.
Its a matter of sticking the $code_array into the area which I highlighted in bold that I cant work out how to do, any help would be grateful, it is starting to rack my head in.
Thanks
Rob
$code_array = array();
echo "<br><table><tr>";
while ($row1 = mysql_fetch_assoc($image_query)){
$image_id = $row1['image_id'];
$timestamp = $row1['timestamp'];
$ext = $row1['ext'];
$album_id = $row1['album_id'];
$title = $row1['title'];
$thumbsLocation2 = "uploads";
$backS = "/";
$dot = ".";
$image_location2 = $thumbsLocation2.$backS.$album_id.$backS.$image_id.$dot.$ext;
$code_array[] = $image_location2;
<script type="text/javascript">
var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["[B]http://i26.tinypic.com/11l7ls0.jpg", "http://en.wikipedia.org/wiki/Swimming_pool", "_new", "There's nothing like a nice swim in the Summer."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "", ""],
["http://i30.tinypic.com/531q3n.jpg", "", "", "Eat your fruits, it's good for you!"],
["http://i31.tinypic.com/119w28m.jpg", "", "", ""[/B]]
],
autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//Keyword "this": references current gallery instance
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
}
})
</script>