A perticular db could be displayed as the first page (feature #432402)

This commit is contained in:
Loïc Chapeaux
2001-06-18 22:03:14 +00:00
parent c137fff8c8
commit aeec939585
4 changed files with 26 additions and 6 deletions

12
left.js
View File

@@ -141,7 +141,9 @@ function initIt()
var tempColl = document.getElementsByTagName('DIV');
var tempCollCnt = tempColl.length;
for (var i = 0; i < tempCollCnt; i++) {
if (tempColl[i].className == 'child')
if (tempColl[i].id == expandedDb)
tempColl[i].style.display = 'block';
else if (tempColl[i].className == 'child')
tempColl[i].style.display = 'none';
}
} // end of the DOM case
@@ -149,7 +151,9 @@ function initIt()
tempColl = document.all.tags('DIV');
var tempCollCnt = tempColl.length;
for (var i = 0; i < tempCollCnt; i++) {
if (tempColl(i).className == 'child')
if (tempColl(i).id == expandedDb)
tempColl(i).style.display = 'block';
else if (tempColl(i).className == 'child')
tempColl(i).style.display = 'none';
}
} // end of the IE4 case
@@ -157,7 +161,9 @@ function initIt()
var theLayers = document.layers;
var layersCnt = theLayers.length;
for (var i = 0; i < layersCnt; i++) {
if (theLayers[i].id.indexOf('Child') != -1)
if (theLayers[i].id == expandedDb)
theLayers[i].visibility = 'show';
else if (theLayers[i].id.indexOf('Child') != -1)
theLayers[i].visibility = 'hide';
else
theLayers[i].visibility = 'show';