目录中的jquery滑块[关闭]

                <div class="grid--cell fl1 lh-lg">
                    <div class="grid--cell fl1 lh-lg">
                        As it currently stands, this question is not a good fit for our Q&amp;A format. We expect answers to be supported by facts, references,   or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question   can be improved and possibly reopened, <a href="/help/reopen-questions">visit the help center</a> for guidance.

                    </div>
                </div>
            </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2012-11-05 20:34:17Z" class="relativetime">7 years ago</span>.</div>
        </div>
    </aside>

I'm trying to find a jquery slider which can be set to load the photos from a directory.

Can anyone recommend a slider capable to do this? Preferably with thumbnail enabled.

Any help would be appreciated!

</div>

I feel like you could see this the other way around, like the commenters above are saying.

Why not use PHP to scan a directory (with something like scandir()) and send the result to your views ? In your views, you then only have to output the result of the scandir in the configuration of whatever slider plugin you like...

Something like that:

<html>
<?php
    $mydir = "/pictures"
    $pics = scandir($mydir);
?>

<script type="text/javascript">
  myplugin.init(){
     pic_list: '<?php echo implode("','", $pics); ?>'
  }
</script>
</html>

Or you can probably dynamically generate the list of images with PHP (@Jean, sorry mate, just not a fan of PHP between script tags - even tho is just for example purposes) and pick a slider from these places:

http://www.pixelzdesign.com/blog_view.php?id=55

http://developers.slidedeck.com/ - this should be what you are looking for but it costs money in case that is an issue.

http://www.tripwiremagazine.com/2012/09/jquery-image-slider-plugins.html