Can you get the mouse position from the top of an element? Like in IE(and i think Opera(not FF)), you can use ' window.event.x ' or ' window.event.y ' to get the mouse position. But can you do this the position from or in an element.
If you had your mouse over a div and it was 100 pixels from the top of the div, could you use something like that to get this number? Or anyway to get the number at all?This is a JavaScript question, not a CSS question.
<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/events_mouse.htmlah...">http://www.quirksmode.org/js/events_mouse.htmlah...</a><!-- m -->. sorry, I just wasn't sure. I'd say it's a js / css question. I am working with css in this as well as js. but anyways...
that didn't quite help... it was all mouse events. I was looking for something to give me mouse positions for an element(not the window).I know.
Maybe these two pages would be more helpful.
<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/events_compinfo.html#prop">http://www.quirksmode.org/js/events_compinfo.html#prop</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/findpos.htmlThank">http://www.quirksmode.org/js/findpos.htmlThank</a><!-- m --> you, that actually is more helpful. I believe that will solve my problem.
If you had your mouse over a div and it was 100 pixels from the top of the div, could you use something like that to get this number? Or anyway to get the number at all?This is a JavaScript question, not a CSS question.
<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/events_mouse.htmlah...">http://www.quirksmode.org/js/events_mouse.htmlah...</a><!-- m -->. sorry, I just wasn't sure. I'd say it's a js / css question. I am working with css in this as well as js. but anyways...
that didn't quite help... it was all mouse events. I was looking for something to give me mouse positions for an element(not the window).I know.
Maybe these two pages would be more helpful.
<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/events_compinfo.html#prop">http://www.quirksmode.org/js/events_compinfo.html#prop</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/findpos.htmlThank">http://www.quirksmode.org/js/findpos.htmlThank</a><!-- m --> you, that actually is more helpful. I believe that will solve my problem.