DHTML scripts revisited at the dawn the Web 2.0
Presentation
The emergence of what's called the Web 2.0 is the happening of new ideas if not new technologies. With those ideas and already impressive achievements (see Google Maps, del.icio.us) arised well done javascript library with object oriented code.
The scripts shown on this page are based mainly on the prototype library.
CssScroller script
This first script allows to scroll content. It can scroll content up/down or left/right.
Thanks to DOM, the setup can be easily achieved. You only need :
- a DIV with DIVs inside that describe the contents to scroll.
- a container DIV which give size to scroll inside
var scroller = new CssScroller("contents", "container"); scroller.scroll();
Here is the demo.