Hi there John, Thanks for sending me that link. It does look really good. The only issue for me is it doesn't work with Javascript turned off. Accessibility is one of the main issues for the site I am currently working on, so I can't have it not work with Javscript turned off unfortunately.
All I really need the Javscript to do is check how many <LI>'s are inside the DIV then stretch the width of the container UL to stretch it out, thus getting horizontal scroll when scripts are turned on and vertical scroll when they're not. Anyway, thanks again for your help. Paul 2008/12/1 John Ruffin <[EMAIL PROTECTED]>: > Paul, I found this interesting. Got it working in no time. If you are > going to have a play with it just make sure you use the min and max > attributes. It's documented in the blog. > > http://jqueryfordesigners.com/demo/slider-gallery.html > > > -----Original Message----- > From: Paul Collins [mailto:[EMAIL PROTECTED] > Sent: Monday, December 1, 2008 12:07 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Horizontal scroll of lists with differing widths > > Hi all, Just wondering if someone could point me in the right direction for > finding this code. Basically, I have a list which could contain 1-6 images. > When there are four or more images, I would like to add a horizontal > scrollbar to the content. I don't want to do this using CSS as I would need > to add the full width to the list regardless of the amount of images. I > would like to not have scrolling if there are less than four images. I have > taken a look at "jScrollPane", but this doesn't seem to support the > dynamically changing widths of the list. Would really appreciate any help or > direction! Thanks Paul