Improved hoverhelp system
This commit is contained in:
parent
978be4dc47
commit
1a20c3bf6b
3 changed files with 26 additions and 11 deletions
|
|
@ -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
12
www/extras/hoverhelp.js
Normal 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
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue