Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 548 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 548 Bytes

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