src/aria/tools/inspector/InspectorModule.js
function (domElt, color) {
            this.clearHightlight();
            color = color ? color : "#ACC2FF";
            var pos = this.bridge.getAriaPackage().utils.Dom.calculatePosition(domElt);
            var marker = this.bridge.getDocument().createElement('div');
            marker.style.cssText = ["position:absolute;top:", pos.top, "px;left:", pos.left, "px;width:",
                    ((domElt.offsetWidth - 8 > 0) ? domElt.offsetWidth - 8 : 0), "px;height:",
                    ((domElt.offsetHeight - 8 > 0) ? domElt.offsetHeight - 8 : 0),
                    "px; border:dashed 4px " + color + ";z-index: 999999999999999;z-index: 999999999999999;"].join('');
            this._holder.appendChild(marker);
            marker = null;
            this._hideTimeout = setTimeout(aria.utils.Function.bind(this.clearHightlight, this), 2000);
        }
function (domElt, color) {
            this.clearHightlight();
            color = color ? color : "#ACC2FF";
            var pos = this.bridge.getAriaPackage().utils.Dom.calculatePosition(domElt);
            var marker = this.bridge.getDocument().createElement('div');
            marker.style.cssText = ["position:absolute;top:", pos.top, "px;left:", pos.left, "px;width:",
                    ((domElt.offsetWidth - 8 > 0) ? domElt.offsetWidth - 8 : 0), "px;height:",
                    ((domElt.offsetHeight - 8 > 0) ? domElt.offsetHeight - 8 : 0),
                    "px; border:dashed 4px " + color + ";z-index: 999999999999999;z-index: 999999999999999;"].join('');
            this._holder.appendChild(marker);
            marker = null;
            this._hideTimeout = setTimeout(aria.utils.Function.bind(this.clearHightlight, this), 2000);
        }
function ( domElt , color ) { this . clearHightlight ( ) ; color = color ? color : "#ACC2FF" ; var pos = this . bridge . getAriaPackage ( ) . utils . Dom . calculatePosition ( domElt ) ; var marker = this . bridge . getDocument ( ) . createElement ( 'div' ) ; marker . style . cssText = [ "position:absolute;top:" , pos . top , "px;left:" , pos . left , "px;width:" , ( ( domElt . offsetWidth - 8 > 0 ) ? domElt . offsetWidth - 8 : 0 ) , "px;height:" , ( ( domElt . offsetHeight - 8 > 0 ) ? domElt . offsetHeight - 8 : 0 ) , "px; border:dashed 4px " + color + ";z-index: 999999999999999;z-index: 999999999999999;" ] . join ( '' ) ; this . _holder . appendChild ( marker ) ; marker = null ; this . _hideTimeout = setTimeout ( aria . utils . Function . bind ( this . clearHightlight , this ) , 2000 ) ; }
Highlight a dom element with borders
@param {HTMLElement} domElt
@param {String} color. default is #ACC2FF
Highlight a dom element with borders