javascript - How to get images from a directory and print it? -
i have php script works fine, told use jquery or javascript particular task php script does..
here's code
<? $files = glob("logo/*.*"); ($i = 0; $i < count($files); $i++) { $image = $files[$i]; echo '<img src="' . $image . '" alt="random image" width="100px" height="100px" class="displayed"/>'; } ?> as said above php code works fine , wish have jquery code or javascript code can task.
you can send ajax request php script , print data page jquery. resolution you?
Comments
Post a Comment