Edit C:\galaxie\deploy\Tomcat6\work\Catalina\localhost\galaxie\old\org\apache\jsp\js\tooltip_005fjs_jsp.class
Êþº¾ 1 w $org/apache/jsp/js/tooltip_005fjs_jsp %org/apache/jasper/runtime/HttpJspBase ,org/apache/jasper/runtime/JspSourceDependent _jspxFactory Ljavax/servlet/jsp/JspFactory; _jspx_dependants Ljava/util/List; _el_expressionfactory Ljavax/el/ExpressionFactory; _jsp_annotationprocessor Lorg/apache/AnnotationProcessor; <clinit> ()V Code javax/servlet/jsp/JspFactory getDefaultFactory ()Ljavax/servlet/jsp/JspFactory; java/util/ArrayList <init> (I)V ! # /js/tooltip/domLib.js % ' & java/util/List ( ) add (Ljava/lang/Object;)Z + /js/tooltip/domTT.js - /js/tooltip/domTT_drag.js / /js/tooltip/alphaAPI.js 1 /js/tooltip/edealTT.js LineNumberTable LocalVariableTable 5 this &Lorg/apache/jsp/js/tooltip_005fjs_jsp; getDependants ()Ljava/lang/Object; _jspInit < = > getServletConfig ()Ljavax/servlet/ServletConfig; @ B A javax/servlet/ServletConfig C D getServletContext ()Ljavax/servlet/ServletContext; F G H getJspApplicationContext I(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; J L K 'javax/servlet/jsp/JspApplicationContext M N getExpressionFactory ()Ljavax/el/ExpressionFactory; P R org/apache/AnnotationProcessor T V U java/lang/Class W X getName ()Ljava/lang/String; Z \ [ javax/servlet/ServletContext ] ^ getAttribute &(Ljava/lang/String;)Ljava/lang/Object; ` _jspDestroy _jspService R(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V Exceptions f java/io/IOException h javax/servlet/ServletException j text/html;charset=UTF-8 l n m &javax/servlet/http/HttpServletResponse o p setContentType (Ljava/lang/String;)V r s t getPageContext ?(Ljavax/servlet/Servlet;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljava/lang/String;ZIZ)Ljavax/servlet/jsp/PageContext; v B w javax/servlet/jsp/PageContext v < v z { | getSession "()Ljavax/servlet/http/HttpSession; v ~ ? getOut ()Ljavax/servlet/jsp/JspWriter; ? ? ? javax/servlet/jsp/JspWriter ? write ? /** $Id$ */ ? ? ? p ? // {{{ license ? ? /* ? N * Copyright 2002-2005 Dan Allen, Mojavelinux.com (dan.allen@mojavelinux.com) ? * ? C * Licensed under the Apache License, Version 2.0 (the "License"); ? D * you may not use this file except in compliance with the License. ? + * You may obtain a copy of the License at ? 3 * http://www.apache.org/licenses/LICENSE-2.0 ? G * Unless required by applicable law or agreed to in writing, software ? E * distributed under the License is distributed on an "AS IS" BASIS, ¡ L * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. £ G * See the License for the specific language governing permissions and ¥ " * limitations under the License. § */ © // }}} « // {{{ intro /** ¯ * Title: DOM Library Core ± * Version: 0.70 ³ * Summary: µ M * A set of commonly used functions that make it easier to create javascript · & * applications that rely on the DOM. ¹ * Updated: 2005/05/17 » 5 * Maintainer: Dan Allen <dan.allen@mojavelinux.com> ½ 1 * Maintainer: Jason Rust <jrust@rustyparts.com> ¿ * License: Apache 2.0 Á &// {{{ global constants (DO NOT EDIT) à // -- Browser Detection -- Å :var domLib_userAgent = navigator.userAgent.toLowerCase(); Ç >var domLib_isMac = navigator.appVersion.indexOf('Mac') != -1; É >var domLib_isWin = domLib_userAgent.indexOf('windows') != -1; Ë 4// NOTE: could use window.opera for detecting Opera Í >var domLib_isOpera = domLib_userAgent.indexOf('opera') != -1; Ï @var domLib_isOpera7up = domLib_userAgent.match(/opera.(7|8)/i); Ñ @var domLib_isSafari = domLib_userAgent.indexOf('safari') != -1; Ó Avar domLib_isKonq = domLib_userAgent.indexOf('konqueror') != -1; Õ <// Both konqueror and safari use the khtml rendering engine × dvar domLib_isKHTML = (domLib_isKonq || domLib_isSafari || domLib_userAgent.indexOf('khtml') != -1); Ùvar domLib_isIE = (!domLib_isKHTML && !domLib_isOpera && (domLib_userAgent.indexOf('msie 5') != -1 || domLib_userAgent.indexOf('msie 6') != -1 || domLib_userAgent.indexOf('msie 7') != -1 || domLib_userAgent.indexOf('msie 8') != -1 || domLib_userAgent.indexOf('msie 9') != -1)); Û "var domLib_isIE5up = domLib_isIE; Ý Qvar domLib_isIE50 = (domLib_isIE && domLib_userAgent.indexOf('msie 5.0') != -1); ß Qvar domLib_isIE55 = (domLib_isIE && domLib_userAgent.indexOf('msie 5.5') != -1); á 5var domLib_isIE5 = (domLib_isIE50 || domLib_isIE55); ã R// safari and konq may use string "khtml, like gecko", so check for destinctive / å ?var domLib_isGecko = domLib_userAgent.indexOf('gecko/') != -1; ç 4var domLib_isMacIE = (domLib_isIE && domLib_isMac); é Kvar domLib_isIE55up = domLib_isIE5up && !domLib_isIE50 && !domLib_isMacIE; ë 8var domLib_isIE6up = domLib_isIE55up && !domLib_isIE55; í // -- Browser Abilities -- ï Yvar domLib_standardsMode = (document.compatMode && document.compatMode == 'CSS1Compat'); ñ ?var domLib_useLibrary = (domLib_isOpera7up || domLib_isKHTML || domLib_isIE5up || domLib_isGecko || domLib_isMacIE || document.defaultView); ó // fixed in Konq3.2 õ }var domLib_hasBrokenTimeout = (domLib_isMacIE || (domLib_isKonq && domLib_userAgent.match(/konqueror\/3.([2-9])/) == null)); ÷ [var domLib_canFade = (domLib_isGecko || domLib_isIE || domLib_isSafari || domLib_isOpera); ù Svar domLib_canDrawOverSelect = (domLib_isMac || domLib_isOpera || domLib_isGecko); û >var domLib_canDrawOverFlash = (domLib_isMac || domLib_isWin); ý // -- Event Variables -- ÿ Gvar domLib_eventTarget = domLib_isIE ? 'srcElement' : 'currentTarget'; ;var domLib_eventButton = domLib_isIE ? 'button' : 'which'; Bvar domLib_eventTo = domLib_isIE ? 'toElement' : 'relatedTarget'; <var domLib_stylePointer = domLib_isIE ? 'hand' : 'pointer'; c// NOTE: a bug exists in Opera that prevents maxWidth from being set to 'none', so we make it huge Bvar domLib_styleNoMaxWidth = domLib_isOpera ? '10000px' : 'none'; %var domLib_hidePosition = '-1000px'; var domLib_scrollbarWidth = 14; var domLib_autoId = 1; var domLib_zIndex = 100; // -- Detection -- var domLib_collisionElements; %var domLib_collisionsCached = false; var domLib_timeoutStateId = 0; 'var domLib_timeoutStates = new Hash(); // {{{ DOM enhancements if (!document.ELEMENT_NODE) ! { # document.ELEMENT_NODE = 1; % document.ATTRIBUTE_NODE = 2; ' document.TEXT_NODE = 3; ) document.DOCUMENT_NODE = 9; + ' document.DOCUMENT_FRAGMENT_NODE = 11; - } / function domLib_clone(obj) 1 var copy = {}; 3 for (var i in obj) 5 { 7 var value = obj[i]; 9 try ; { = Y if (value != null && typeof(value) == 'object' && value != window && !value.nodeType) ? { A # copy[i] = domLib_clone(value); C } E else G copy[i] = value; I } K catch(e) M copy[i] = value; O } Q return copy; S // {{{ class Hash() U function Hash() W this.length = 0; Y this.numericLength = 0; [ this.elementData = []; ] / for (var i = 0; i < arguments.length; i += 2) _ / if (typeof(arguments[i + 1]) != 'undefined') a 6 this.elementData[arguments[i]] = arguments[i + 1]; c this.length++; e 0 if (arguments[i] == parseInt(arguments[i])) g this.numericLength++; i B// using prototype as opposed to inner functions saves on memory k &Hash.prototype.get = function(in_key) m 8 if (typeof(this.elementData[in_key]) != 'undefined') { o # return this.elementData[in_key]; q return null; s 0Hash.prototype.set = function(in_key, in_value) u & if (typeof(in_value) != 'undefined') w 7 if (typeof(this.elementData[in_key]) == 'undefined') y $ if (in_key == parseInt(in_key)) { . return this.elementData[in_key] = in_value; } return false; )Hash.prototype.remove = function(in_key) ? var tmp_value; ? 6 if (typeof(this.elementData[in_key]) != 'undefined') ? this.length--; ? # if (in_key == parseInt(in_key)) ? this.numericLength--; ? ( tmp_value = this.elementData[in_key]; ? # delete this.elementData[in_key]; ? return tmp_value; ? !Hash.prototype.size = function() ? return this.length; ? &Hash.prototype.has = function(in_key) ? 9 return typeof(this.elementData[in_key]) != 'undefined'; ? 'Hash.prototype.find = function(in_obj) ? ( for (var tmp_key in this.elementData) ? , if (this.elementData[tmp_key] == in_obj) ? return tmp_key; ¡ )Hash.prototype.merge = function(in_hash) £ + for (var tmp_key in in_hash.elementData) ¥ 9 if (typeof(this.elementData[tmp_key]) == 'undefined') § & if (tmp_key == parseInt(tmp_key)) © < this.elementData[tmp_key] = in_hash.elementData[tmp_key]; « +Hash.prototype.compare = function(in_hash) % if (this.length != in_hash.length) ¯ return false; ± B if (this.elementData[tmp_key] != in_hash.elementData[tmp_key]) ³ return false; µ · return true; ¹ // {{{ domLib_isDescendantOf() » Ffunction domLib_isDescendantOf(in_object, in_ancestor, in_bannedTags) ½ if (in_object == null) ¿ if (in_object == in_ancestor) Á return true; à - if (typeof(in_bannedTags) != 'undefined' && Å V (',' + in_bannedTags.join(',') + ',').indexOf(',' + in_object.tagName + ',') != -1) Ç / while (in_object != document.documentElement) É K if ((tmp_object = in_object.offsetParent) && tmp_object == in_ancestor) Ë return true; Í @ else if ((tmp_object = in_object.parentNode) == in_ancestor) Ï in_object = tmp_object; Ñ B // in case we get some wierd error, assume we left the building Ó !// {{{ domLib_detectCollisions() Õ C * For any given target element, determine if elements on the page × @ * are colliding with it that do not obey the rules of z-index. Ù Efunction domLib_detectCollisions(in_object, in_recover, in_useCache) Û F // the reason for the cache is that if the root menu is built before Ý G // the page is done loading, then it might not find all the elements. ß E // so really the only time you don't use cache is when building the á " // menu as part of the page load ã if (!domLib_collisionsCached) å var tags = []; ç if (!domLib_canDrawOverFlash) é ! tags[tags.length] = 'object'; ë ! if (!domLib_canDrawOverSelect) í ! tags[tags.length] = 'select'; ï G domLib_collisionElements = domLib_getElementsByTagNames(tags, true); ñ ) domLib_collisionsCached = in_useCache; ó 0 // if we don't have a tip, then unhide selects õ if (in_recover) ÷ B for (var cnt = 0; cnt < domLib_collisionElements.length; cnt++) ù 4 var thisElement = domLib_collisionElements[cnt]; û if (!thisElement.hideList) ý ' thisElement.hideList = new Hash(); ÿ . thisElement.hideList.remove(in_object.id); % if (!thisElement.hideList.length) @ domLib_collisionElements[cnt].style.visibility = 'visible'; if (domLib_isKonq) { 7 domLib_collisionElements[cnt].style.display = ''; } return; 0 else if (domLib_collisionElements.length == 0) - // okay, we have a tip, so hunt and destroy 3 var objectOffsets = domLib_getOffsets(in_object); A for (var cnt = 0; cnt < domLib_collisionElements.length; cnt++) 3 var thisElement = domLib_collisionElements[cnt]; 8 // if collision element is in active element, move on " // WARNING: is this too costly? 5 if (domLib_isDescendantOf(thisElement, in_object)) continue; ! 6 // konqueror only has trouble with multirow selects # if (domLib_isKonq && % & thisElement.tagName == 'SELECT' && ' 5 (thisElement.size <= 1 && !thisElement.multiple)) ) if (!thisElement.hideList) + & thisElement.hideList = new Hash(); - 7 var selectOffsets = domLib_getOffsets(thisElement); / È var center2centerDistance = Math.sqrt(Math.pow(selectOffsets.get('leftCenter') - objectOffsets.get('leftCenter'), 2) + Math.pow(selectOffsets.get('topCenter') - objectOffsets.get('topCenter'), 2)); 1 M var radiusSum = selectOffsets.get('radius') + objectOffsets.get('radius'); 3 H // the encompassing circles are overlapping, get in for a closer look 5 ) if (center2centerDistance < radiusSum) 7 // tip is left of select 9 ? if ((objectOffsets.get('leftCenter') <= selectOffsets.get('leftCenter') && objectOffsets.get('right') < selectOffsets.get('left')) || ; // tip is right of select = ? (objectOffsets.get('leftCenter') > selectOffsets.get('leftCenter') && objectOffsets.get('left') > selectOffsets.get('right')) || ? // tip is above select A ? (objectOffsets.get('topCenter') <= selectOffsets.get('topCenter') && objectOffsets.get('bottom') < selectOffsets.get('top')) || C // tip is below select E ? (objectOffsets.get('topCenter') > selectOffsets.get('topCenter') && objectOffsets.get('top') > selectOffsets.get('bottom'))) G / thisElement.hideList.remove(in_object.id); I & if (!thisElement.hideList.length) K / thisElement.style.visibility = 'visible'; M if (domLib_isKonq) O { Q & thisElement.style.display = ''; S } U 2 thisElement.hideList.set(in_object.id, true); W - thisElement.style.visibility = 'hidden'; Y ) thisElement.style.display = 'none'; [ // {{{ domLib_getOffsets() ] 9function domLib_getOffsets(in_object, in_preserveScroll) _ 1 if (typeof(in_preserveScroll) == 'undefined') { a in_preserveScroll = false; c ! var originalObject = in_object; e , var originalWidth = in_object.offsetWidth; g . var originalHeight = in_object.offsetHeight; i var offsetLeft = 0; k var offsetTop = 0; m while (in_object) o & offsetLeft += in_object.offsetLeft; q $ offsetTop += in_object.offsetTop; s & in_object = in_object.offsetParent; u / // consider scroll offset of parent elements w ' if (in_object && !in_preserveScroll) y ' offsetLeft -= in_object.scrollLeft; { % offsetTop -= in_object.scrollTop; } T // MacIE misreports the offsets (even with margin: 0 in body{}), still not perfect if (domLib_isMacIE) { ? offsetLeft += 10; ? offsetTop += 10; ? return new Hash( ? 'left', offsetLeft, ? 'top', offsetTop, ? ' 'right', offsetLeft + originalWidth, ? ( 'bottom', offsetTop + originalHeight, ? . 'leftCenter', offsetLeft + originalWidth/2, ? - 'topCenter', offsetTop + originalHeight/2, ? 5 'radius', Math.max(originalWidth, originalHeight) ? ); ? // {{{ domLib_setTimeout() ? =function domLib_setTimeout(in_function, in_timeout, in_args) ? % if (typeof(in_args) == 'undefined') ? in_args = []; ? if (in_timeout == -1) ¡ // timeout event is disabled £ return 0; ¥ else if (in_timeout == 0) § in_function(in_args); © G // must make a copy of the arguments so that we release the reference « # var args = domLib_clone(in_args); if (!domLib_hasBrokenTimeout) ¯ D return setTimeout(function() { in_function(args); }, in_timeout); ± else ³ $ var id = domLib_timeoutStateId++; µ var data = new Hash(); · % data.set('function', in_function); ¹ data.set('args', args); » & domLib_timeoutStates.set(id, data); ½ É data.set('timeoutId', setTimeout('domLib_timeoutStates.get(' + id + ').get(\'function\')(domLib_timeoutStates.get(' + id + ').get(\'args\')); domLib_timeoutStates.remove(' + id + ');', in_timeout)); ¿ return id; Á // {{{ domLib_clearTimeout() à $function domLib_clearTimeout(in_id) Å if (in_id > 0) { Ç clearTimeout(in_id); É ' if (domLib_timeoutStates.has(in_id)) Ë B clearTimeout(domLib_timeoutStates.get(in_id).get('timeoutId')) Í ' domLib_timeoutStates.remove(in_id); Ï !// {{{ domLib_getEventPosition() Ñ .function domLib_getEventPosition(in_eventObj) Ó K var eventPosition = new Hash('x', 0, 'y', 0, 'scrollX', 0, 'scrollY', 0); Õ 4 // IE varies depending on standard compliance mode × if (domLib_isIE) Ù O var doc = (domLib_standardsMode ? document.documentElement : document.body); Û ; // NOTE: events may fire before the body has been loaded Ý if (doc) ß A eventPosition.set('x', in_eventObj.clientX + doc.scrollLeft); á @ eventPosition.set('y', in_eventObj.clientY + doc.scrollTop); ã 1 eventPosition.set('scrollX', doc.scrollLeft); å 0 eventPosition.set('scrollY', doc.scrollTop); ç - eventPosition.set('x', in_eventObj.pageX); é - eventPosition.set('y', in_eventObj.pageY); ë I eventPosition.set('scrollX', in_eventObj.pageX - in_eventObj.clientX); í I eventPosition.set('scrollY', in_eventObj.pageY - in_eventObj.clientY); ï return eventPosition; ñ // {{{ domLib_cancelBubble() ó 'function domLib_cancelBubble(in_event) õ 4 var eventObj = in_event ? in_event : window.event; ÷ eventObj.cancelBubble = true; ù #// {{{ domLib_getIFrameReference() û -function domLib_getIFrameReference(in_frame) ý $ if (domLib_isGecko || domLib_isIE) ÿ return in_frame.frameElement; B // we could either do it this way or require an id on the frame // equivalent to the name var name = in_frame.name; ! if (!name || !in_frame.parent) return null; L var candidates = in_frame.parent.document.getElementsByTagName('iframe'); . for (var i = 0; i < candidates.length; i++) # if (candidates[i].name == name) return candidates[i]; return null; #// {{{ domLib_getElementsByClass() -function domLib_getElementsByClass(in_class) S var elements = domLib_isIE5 ? document.all : document.getElementsByTagName('*'); var matches = []; var cnt = 0; + for (var i = 0; i < elements.length; i++) ! O if ((" " + elements[i].className + " ").indexOf(" " + in_class + " ") != -1) # ! matches[cnt++] = elements[i]; % return matches; ' &// {{{ domLib_getElementsByTagNames() ) Afunction domLib_getElementsByTagNames(in_list, in_excludeHidden) + var elements = []; - * for (var i = 0; i < in_list.length; i++) / ; var matches = document.getElementsByTagName(in_list[i]); 1 + for (var j = 0; j < matches.length; j++) 3 F // skip objects that have nested embeds, or else we get "flashing" 5 9 if (matches[j].tagName == 'OBJECT' && domLib_isGecko) 7 & var kids = matches[j].childNodes; 9 var skip = false; ; * for (var k = 0; k < kids.length; k++) = % if (kids[k].tagName == 'EMBED') ? skip = true; A break; C if (skip) continue; E Z if (in_excludeHidden && domLib_getComputedStyle(matches[j], 'visibility') == 'hidden') G continue; I , elements[elements.length] = matches[j]; K return elements; M !// {{{ domLib_getComputedStyle() O 6function domLib_getComputedStyle(in_obj, in_property) Q _ var humpBackProp = in_property.replace(/-(.)/, function (a, b) { return b.toUpperCase(); }); S 6 return eval('in_obj.currentStyle.' + humpBackProp); U P // getComputedStyle() is broken in konqueror, so let's go for the style object W else if (domLib_isKonq) Y a //var humpBackProp = in_property.replace(/-(.)/, function (a, b) { return b.toUpperCase(); }); [ . return eval('in_obj.style.' + in_property); ] \ return document.defaultView.getComputedStyle(in_obj, null).getPropertyValue(in_property); _ // {{{ makeTrue() a function makeTrue() c // {{{ makeFalse() e function makeFalse() g * Title: DOM Tooltip Library i * Version: 0.7.3 k K * Allows developers to add custom tooltips to the webpages. Tooltips are m K * generated using the domTT_activate() function and customized by setting o * a handful of options. q * Contributors: s ' * Josh Gross <josh@jportalhome.com> u & * Jason Rust <jason@rustyparts.com> w K * However, if you use this library, you earn the position of official bug y J * reporter :) Please post questions or problem reports to the newsgroup: { 5 * http://groups-beta.google.com/group/dom-tooltip } N * If you are doing this for commercial work, perhaps you could send me a few E * Starbucks Coffee gift dollars or PayPal bucks to encourage future ? F * developement (NOT REQUIRED). E-mail me for my snail mail address. ? = * Homepage: http://www.mojavelinux.com/projects/domtooltip/ ? > * Newsgroup: http://groups-beta.google.com/group/dom-tooltip ? G * Freshmeat Project: http://freshmeat.net/projects/domtt/?topic_id=92 ? * Updated: 2005/07/16 ? * Supported Browsers: ? C * Mozilla (Gecko), IE 5.5+, IE on Mac, Safari, Konqueror, Opera 7 ? * Usage: ? ' * Please see the HOWTO documentation. ? **/ ? // {{{ settings (editable) ? .// IE mouse events seem to be off by 2 pixels ? ,var domTT_offsetX = (domLib_isIE ? -2 : 0); ? +var domTT_offsetY = (domLib_isIE ? 4 : 2); ? #var domTT_direction = 'southeast'; ? /var domTT_mouseHeight = domLib_isIE ? 13 : 19; ¡ var domTT_closeLink = 'X'; £ var domTT_closeAction = 'hide'; ¥ var domTT_activateDelay = 500; § var domTT_maxWidth = false; © var domTT_styleClass = 'domTT'; « var domTT_fade = 'neither'; var domTT_lifetime = 0; ¯ var domTT_grid = 0; ± var domTT_trailDelay = 200; ³ )var domTT_useGlobalMousePosition = true; µ &var domTT_postponeActivation = false; · 'var domTT_tooltipIdPrefix = '[domTT]'; ¹ &var domTT_screenEdgeDetection = true; » !var domTT_screenEdgePadding = 4; ½ var domTT_oneOnly = false; ¿ var domTT_cloneNodes = false; Á #var domTT_detectCollisions = true; à #var domTT_bannedTags = ['OPTION']; Å var domTT_draggable = false; Ç .if (typeof(domTT_dragEnabled) == 'undefined') É domTT_dragEnabled = false; Ë // {{{ globals (DO NOT EDIT) Í #var domTT_predefined = new Hash(); Ï ;// tooltips are keyed on both the tip id and the owner id, Ñ /// since events can originate on either object Ó !var domTT_tooltips = new Hash(); Õ var domTT_lastOpened = 0; × "var domTT_documentLoaded = false; Ù var domTT_mousePosition = null; Û // {{{ document.onmousemove Ý 7if (domLib_useLibrary && domTT_useGlobalMousePosition) ß + document.onmousemove = function(in_event) á D if (typeof(in_event) == 'undefined') { in_event = window.event; } ã ; domTT_mousePosition = domLib_getEventPosition(in_event); å 0 if (domTT_dragEnabled && domTT_dragMouseDown) ç domTT_dragUpdate(in_event); é // {{{ domTT_activate() ë +function domTT_activate(in_this, in_event) í b if (!domLib_useLibrary || (domTT_postponeActivation && !domTT_documentLoaded)) { return false; } ï O // make sure in_event is set (for IE, some cases we have to use window.event) ñ C if (typeof(in_event) == 'undefined') { in_event = window.event; } ó 9 // don't allow tooltips on banned tags (such as OPTION) õ if (in_event != null) { ÷ L var target = in_event.srcElement ? in_event.srcElement : in_event.target; ù l if (target != null && (',' + domTT_bannedTags.join(',') + ',').indexOf(',' + target.tagName + ',') != -1) û var owner = document.body; ý - // we have an active event so get the owner ÿ N if (in_event != null && in_event.type.match(/key|mouse|click|contextmenu/i)) < // make sure we have nothing higher than the body element F if (in_this.nodeType && in_this.nodeType != document.DOCUMENT_NODE) owner = in_this; < // non active event (make sure we were passed a string id) M if (typeof(in_this) != 'object' && !(owner = domTT_tooltips.get(in_this))) 3 // NOTE: two steps to avoid "flashing" in gecko / var embryo = document.createElement('div'); . owner = document.body.appendChild(embryo); ! owner.style.display = 'none'; owner.id = in_this; ( // make sure the owner has a unique id if (!owner.id) + owner.id = '__autoId' + domLib_autoId++; 7 // see if we should only be opening one tip at a time G // NOTE: this is not "perfect" yet since it really steps on any other H // tip working on fade out or delayed close, but it get's the job done ! ( if (domTT_oneOnly && domTT_lastOpened) # & domTT_deactivate(domTT_lastOpened); % domTT_lastOpened = owner.id; ' - var tooltip = domTT_tooltips.get(owner.id); ) if (tooltip) + 1 if (tooltip.get('eventType') != in_event.type) - ( if (tooltip.get('type') == 'greasy') / + tooltip.set('closeAction', 'destroy'); 1 domTT_deactivate(owner.id); 3 1 else if (tooltip.get('status') != 'inactive') 5 return owner.id; 7 else 9 , if (tooltip.get('status') == 'inactive') ; & tooltip.set('status', 'pending'); = r tooltip.set('activateTimeout', domLib_setTimeout(domTT_runShow, tooltip.get('delay'), [owner.id, in_event])); ? * // either pending or active, let it be A # // setup the default options hash C var options = new Hash( E 'caption', '', G 'content', '', I 'clearMouse', true, K $ 'closeAction', domTT_closeAction, M 'closeLink', domTT_closeLink, O ! 'delay', domTT_activateDelay, Q 'direction', domTT_direction, S 'draggable', domTT_draggable, U 'fade', domTT_fade, W 'fadeMax', 100, Y 'grid', domTT_grid, [ , 'id', domTT_tooltipIdPrefix + owner.id, ] 'inframe', false, _ 'lifetime', domTT_lifetime, a 'offsetX', domTT_offsetX, c 'offsetY', domTT_offsetY, e 'parent', document.body, g 'position', 'absolute', i " 'styleClass', domTT_styleClass, k 'type', 'greasy', m 'trail', false, o 'lazy', false q / // load in the options from the function call s / for (var i = 2; i < arguments.length; i += 2) u // load in predefined w $ if (arguments[i] == 'predefined') y C var predefinedOptions = domTT_predefined.get(arguments[i + 1]); { 0 for (var j in predefinedOptions.elementData) } . options.set(j, predefinedOptions.get(j)); // set option ? 0 options.set(arguments[i], arguments[i + 1]); ? D options.set('eventType', in_event != null ? in_event.type : null); ? 0 // immediately set the status text if provided ? if (options.has('statusText')) ? A try { window.status = options.get('statusText'); } catch(e) {} ? V // if we didn't give content...assume we just wanted to change the status and return ? ` if (!options.has('content') || options.get('content') == '' || options.get('content') == null) ? . if (typeof(owner.onmouseout) != 'function') ? N owner.onmouseout = function(in_event) { domTT_mouseout(this, in_event); }; ? return owner.id; ? options.set('owner', owner); ? domTT_create(options); ? // determine the show delay ? ? options.set('delay', (in_event != null && in_event.type.match(/click|mousedown|contextmenu/i)) ? 0 : parseInt(options.get('delay'))); ? ( domTT_tooltips.set(owner.id, options); ? 1 domTT_tooltips.set(options.get('id'), options); ¡ # options.set('status', 'pending'); £ o options.set('activateTimeout', domLib_setTimeout(domTT_runShow, options.get('delay'), [owner.id, in_event])); ¥ return owner.id; § // {{{ domTT_create() © "function domTT_create(in_options) « ) var tipOwner = in_options.get('owner'); + var parentObj = in_options.get('parent'); ¯ @ var parentDoc = parentObj.ownerDocument || parentObj.document; ± # // create the tooltip and hide it ³ 1 // NOTE: two steps to avoid "flashing" in gecko µ . var embryo = parentDoc.createElement('div'); · - var tipObj = parentObj.appendChild(embryo); ¹ % tipObj.style.position = 'absolute'; » tipObj.style.left = '0px'; ½ tipObj.style.top = '0px'; ¿ % tipObj.style.visibility = 'hidden'; Á # tipObj.id = in_options.get('id'); à 2 tipObj.className = in_options.get('styleClass'); Å var contentBlock; Ç var tableLayout = false; É o if (in_options.get('caption') || (in_options.get('type') == 'sticky' && in_options.get('caption') !== false)) Ë tableLayout = true; Í 3 // layout the tip with a hidden formatting table Ï M var tipLayoutTable = tipObj.appendChild(parentDoc.createElement('table')); Ñ 4 tipLayoutTable.style.borderCollapse = 'collapse'; Ó if (domLib_isKHTML) Õ # tipLayoutTable.cellSpacing = 0; × U var tipLayoutTbody = tipLayoutTable.appendChild(parentDoc.createElement('tbody')); Ù var numCaptionCells = 0; Û N var captionRow = tipLayoutTbody.appendChild(parentDoc.createElement('tr')); Ý K var captionCell = captionRow.appendChild(parentDoc.createElement('td')); ß % captionCell.style.padding = '0px'; á I var caption = captionCell.appendChild(parentDoc.createElement('div')); ã ! caption.className = 'caption'; å if (domLib_isIE50) ç " caption.style.height = '100%'; é * if (in_options.get('caption').nodeType) ë o caption.appendChild(domTT_cloneNodes ? in_options.get('caption').cloneNode(1) : in_options.get('caption')); í 2 caption.innerHTML = in_options.get('caption'); ï * if (in_options.get('type') == 'sticky') ñ var numCaptionCells = 2; ó N var closeLinkCell = captionRow.appendChild(parentDoc.createElement('td')); õ ( closeLinkCell.style.padding = '0px'; ÷ N var closeLink = closeLinkCell.appendChild(parentDoc.createElement('div')); ù $ closeLink.className = 'caption'; û if (domLib_isIE50) ý % closeLink.style.height = '100%'; ÿ ( closeLink.style.textAlign = 'right'; 1 closeLink.style.cursor = domLib_stylePointer; ( // merge the styles of the two cells M closeLink.style.borderLeftWidth = caption.style.borderRightWidth = '0px'; E closeLink.style.paddingLeft = caption.style.paddingRight = '0px'; C closeLink.style.marginLeft = caption.style.marginRight = '0px'; - if (in_options.get('closeLink').nodeType) E closeLink.appendChild(in_options.get('closeLink').cloneNode(1)); 7 closeLink.innerHTML = in_options.get('closeLink'); " closeLink.onclick = function() # domTT_deactivate(tipOwner.id); }; . closeLink.onmousedown = function(in_event) F if (typeof(in_event) == 'undefined') { in_event = window.event; } " in_event.cancelBubble = true; T // MacIE has to have a newline at the end and must be made with createTextNode() if (domLib_isMacIE) ! ? closeLinkCell.appendChild(parentDoc.createTextNode("\n")); # S // MacIE has to have a newline at the end and must be made with createTextNode() % if (domLib_isMacIE) ' < captionCell.appendChild(parentDoc.createTextNode("\n")); ) N var contentRow = tipLayoutTbody.appendChild(parentDoc.createElement('tr')); + K var contentCell = contentRow.appendChild(parentDoc.createElement('td')); - % contentCell.style.padding = '0px'; / if (numCaptionCells) 1 & if (domLib_isIE || domLib_isOpera) 3 + contentCell.colSpan = numCaptionCells; 5 : contentCell.setAttribute('colspan', numCaptionCells); 7 J contentBlock = contentCell.appendChild(parentDoc.createElement('div')); 9 ' contentBlock.style.height = '100%'; ; E contentBlock = tipObj.appendChild(parentDoc.createElement('div')); = & contentBlock.className = 'contents'; ? * var content = in_options.get('content'); A > // allow content has a function to return the actual content C & if (typeof(content) == 'function') { E + content = content(in_options.get('id')); G * if (content != null && content.nodeType) I O contentBlock.appendChild(domTT_cloneNodes ? content.cloneNode(1) : content); K $ contentBlock.innerHTML = content; M " // adjust the width if specified O if (in_options.has('width')) Q A tipObj.style.width = parseInt(in_options.get('width')) + 'px'; S - // check if we are overridding the maxWidth U ] // if the browser supports maxWidth, the global setting will be ignored (assume stylesheet) W var maxWidth = domTT_maxWidth; Y ! if (in_options.has('maxWidth')) [ 9 if ((maxWidth = in_options.get('maxWidth')) === false) ] 3 tipObj.style.maxWidth = domLib_styleNoMaxWidth; _ 4 maxWidth = parseInt(in_options.get('maxWidth')); a , tipObj.style.maxWidth = maxWidth + 'px'; c 7 // HACK: fix lack of maxWidth in CSS for KHTML and IE e ] if (maxWidth !== false && (domLib_isIE || domLib_isKHTML) && tipObj.offsetWidth > maxWidth) g ( tipObj.style.width = maxWidth + 'px'; i 4 in_options.set('offsetWidth', tipObj.offsetWidth); k 6 in_options.set('offsetHeight', tipObj.offsetHeight); m d // konqueror miscalcuates the width of the containing div when using the layout table based on the o & // border size of the containing div q : if (domLib_isKonq && tableLayout && !tipObj.style.width) s f var left = document.defaultView.getComputedStyle(tipObj, '').getPropertyValue('border-left-width'); u h var right = document.defaultView.getComputedStyle(tipObj, '').getPropertyValue('border-right-width'); w y C left = left.substring(left.indexOf(':') + 2, left.indexOf(';')); { G right = right.substring(right.indexOf(':') + 2, right.indexOf(';')); } V var correction = 2 * ((left ? parseInt(left) : 0) + (right ? parseInt(right) : 0)); A tipObj.style.width = (tipObj.offsetWidth - correction) + 'px'; ? P // if a width is not set on an absolutely positioned object, both IE and Opera ? N // will attempt to wrap when it spills outside of body...we cannot have that ? $ if (domLib_isIE || domLib_isOpera) ? if (!tipObj.style.width) ? 0 // HACK: the correction here is for a border ? 9 tipObj.style.width = (tipObj.offsetWidth - 2) + 'px'; ? / // HACK: the correction here is for a border ? : tipObj.style.height = (tipObj.offsetHeight - 2) + 'px'; ? 0 // store placement offsets from event position ? var offsetX, offsetY; ? // tooltip floats ? ` if (in_options.get('position') == 'absolute' && !(in_options.has('x') && in_options.has('y'))) ? 2 // determine the offset relative to the pointer ? ' switch (in_options.get('direction')) ? case 'northeast': ? ) offsetX = in_options.get('offsetX'); ¡ C offsetY = 0 - tipObj.offsetHeight - in_options.get('offsetY'); £ break; ¥ case 'northwest': § B offsetX = 0 - tipObj.offsetWidth - in_options.get('offsetX'); © case 'north': « 2 offsetX = 0 - parseInt(tipObj.offsetWidth/2); case 'southwest': ¯ ) offsetY = in_options.get('offsetY'); ± case 'southeast': ³ case 'south': µ R // if we are in an iframe, get the offsets of the iframe in the parent document · ! if (in_options.get('inframe')) ¹ 6 var iframeObj = domLib_getIFrameReference(window); » if (iframeObj) ½ 5 var frameOffsets = domLib_getOffsets(iframeObj); ¿ ) offsetX += frameOffsets.get('left'); Á ( offsetY += frameOffsets.get('top'); à // tooltip is fixed Å offsetX = 0; Ç offsetY = 0; É " in_options.set('trail', false); Ë ) // set the direction-specific offsetX/Y Í % in_options.set('offsetX', offsetX); Ï % in_options.set('offsetY', offsetY); Ñ Y if (in_options.get('clearMouse') && in_options.get('direction').indexOf('south') != -1) Ó 4 in_options.set('mouseOffset', domTT_mouseHeight); Õ $ in_options.set('mouseOffset', 0); × 8 if (domLib_canFade && typeof(Fadomatic) == 'function') Ù + if (in_options.get('fade') != 'neither') Û Q var fadeHandler = new Fadomatic(tipObj, 10, 0, 0, in_options.get('fadeMax')); Ý / in_options.set('fadeHandler', fadeHandler); ß % in_options.set('fade', 'neither'); á // setup mouse events ã L if (in_options.get('trail') && typeof(tipOwner.onmousemove) != 'function') å R tipOwner.onmousemove = function(in_event) { domTT_mousemove(this, in_event); }; ç 0 if (typeof(tipOwner.onmouseout) != 'function') é P tipOwner.onmouseout = function(in_event) { domTT_mouseout(this, in_event); }; ë ) if (in_options.get('type') == 'sticky') í d if (in_options.get('position') == 'absolute' && domTT_dragEnabled && in_options.get('draggable')) ï if (domLib_isIE) ñ = captionRow.onselectstart = function() { return false; }; ó // setup drag õ X captionRow.onmousedown = function(in_event) { domTT_dragStart(tipObj, in_event); }; ÷ P captionRow.onmousemove = function(in_event) { domTT_dragUpdate(in_event); }; ù < captionRow.onmouseup = function() { domTT_dragStop(); }; û . else if (in_options.get('type') == 'velcro') ý * /* can use once we have deactivateDelay ÿ * tipObj.onmouseover = function(in_event) E if (typeof(in_event) == 'undefined') { in_event = window.event; } 0 var tooltip = domTT_tooltips.get(tipObj.id); % if (in_options.get('lifetime')) { ; domLib_clearTimeout(in_options.get('lifetimeTimeout'); }; */ ) tipObj.onmouseout = function(in_event) U if (!domLib_isDescendantOf(in_event[domLib_eventTo], tipObj, domTT_bannedTags)) { 6 // NOTE: this might interfere with links in the tip & tipObj.onclick = function(in_event) " domTT_deactivate(tipOwner.id); / if (in_options.get('position') == 'relative') & tipObj.style.position = 'relative'; ! in_options.set('node', tipObj); ' in_options.set('status', 'inactive'); // {{{ domTT_show() ! *// in_id is either tip id or the owner id # %function domTT_show(in_id, in_event) % P // should always find one since this call would be cancelled if tip was killed ' * var tooltip = domTT_tooltips.get(in_id); ) % var status = tooltip.get('status'); + # var tipObj = tooltip.get('node'); - , if (tooltip.get('position') == 'absolute') / var mouseX, mouseY; 1 , if (tooltip.has('x') && tooltip.has('y')) 3 mouseX = tooltip.get('x'); 5 mouseY = tooltip.get('y'); 7 | else if (!domTT_useGlobalMousePosition || domTT_mousePosition == null || status == 'active' || tooltip.get('delay') == 0) 9 : var eventPosition = domLib_getEventPosition(in_event); ; ( var eventX = eventPosition.get('x'); = ( var eventY = eventPosition.get('y'); ? if (tooltip.get('inframe')) A , eventX -= eventPosition.get('scrollX'); C , eventY -= eventPosition.get('scrollY'); E F // only move tip along requested trail axis when updating position G < if (status == 'active' && tooltip.get('trail') !== true) I & var trail = tooltip.get('trail'); K if (trail == 'x') M mouseX = eventX; O % mouseY = tooltip.get('mouseY'); Q else if (trail == 'y') S % mouseX = tooltip.get('mouseX'); U mouseY = eventY; W mouseX = eventX; Y mouseY = eventY; [ * mouseX = domTT_mousePosition.get('x'); ] * mouseY = domTT_mousePosition.get('y'); _ 2 mouseX -= domTT_mousePosition.get('scrollX'); a 2 mouseY -= domTT_mousePosition.get('scrollY'); c % // we are using a grid for updates e if (tooltip.get('grid')) g W // if this is not a mousemove event or it is a mousemove event on an active tip and i + // the movement is bigger than the grid k Á if (in_event.type != 'mousemove' || (status == 'active' && (Math.abs(tooltip.get('lastX') - mouseX) > tooltip.get('grid') || Math.abs(tooltip.get('lastY') - mouseY) > tooltip.get('grid')))) m " tooltip.set('lastX', mouseX); o " tooltip.set('lastY', mouseY); q 4 // did not satisfy the grid movement requirement s return false; u B // mouseX and mouseY store the last acknowleged mouse position, w # // good for trailing on one axis y ! tooltip.set('mouseX', mouseX); { ! tooltip.set('mouseY', mouseY); } var coordinates; ! if (domTT_screenEdgeDetection) ? ) coordinates = domTT_correctEdgeBleed( ? tooltip.get('offsetWidth'), ? ! tooltip.get('offsetHeight'), ? mouseX, ? mouseY, ? tooltip.get('offsetX'), ? tooltip.get('offsetY'), ? tooltip.get('mouseOffset'), ? 4 tooltip.get('inframe') ? window.parent : window ? ); ? coordinates = { ? + 'x' : mouseX + tooltip.get('offsetX'), ? G 'y' : mouseY + tooltip.get('offsetY') + tooltip.get('mouseOffset') ? // update the position ? , tipObj.style.left = coordinates.x + 'px'; ? + tipObj.style.top = coordinates.y + 'px'; ¡ C // increase the tip zIndex so it goes over previously shown tips £ ) tipObj.style.zIndex = domLib_zIndex++; ¥ @ // if tip is not active, active it now and check for a fade in § if (status == 'pending') © // unhide the tooltip « # tooltip.set('status', 'active'); tipObj.style.display = ''; ¯ ' tipObj.style.visibility = 'visible'; ± " var fade = tooltip.get('fade'); ³ if (fade != 'neither') µ 1 var fadeHandler = tooltip.get('fadeHandler'); · ( if (fade == 'out' || fade == 'both') ¹ fadeHandler.haltFade(); » if (fade == 'out') ½ fadeHandler.halt(); ¿ ' if (fade == 'in' || fade == 'both') Á fadeHandler.fadeIn(); à G if (tooltip.get('type') == 'greasy' && tooltip.get('lifetime') != 0) Å q tooltip.set('lifetimeTimeout', domLib_setTimeout(domTT_runDeactivate, tooltip.get('lifetime'), [tipObj.id])); Ç F if (tooltip.get('position') == 'absolute' && domTT_detectCollisions) É . // utilize original collision element cache Ë 0 domLib_detectCollisions(tipObj, false, true); Í // {{{ domTT_close() Ï R// in_handle can either be an child object of the tip, the tip id or the owner id Ñ function domTT_close(in_handle) Ó var id; Õ : if (typeof(in_handle) == 'object' && in_handle.nodeType) × var obj = in_handle; Ù 1 while (!obj.id || !domTT_tooltips.get(obj.id)) Û obj = obj.parentNode; Ý : if (obj.nodeType != document.ELEMENT_NODE) { return; } ß id = obj.id; á id = in_handle; ã domTT_deactivate(id); å // {{{ domTT_closeAll() ç /// run through the tooltips and close them all é function domTT_closeAll() ë - // NOTE: this will iterate 2x # of tooltips í . for (var id in domTT_tooltips.elementData) { ï domTT_close(id); ñ // {{{ domTT_deactivate() ó .// in_id is either the tip id or the owner id õ !function domTT_deactivate(in_id) ÷ & var status = tooltip.get('status'); ù if (status == 'pending') û = // cancel the creation of this tip if it is still pending ý 8 domLib_clearTimeout(tooltip.get('activateTimeout')); ÿ & tooltip.set('status', 'inactive'); else if (status == 'active') if (tooltip.get('lifetime')) 9 domLib_clearTimeout(tooltip.get('lifetimeTimeout')); % var tipObj = tooltip.get('node'); - if (tooltip.get('closeAction') == 'hide') $ var fade = tooltip.get('fade'); if (fade != 'neither') 3 var fadeHandler = tooltip.get('fadeHandler'); * if (fade == 'out' || fade == 'both') fadeHandler.fadeOut(); else fadeHandler.hide(); else $ tipObj.style.display = 'none'; / tooltip.get('parent').removeChild(tipObj); 4 domTT_tooltips.remove(tooltip.get('owner').id); ! . domTT_tooltips.remove(tooltip.get('id')); # ! if (domTT_detectCollisions) { % ? // unhide all of the selects that are owned by this object ' 0 // utilize original collision element cache ) 2 domLib_detectCollisions(tipObj, true, true); + // {{{ domTT_mouseout() - ,function domTT_mouseout(in_owner, in_event) / + if (!domLib_useLibrary) { return false; } 1 \ var toChild = domLib_isDescendantOf(in_event[domLib_eventTo], in_owner, domTT_bannedTags); 3 0 var tooltip = domTT_tooltips.get(in_owner.id); 5 X if (tooltip && (tooltip.get('type') == 'greasy' || tooltip.get('status') != 'active')) 7 ? // deactivate tip if exists and we moved away from the owner 9 if (!toChild) ; " domTT_deactivate(in_owner.id); = = try { window.status = window.defaultStatus; } catch(e) {} ? else if (!toChild) A < try { window.status = window.defaultStatus; } catch(e) {} C // {{{ domTT_mousemove() E -function domTT_mousemove(in_owner, in_event) G K if (tooltip && tooltip.get('trail') && tooltip.get('status') == 'active') I ! // see if we are trailing lazy K if (tooltip.get('lazy')) M P domLib_setTimeout(domTT_runShow, domTT_trailDelay, [in_owner.id, in_event]); O & domTT_show(in_owner.id, in_event); Q // {{{ domTT_addPredefined() S $function domTT_addPredefined(in_id) U var options = new Hash(); W / for (var i = 1; i < arguments.length; i += 2) Y / options.set(arguments[i], arguments[i + 1]); [ ' domTT_predefined.set(in_id, options); ] // {{{ domTT_correctEdgeBleed() _ tfunction domTT_correctEdgeBleed(in_width, in_height, in_x, in_y, in_offsetX, in_offsetY, in_mouseOffset, in_window) a var win, doc; c var bleedRight, bleedBottom; e 6 var pageHeight, pageWidth, pageYOffset, pageXOffset; g var x = in_x + in_offsetX; i - var y = in_y + in_offsetY + in_mouseOffset; k @ win = (typeof(in_window) == 'undefined' ? window : in_window); m K // Gecko and IE swaps values of clientHeight, clientWidth properties when o G // in standards compliance mode from documentElement to document.body q w doc = ((domLib_standardsMode && (domLib_isIE || domLib_isGecko)) ? win.document.documentElement : win.document.body); s // for IE in compliance mode u ! pageHeight = doc.clientHeight; w pageWidth = doc.clientWidth; y pageYOffset = doc.scrollTop; { pageXOffset = doc.scrollLeft; } ! pageHeight = win.innerHeight; ! pageYOffset = win.pageYOffset; ? ! pageXOffset = win.pageXOffset; ? A // we are bleeding off the right, move tip over to stay on page ? M // logic: take x position, add width and subtract from effective page width ? ^ if ((bleedRight = (x - pageXOffset) + in_width - (pageWidth - domTT_screenEdgePadding)) > 0) ? x -= bleedRight; ? ? // we are bleeding to the left, move tip over to stay on page ? B // if tip doesn't fit, we will go back to bleeding off the right ? ? // logic: take x position and check if less than edge padding ? 2 if ((x - pageXOffset) < domTT_screenEdgePadding) ? - x = domTT_screenEdgePadding + pageXOffset; ? 5 // if we are bleeding off the bottom, flip to north ? O // logic: take y position, add height and subtract from effective page height ? a if ((bleedBottom = (y - pageYOffset) + in_height - (pageHeight - domTT_screenEdgePadding)) > 0) ? % y = in_y - in_height - in_offsetY; ? 2 // if we are bleeding off the top, flip to south ? C // if tip doesn't fit, we will go back to bleeding off the bottom ¡ ? // logic: take y position and check if less than edge padding £ 2 if ((y - pageYOffset) < domTT_screenEdgePadding) ¥ - y = in_y + domTT_mouseHeight + in_offsetY; § return {'x' : x, 'y' : y}; © // {{{ domTT_isActive() « function domTT_isActive(in_id) 4 if (!tooltip || tooltip.get('status') != 'active') ¯ // {{{ domTT_runXXX() ± T// All of these domMenu_runXXX() methods are used by the event handling sections to ³ =// avoid the circular memory leaks caused by inner functions µ Bfunction domTT_runDeactivate(args) { domTT_deactivate(args[0]); } · ?function domTT_runShow(args) { domTT_show(args[0], args[1]); } ¹ // {{{ domTT_replaceTitles() » +function domTT_replaceTitles(in_decorator) ½ 6 var elements = domLib_getElementsByClass('tooltip'); ¿ if (elements[i].title) Á var content; à + if (typeof(in_decorator) == 'function') Å ) content = in_decorator(elements[i]); Ç ! content = elements[i].title; É = content = content.replace(new RegExp('\'', 'g'), '\\\''); Ë w elements[i].onmouseover = new Function('in_event', "domTT_activate(this, in_event, 'content', '" + content + "')"); Í elements[i].title = ''; Ï // {{{ domTT_update() Ñ G// Allow authors to update the contents of existing tips using the DOM Ó G// Unfortunately, the tip must already exist, or else no work is done. Õ 4// TODO: make getting at content or caption cleaner × -function domTT_update(handle, content, type) Ù 6 // type defaults to 'content', can also be 'caption' Û " if (typeof(type) == 'undefined') Ý type = 'content'; ß ' var tip = domTT_tooltips.get(handle); á if (!tip) ã var tipObj = tip.get('node'); å var updateNode; ç if (type == 'content') é // <div class="contents">... ë " updateNode = tipObj.firstChild; í * if (updateNode.className != 'contents') ï B // <table><tbody><tr>...</tr><tr><td><div class="contents">... ñ T updateNode = updateNode.firstChild.firstChild.nextSibling.firstChild.firstChild; ó * if (updateNode.className == 'contents') õ // missing caption ÷ return; ù 4 // <table><tbody><tr><td><div class="caption">... û G updateNode = updateNode.firstChild.firstChild.firstChild.firstChild; ý * // TODO: allow for a DOM node as content ÿ ! updateNode.innerHTML = content; var domTT_dragEnabled = true; var domTT_currentDragTarget; var domTT_dragMouseDown; var domTT_dragOffsetLeft; var domTT_dragOffsetTop; // {{{ domTT_dragStart() ,function domTT_dragStart(in_this, in_event) C if (typeof(in_event) == 'undefined') { in_event = window.event; } 1 var eventButton = in_event[domLib_eventButton]; * if (eventButton != 1 && !domLib_isKHTML) $ domTT_currentDragTarget = in_this; in_this.style.cursor = 'move'; // upgrade our z-index ) in_this.style.zIndex = ++domLib_zIndex; 8 var eventPosition = domLib_getEventPosition(in_event); 2 var targetPosition = domLib_getOffsets(in_this); ! M domTT_dragOffsetLeft = eventPosition.get('x') - targetPosition.get('left'); # K domTT_dragOffsetTop = eventPosition.get('y') - targetPosition.get('top'); % domTT_dragMouseDown = true; ' // {{{ domTT_dragUpdate() ) $function domTT_dragUpdate(in_event) + if (domTT_dragMouseDown) - if (domLib_isGecko) / + window.getSelection().removeAllRanges() 1 C if (domTT_useGlobalMousePosition && domTT_mousePosition != null) 3 , var eventPosition = domTT_mousePosition; 5 _ domTT_currentDragTarget.style.left = (eventPosition.get('x') - domTT_dragOffsetLeft) + 'px'; 7 ] domTT_currentDragTarget.style.top = (eventPosition.get('y') - domTT_dragOffsetTop) + 'px'; 9 $ // update the collision detection ; 4 domLib_detectCollisions(domTT_currentDragTarget); = // {{{ domTT_dragStop() ? function domTT_dragStop() A if (domTT_dragMouseDown) { C domTT_dragMouseDown = false; E 4 domTT_currentDragTarget.style.cursor = 'default'; G " domTT_currentDragTarget = null; I * Title: alphaAPI K * Original Author: chrisken M G * Original Url: http://www.cs.utexas.edu/users/chrisken/alphaapi.html O 5 * Modified by Dan Allen <dan.allen@mojavelinux.com> Q K * Note: When the stopAlpha is reached and it is equal to 0, the element's S 7 * style is set to display: none to fix a bug in domTT U efunction alphaAPI(element, fadeInDelay, fadeOutDelay, startAlpha, stopAlpha, offsetTime, deltaAlpha) W // {{{ properties Y Z this.element = typeof(element) == 'object' ? element : document.getElementById(element); [ ' this.fadeInDelay = fadeInDelay || 40; ] 7 this.fadeOutDelay = fadeOutDelay || this.fadeInDelay; _ this.startAlpha = startAlpha; a this.stopAlpha = stopAlpha; c 8 // make sure a filter exists so an error is not thrown e / if (typeof(this.element.filters) == 'object') g 9 if (typeof(this.element.filters.alpha) == 'undefined') i 6 this.element.style.filter += 'alpha(opacity=100)'; k - this.offsetTime = (offsetTime || 0) * 1000; m % this.deltaAlpha = deltaAlpha || 10; o this.timer = null; q this.paused = false; s this.started = false; u this.cycle = false; w this.command = function() {}; y return this; { // }}} } (// use prototype methods to save memory // {{{ repeat() ? -alphaAPI.prototype.repeat = function(repeat) ? ( this.cycle = repeat ? true : false; ? // {{{ setAlphaBy() ? 5alphaAPI.prototype.setAlphaBy = function(deltaAlpha) ? 1 this.setAlpha(this.getAlpha() + deltaAlpha); ? // {{{ toggle() ? 'alphaAPI.prototype.toggle = function() ? if (!this.started) ? { ? this.start(); ? } ? else if (this.paused) ? this.unpause(); ? else ? this.pause(); ? // {{{ timeout() ¡ 6alphaAPI.prototype.timeout = function(command, delay) £ this.command = command; ¥ - this.timer = setTimeout(command, delay); § // {{{ setAlpha() © 0alphaAPI.prototype.setAlpha = function(opacity) « 2 if (typeof(this.element.filters) == 'object') 6 this.element.filters.alpha.opacity = opacity; ¯ - else if (this.element.style.setProperty) ± F this.element.style.setProperty('opacity', opacity / 100, ''); ³ & // handle the case of mozilla < 1.7 µ K this.element.style.setProperty('-moz-opacity', opacity / 100, ''); · " // handle the case of old kthml ¹ M this.element.style.setProperty('-khtml-opacity', opacity / 100, ''); » } ½ // {{{ getAlpha() ¿ )alphaAPI.prototype.getAlpha = function() Á 3 return this.element.filters.alpha.opacity; à 2 else if (this.element.style.getPropertyValue) Å E var opacityValue = this.element.style.getPropertyValue('opacity'); Ç if (opacityValue == '') É G opacityValue = this.element.style.getPropertyValue('-moz-opacity'); Ë " // handle the case of old khtml Í I opacityValue = this.element.style.getPropertyValue('-khtml-opacity'); Ï # return opacityValue * 100; Ñ return 100; Ó // {{{ start() Õ &alphaAPI.prototype.start = function() × this.started = true; Ù $ this.setAlpha(this.startAlpha); Û // determine direction Ý * if (this.startAlpha > this.stopAlpha) ß var instance = this; á K this.timeout(function() { instance.fadeOut(); }, this.offsetTime); ã J this.timeout(function() { instance.fadeIn(); }, this.offsetTime); å // {{{ stop() ç %alphaAPI.prototype.stop = function() é this.started = false; ë # this.setAlpha(this.stopAlpha); í if (this.stopAlpha == 0) ï ' this.element.style.display = 'none'; ñ this.stopTimer(); ó " this.command = function() {}; õ // {{{ reset() ÷ &alphaAPI.prototype.reset = function() ù // {{{ pause() û &alphaAPI.prototype.pause = function() ý this.paused = true; ÿ // {{{ unpause() (alphaAPI.prototype.unpause = function() this.paused = false; { this.command(); // {{{ stopTimer() *alphaAPI.prototype.stopTimer = function() clearTimeout(this.timer); this.timer = null; // {{{ fadeOut() (alphaAPI.prototype.fadeOut = function() * if (this.getAlpha() > this.stopAlpha) / this.setAlphaBy(-1 * this.deltaAlpha); M this.timeout(function() { instance.fadeOut(); }, this.fadeOutDelay); if (this.cycle) { ! var instance = this; ! O this.timeout(function() { instance.fadeIn(); }, this.fadeInDelay); # } % else ' if (this.stopAlpha == 0) ) ) this.element.style.display = 'none'; + " this.started = false; - // {{{ fadeIn() / 'alphaAPI.prototype.fadeIn = function() 1 + if (this.getAlpha() < this.startAlpha) 3 * this.setAlphaBy(this.deltaAlpha); 5 K this.timeout(function() { instance.fadeIn(); }, this.fadeInDelay); 7 Q this.timeout(function() { instance.fadeOut(); }, this.fadeOutDelay); 9 (var domTT_classPrefix = 'domTTOverlib'; ; 2function tooltip(link, event, content, caption) { = if (content && caption) { ? U domTT_activate(link, event, 'caption', caption, 'content', content, 'trail', 'x'); A } else if (content) { C A domTT_activate(link, event, 'content', content, 'trail', 'x'); E } else { G 9function stickyTooltip (link, event, content, caption) { I s return domTT_activate(link, event, 'caption', caption, 'content', content, 'type', 'sticky', 'draggable', true); K _ return domTT_activate(link, event, 'content', content, 'type', 'sticky', 'draggable', true); M } O #javax/servlet/jsp/SkipPageException ? Q R S getBufferSize ()I ? U V clearBuffer v X Y Z handlePageException (Ljava/lang/Throwable;)V \ ^ ] java/lang/Throwable _ X getMessage a b c log *(Ljava/lang/String;Ljava/lang/Throwable;)V e f g releasePageContext "(Ljavax/servlet/jsp/PageContext;)V request 'Ljavax/servlet/http/HttpServletRequest; response (Ljavax/servlet/http/HttpServletResponse; pageContext Ljavax/servlet/jsp/PageContext; out Ljavax/servlet/jsp/JspWriter; _jspx_out _jspx_page_context t Ljava/lang/Throwable; SourceFile tooltip_005fjs_jsp.java SourceDebugExtension 1 ? I¸ ³ » Y· ³ ² "¹ $ W² *¹ $ W² ,¹ $ W² .¹ $ W² 0¹ $ W± 2 "