Monday, December 1, 2008

[jQuery] Re: Horizontal scroll of lists with differing widths

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:pauldcollins@gmail.com]
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

No comments: