Thanks Mike,

So using the getBoundingClientRect, isit a better idea to apply a
style to that element or to create a new element that sits on top of
it? If its the later I take its just absolute positioning right?

On May 23, 11:20 am, Mike Ratcliffe <[email protected]>
wrote:
> The problem with the mouseover approach is that disabled elements do
> not have a mouseove (in fact they also block other mouseover events).
>
> If I was you I would use the following method:
> 1. Track the mouse positions using onmousemove
> 2. Use element = document.elementFromPoint(x,y) to get the element
> from the mouse position
> 3. Use element.getBoundingClientRect() to get the element position ...
> this returns element.top, element.right, element.bottom, element.left
> and in Firefox 3.5 element.width, element.height
>
> shabba wrote:
> > I am trying to create something similar for my own project, I want it
> > so you can enable the inspect and then it will highlight the element,
> > I have looked at the css, but cant figure out how it works, I would
> > really appreciate it if someone would explain how its done.
>
> > Full credit will be given to the firebug team for creating such a
> > beautiful app!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to