Use the scrollLeft property to find the amount of scrolling involved.
If you want a complete offset calculation routine, you might read the source code to the dimensions plug-in used in the jQuery framework - http://plugins.jquery.com/node/1089
I have no clue what 'content' div means in your context, or what is a frameless div (aren't they all?)
Offset calculation isn't simple. In my first response I linked you to the jQuery dimensions plugin which is dedicated to that purpose - I suggest you take a look
I have no clue what 'content' div means in your context, or what is a frameless div (aren't they all?)
The scrollbars are only in the content div.
See screenshot below.
Offset calculation isn't simple. In my first response I linked you to the jQuery dimensions plugin which is dedicated to that purpose - I suggest you take a look
I couldn’t understand the jQuery plug-in code, maybe because it is based on the jQuery framework.
But I have already found a working script: http://acko.net/blog/mouse-handling-and ... javascript
The only problem I have is that the "scroll offset" are not working on the "content" div.