improved the pointer feature for the left frame

This commit is contained in:
Loïc Chapeaux
2001-12-07 21:02:43 +00:00
parent 69f3059fc5
commit a6ea8d3321
3 changed files with 40 additions and 3 deletions

View File

@@ -155,7 +155,7 @@ function initIt()
/**
* Collapses/expands a database when the user require this to be done
*
* @param string the name of the room to act on
* @param string the name of the database to act on
* @param boolean whether to expand or to collapse the database content
*
* @access public
@@ -205,6 +205,41 @@ function expandBase(el, unexpand)
} // end of the 'expandBase()' function
/**
* Hilight/un-hilight a database when the mouse pass over/out it
*
* @param string the name of the database to act on
* @param boolean the color to be used
*
* @access public
*/
function hilightBase(el, theColor)
{
if (!isDOM && !isIE4) {
return;
}
if (isDOM) {
var whichDb = document.getElementById(el + 'Parent');
var whichTables = document.getElementById(el + 'Child');
}
else if (isIE4) {
var whichDb = document.all(el + 'Parent');
var whichTables = document.all(el + 'Child');
}
if (typeof(whichDb.style) == 'undefined') {
return;
}
else {
whichDb.style.backgroundColor = theColor;
whichTables.style.backgroundColor = theColor;
}
return true;
} // end of the 'hilightBase()' function
/**
* Add styles for positioned layers
*/