layout.js implements the Layout side panel of HTML panel.
I guess you mean:
the code that highlights a web page element when its corresponding
source code element is hovered over in the HTML panel?
I think this is implemented in chrome.js:
function onPanelMouseOver(event)
{
var object = Firebug.getRepObject(event.target);
if (object)
{
var realObject = getRealObject(object);
if (realObject)
Firebug.Inspector.highlightObject(realObject,
FirebugContext);
}
}
So it is very generic, any object in any panel can cause highlighting.
Seems like all of these use the logic: mouseOver means highlight,
mouseOut means remove highlight.
jjb
On Jan 20, 10:49 am, bobbykjack <[email protected]> wrote:
> Can any elite Firebug hackers help out a CSS coder + programmer? I'm
> trying to understand the code that highlights a box when its element
> is hovered over in the HTML inspector? I'm sure there's a proper term
> for it; hopefully, that description is good enough!
>
> Does the content/firebug/layout.js file contain the relevant code? I'm
> trying to write similar javascript, but am stumbling over the mouse
> (over/out) functions clashing.
>
> Cheers,
>
> - Bobby
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---