aScroller

This is a javascript scroller, 100% standards compliant (doesn't poison your code, keeps the page validating XHTML Strict).

This class has been tested working on Internet Explorer 5.01->8.0, Firefox 1.0->3.6, Chrome 5.0, Safari 2.0->5.0, Opera 8.0->10.0. and iOS 3.0->4.0 (iPhone, iPad).

Usage

Example

<div id="scroll-v" style="height: 18px; line-height: 18px; width: 500px;">
  <div>This text will scroll vertically.</div>
  <div>Supports also multiple stages</div>
  <div>Quite simple, uh?</div>
</div>
<script type="text/javascript">divScroller("scroll-v", "v", 20, 3000);</script>
		
This is a test. The text should be scrolling vertically.
Supports also multiple stages
Quite simple, uh?
1
2
3
4
5
6
7
8
9
<div id="scroll-h" style="height: 18px; width: 500px;">
  <div>This is a test. The text should be scrolling horizontally.</div>
</div>
<script type="text/javascript">divScroller("scroll-h", "h", 20, 3000);</script>
		
This is a test. The text should be scrolling horizontally.

Download

Download version 1.0 here (8.3kb).