mirror of
https://github.com/e107inc/e107.git
synced 2025-02-21 23:23:00 +01:00
77 lines
1.7 KiB
JavaScript
77 lines
1.7 KiB
JavaScript
/*
|
|
* e107 website system
|
|
*
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
|
* Released under the terms and conditions of the
|
|
* GNU General Public License (http://gnu.org).
|
|
*
|
|
* e107 Tooltip Widget
|
|
* Create static/ajax tooltips (unobtrusive Javascript)
|
|
*
|
|
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/core/tooltip.js,v $
|
|
* $Revision$
|
|
* $Date$
|
|
* $Author$
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* Global prefs
|
|
*/
|
|
e107Base.setPrefs('core-tooltip', {
|
|
backgroundColor: '', // background color (used if set)
|
|
borderColor: '', // Default border color (used if set)
|
|
textColor: '', // Default text color (used if set)
|
|
textShadowColor: '', // Default text shadow color (used if set)
|
|
align: "left", // left (default) | right
|
|
maxWidth: 250, // Max tooltip width
|
|
delay: 250, // Default delay before tooltip appears in ms
|
|
mouseFollow: true, // Tooltips follows the mouse moving
|
|
opacity: .75, // Default tooltips opacity
|
|
appearDuration: .25, // Default appear duration in sec
|
|
hideDuration: .25 // Default disappear duration in sec
|
|
});
|
|
|
|
/**
|
|
* e107Widget.Tooltip Class
|
|
*
|
|
* Inspired by CoolTip by Andrey Okonetchnikov
|
|
* (http://www.wildbit.com/labs/cooltips)
|
|
*/
|
|
e107Widgets.Tooltip = Class.create(e107WidgetAbstract, {
|
|
|
|
Version: '1.0',
|
|
|
|
initialize: function(element, options) {
|
|
this.events = new e107EventManager(this);
|
|
this.ttinit = false;
|
|
this.initMod('core-tooltip', optHandlers).__initTabData(container);
|
|
this.attachListeners();
|
|
},
|
|
|
|
show: function(e) {
|
|
|
|
},
|
|
|
|
hide: function(e) {
|
|
|
|
},
|
|
|
|
update: function(e){
|
|
|
|
},
|
|
|
|
create: function() {
|
|
|
|
},
|
|
|
|
attachListeners: function() {
|
|
|
|
},
|
|
|
|
_clearTimeout: function(timer) {
|
|
clearTimeout(timer);
|
|
clearInterval(timer);
|
|
return null;
|
|
}
|
|
}); |