Tema: FolderTree!
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/03/2002, 17:15
Avatar de adex
adex
 
Fecha de Ingreso: marzo-2002
Ubicación: Lima, Perú, América Latina
Mensajes: 445
Antigüedad: 22 años, 8 meses
Puntos: 0
Re: FolderTree!

background-color: #000080;
color: #ffffff;
}

.menuItemSep {
border-bottom: 1px solid #f0f0f0;
border-top: 1px solid #909090;
margin: 3px 2px 3px 2px;
}

</style>
<script type="text/javascript">

// Determine browser and version. Script works for IE 5.5+ and NS 6.0+

function Browser() {

var ua, s, i;

this.isIE = false; // Internet Explorer
this.isNS = false; // Netscape
this.version = null;

ua = navigator.userAgent;

s = "MSIE";
if ((i = ua.indexOf(s)) >= 0) {
this.isIE = true;
this.version = parseFloat(ua.substr(i + s.length));
return;
}

s = "Netscape6/";
if ((i = ua.indexOf(s)) >= 0) {
this.isNS = true;
this.version = parseFloat(ua.substr(i + s.length));
return;
}
}

var browser = new Browser();

// For IE, adjust menu bar styling.

if (browser.isIE) {
document.styleSheets[document.styleSheets.length - 1].addRule("#menuBar", "padding-top:4px");
document.styleSheets[document.styleSheets.length - 1].addRule("#menuBar", "padding-bottom:3px");
}

// Global variable for tracking the currently active button.

var activeButton = null;

// Capture mouse clicks on the page so any active button can be
// deactivated.

if (browser.isIE)
document.onmousedown = pageMousedown;
if (browser.isNS)
document.addEventListener("mousedown", pageMousedown, true);

function pageMousedown(event) {

var className;

// If the object clicked on was not a menu button or item, close any
// active menu.

if (browser.isIE)
className = window.event.srcElement.className;
if (browser.isNS)
className = (event.target.className ?
event.target.className : event.target.parentNode.className);

if (className != "menuButton" && className != "menuItem" &&
className != "menuItemSep" && activeButton)
resetButton(activeButton);
}

function buttonClick(button, menuName) {

// Blur focus from the link to remove that an