Log in

View Full Version : onClick Scroller



Cory
08-31-2008, 06:14 PM
I'm looking for an onClick (or onMouseOver) scroller that allows you to scroll either way to retrieve more content, like so:


More content viewable when you scroll over with the arrow. <- Content Content Content Content -> More content viewable when you scroll over with the arrow.

Nile
08-31-2008, 06:29 PM
Does this help you at all?:
http://niler.net/examples/div_scroller/

Cory
08-31-2008, 06:44 PM
Well, I'd prefer it wasn't in a textbox and is only horizontally scrollable.

Just like the example given, pretty much.

I've seen it done before. I just don't remember where the script is.

Nile
08-31-2008, 07:39 PM
All you have to do is edit the css.

Cory
08-31-2008, 07:43 PM
OK, hopefully it'll work out the way I want it to.

Do you want me to just grab the coding from the source?

Nile
08-31-2008, 08:12 PM
Just grab it, unless you want a zip, I'll send you a zip. All I request is in the code:

//Made by: Niler, visit him at niler.net

Cory
08-31-2008, 09:56 PM
Zip file will do wonders.

Don't worry, the copyright will remain intact for as long as we use the code.

Thanks, by the way.

mburt
08-31-2008, 10:15 PM
To be honest, the best scroller is the basic browser scroller.

If you want an object (div in this case) to scroll, just set the following:


<div style="width: 200px;height: 200px;overflow: auto;">
<br>line
<br>line
<br>line
<br>line
<br>line
<br>line
<br>line
<br>line
<br>line
<br>line
<br>line
</div>

Cory
08-31-2008, 11:41 PM
Thanks for the idea, mburt, but that wouldn't really work out to well in my case. I'm going to be using this scroller to advance much content to the left and right of other content, all horizontally, which means if we did it that way, the page would stretch very far.