natasha_thomas Posted October 25, 2010 Share Posted October 25, 2010 Folks, I am looking for a Slideshow script (in JS or PHP), whihc pulls all the images from a Specified Folder on my Server and shows pictures in a Slideshow. I want to put it on my Site. Is there anysuch Script doing this? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/216789-slideshow-script-that-pulls-all-images-from-a-folder/ Share on other sites More sharing options...
trq Posted October 26, 2010 Share Posted October 26, 2010 Probably thousands of them, have you Googled? Quote Link to comment https://forums.phpfreaks.com/topic/216789-slideshow-script-that-pulls-all-images-from-a-folder/#findComment-1126449 Share on other sites More sharing options...
natasha_thomas Posted October 26, 2010 Author Share Posted October 26, 2010 Dear Thrope, i have googled many but did not find any which gives me the functionality to put the Directory / folder path to auto pull images from there.... :'( Quote Link to comment https://forums.phpfreaks.com/topic/216789-slideshow-script-that-pulls-all-images-from-a-folder/#findComment-1126519 Share on other sites More sharing options...
RichardRotterdam Posted October 26, 2010 Share Posted October 26, 2010 I am looking for a Slideshow script (in JS or PHP) The reason you're probably not having much luck is because you're looking for it as a whole package. Try looking for (or write it yourself) : 1. a php script that returns all images from a folder. 2. a js slide show Should be easy as hell Quote Link to comment https://forums.phpfreaks.com/topic/216789-slideshow-script-that-pulls-all-images-from-a-folder/#findComment-1126574 Share on other sites More sharing options...
JonnoTheDev Posted October 26, 2010 Share Posted October 26, 2010 As Javascript is client side it is not going to be able to read the contents of a folder on your server. PHP can do this easily as it is server side. As the above post mentions, you should break the 2 steps up. Firstly, learn how to read files in a directory using php. There are plenty of examples here: http://uk2.php.net/readdir Then look at a JS slideshow. I would probably use a JQuery plugin. All you would need to do would be to loop over a bit of HTML. Here are a ton to choose from. They should be real easy to implement. http://www.webanddesigners.com/15-jquery-slideshow-and-plugins Quote Link to comment https://forums.phpfreaks.com/topic/216789-slideshow-script-that-pulls-all-images-from-a-folder/#findComment-1126578 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.