Hi,
I have a slideshow which is displayed with the following piece of code. I need to remove the last comma from the array, as it's breaking in IE. Any suggestions on how to do this? TIA!
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "headershow", //ID of blank DIV on page to house Slideshow
dimensions: [570, 145], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
<?php
$sql = "SELECT * FROM slideshow_images WHERE SlideID = 'header'";
$result = mysql_query($sql);
if(mysql_num_rows($result) > 0) {
while($row = mysql_fetch_object($result))
{
echo '["images/slideshows/'.$row->filename.'", "'.$row->link.'", "'.$row->window.'", "'.$row->caption.'"],';
}
}
?>
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>