intro.js
/**
     * Adds a 'highlighted' effect to the element specified
     *
     * @api private
     * @method _highlightElement
     * @param {HTMLElement} targetElement the element to be highlighted
     */
Adds a 'highlighted' effect to the element specified
@api private
@method _highlightElement
@param {HTMLElement} targetElement the element to be highlighted
Adds a ' highlighted ' effect to the element specified @api private @method _highlightElement @param { HTMLElement } targetElement the element to be highlighted
function _highlightElement(targetElement) {
        targetElement.className += ' introjs-showElement';
        var currentElementPosition = '';
        if (targetElement.currentStyle) { 
            currentElementPosition = targetElement.currentStyle.position;
        } else if (document.defaultView && document.defaultView.getComputedStyle) { 
            currentElementPosition = document.defaultView.getComputedStyle(targetElement, null).getPropertyValue('position');
        }
        currentElementPosition = currentElementPosition.toLowerCase();
        if (currentElementPosition !== 'absolute' && currentElementPosition !== 'relative') {
            targetElement.className += ' introjs-relativePosition';
        }
    }
function _highlightElement ( targetElement ) { targetElement . className += ' introjs-showElement' ; var currentElementPosition = '' ; if ( targetElement . currentStyle ) { currentElementPosition = targetElement . currentStyle . position ; } else if ( document . defaultView && document . defaultView . getComputedStyle ) { currentElementPosition = document . defaultView . getComputedStyle ( targetElement , null ) . getPropertyValue ( 'position' ) ; } currentElementPosition = currentElementPosition . toLowerCase ( ) ; if ( currentElementPosition !== 'absolute' && currentElementPosition !== 'relative' ) { targetElement . className += ' introjs-relativePosition' ; } }
Adds a 'highlighted' effect to the element specified
 @api private
 @method _highlightElement
 @param {HTMLElement} targetElement the element to be highlighted
Adds a ' highlighted ' effect to the element specified @api private @method _highlightElement @param { HTMLElement } targetElement the element to be highlighted
// add target element position style // thanks to JavaScript Kit: http://www.javascriptkit.com/dhtmltutors/dhtmlcascade4.shtml // IE // Firefox // I don't know is this necessary or not, but I clear the position for better comparing // so the tooltip can be positioned relative to this element