Scroll DIV Horizontally with Mouse Events

Posted by williamtroup on Stack Overflow See other posts from Stack Overflow or by williamtroup
Published on 2010-03-19T12:55:51Z Indexed on 2010/03/19 13:11 UTC
Read the original article Hit count: 152

Filed under:
|
|

I have a layout as follows:

<div style="width: 300">
    <div style="width: 300">Some Content</div>
</div

I want to be able to mousedown in the content DIV and be able to move it left to right, or scroll it in other words :)

What would be the best way of being this?

I would prefer it in JavaScript mainly :)

© Stack Overflow or respective owner

Related posts about div

Related posts about scroll