TravisLaborde
IS-IT--Management
I'm using IE6 as the browser, and here is what I'm trying to do:
I have a span with plain text, such as a name. I have set up the _onMouseOver() event of this span as follows:
sub mySpan_onMouseOver()
set e = window.event
var = "y: " & e.ClientY & " x: " & e.ClientX
msgbox var
end sub
My intent was to find the "position" of the span. However, it seems I'm finding the position of the mouse instead.
Because if I hover near the left side of the span, I get different results than if I hover near the right side of the span.
This is a problem, because I'm actually using these coordinates to position another span (a popup), and I'd like it to always appear relative to the original span instead of relative to the mouse.
Can anyone help me with this?
Thanks,
Travis
I have a span with plain text, such as a name. I have set up the _onMouseOver() event of this span as follows:
sub mySpan_onMouseOver()
set e = window.event
var = "y: " & e.ClientY & " x: " & e.ClientX
msgbox var
end sub
My intent was to find the "position" of the span. However, it seems I'm finding the position of the mouse instead.
Because if I hover near the left side of the span, I get different results than if I hover near the right side of the span.
This is a problem, because I'm actually using these coordinates to position another span (a popup), and I'd like it to always appear relative to the original span instead of relative to the mouse.
Can anyone help me with this?
Thanks,
Travis