Improved hoverhelp system

This commit is contained in:
Graham Knop 2007-10-04 16:39:55 +00:00
parent 978be4dc47
commit 1a20c3bf6b
3 changed files with 26 additions and 11 deletions

View file

@ -1,6 +1,6 @@
.yui-tt {
visibility:hidden;
position:absolute;
.wg-hoverhelp {
visibility: collapse;
display: none;
background-color: #e6ecff;
border: 1px solid #003399;
color: #000066;
@ -11,3 +11,7 @@
z-index: 1000;
}
.wg-hoverhelp.yui-tt {
display: block;
}

12
www/extras/hoverhelp.js Normal file
View file

@ -0,0 +1,12 @@
YAHOO.util.Event.onDOMReady(function () {
var tips = YAHOO.util.Dom.getElementsByClassName('wg-hoverhelp');
var i;
for (i = 0; i < tips.length; i++) {
var myTip = new YAHOO.widget.Tooltip(tips[i], {
autodismissdelay: 1000000,
width: '300px',
context: tips[i].parentNode
});
}
});