Scroll DIV when mouse button is down
Hi! I've a DIV which contains an IMG. This image is wider than the div, so a scrollbar appears on page. What I want to do, is click on the div(image) and move the mouse, and scroll the div as I move the mouse.
I've tried using event ondrag in the div, and inside I can move the scroll with scrollTop and/or scrollLeft. My problem is that I haven't been able to make a good algorithm.
Any ideas? Please! I am stuck in this for days :(
What suggestions you have?
Yes, it'll work only in IE for now, and that's what I need. I noticed that the timeout had no effect.
What suggestions you have for improving the code? Forget about Firefox, I only want it to work better on IE.