-2

For starters I do not have any code written. My question is along the lines how to use Arrays with jQuery to scroll through their values.

I would like to iterate arrays with values of the arrays being URL's to the thumbnails provided by PHP.

So for example.

<?php

$folderThumbArray = array(
http://cdn.sitename.ltd/md3slk3.th.jpg,
http://cdn.sitename.ltd/n3oqPls.th.jpg,
http://cdn.sitename.ltd/l9nkAla.th.jpg,
http://cdn.sitename.ltd/P9jKLmn.th.jpg,
http://cdn.sitename.ltd/9nsJUol.th.jpg,
);

$objThumbArray = print_r($folderThumbArray);

?>

The following code would select and create arrays from a folder and then hand them over to jQuery.

What can I do with jQuery to allow it to scroll through this Arrays as if a miniature sideshow?

yoozer8
  • 7,361
  • 7
  • 58
  • 93
PT Desu
  • 693
  • 4
  • 13
  • 26

1 Answers1

0

Youre going to want to do something like this..

<div id="slideShow">
<?php
foreach($folderThumbArray as $val){
    echo '<img src="'$val'" />';
}
?>
</div>
Adam Merrifield
  • 10,307
  • 4
  • 41
  • 58