To setup a scroll/slide area create a container with the following CSS properties…
position:relative; overflow:hidden; height:XXXpx;
Inside the scroll area container create another div that will house your actual content. It needs the positioned absolutely within the previous div. Each sliding or scrolling area on the page needs to have a unique ID for this div.
Inside the content div you can need to create a section for each area of content, be it 1 or 50. For each section after the “prefix-” numerate the order from 1 onwards. The prefix (ie section, newssection, imgsection, etc) needs to be unique to the current sliding/scrolling container’s sections.
<div id="section-1" class="section"></div>
This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license. Community support is available here. Paid support is also available, contact me for details.
Latest posts by Michael (see all)
- AJAX JSON Example - December 29, 2012
- Input & Textarea Character Limit Counter with jQuery - September 18, 2012