ChristoPy / MouseScroll.js

A easy way to scroll thru HTML elements by your mouse.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MouseScroll.js

A easy way to scroll thru HTML elements by your mouse.

NEW

Scroll thru diferent HTML objects

Usage

Include the MouseScroll.js:

<script type="text/javascript" src="MouseScroll.js"></script>

Call the MouseScroll function givin one element and the mouse button 1 or 2 (optional):

<script type="text/javascript">
    MouseDrag0 = false;
    MouseScroll (myElement0, MouseDrag0, 1);

    MouseDrag1 = false;
    MouseScroll (myElement1, MouseDrag1, 1);
</script>

Dependencies

None.

Version

0.3

About

A easy way to scroll thru HTML elements by your mouse.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%