Thanks for your help so far and your pointer to the traverseDir plugin. I have linked to the plugin as well as to the jquery.js file. And I have inserted the following:
$(document).ready(function(){ $('#show1').traverseDir({ types: 'png', dir: 'images/show/' }); }; However the further problem I am having is that I have css rules that should apply to these images i.e. #show1 img. But the plugin does not seem to be inserting the images in an <img> tag or the css would work. Any ideas? On Sep 20, 5:01 pm, Scott Sauyet <[EMAIL PROTECTED]> wrote: > Karl Swedberg wrote: > > On Sep 20, 2007, at 10:06 AM, Scott Sauyet wrote: > >> Mr Batman wrote: > >>> I would like toinsertall of theimagesfrom a certain folder in the > >>> root of my site into one div on my home page automatically. > >>> Is this possible with jQuery and if so how do you do it? > > >> jQuery cannot know what files are on your server. [ ... ] Do you > >> have the ability on the server to create such a list? You could do > >> it with PHP, ColdFusion, Java, ASP, or numerous other tools, even > >> manually creating a list if it's fairly static. > > > I might be misunderstanding what is going on here, but I thought Jake > > Wolpert put together a plugin that does just that: > > >http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/jquery-t... > > Ahh, never saw that before. Okay, add to the list of techniques for > creating the server list Apache's directory listing. If your server is > Apache, and the directory has folder listing turned on, this plug-in > would be a great help. It would probably work with most directory > listing systems too. > > -- Scott > > I haven't seen Jake around these parts since I joined six months ago.