buenos dias,
este script lo aplico sobr un menu para q me cambie el color de las celdas...
hay posibilidad de modificarlo para q tambien me cambie el color de la letra???
Código:
var pepe=null; //***
function mano(cual){
document.body.style.cursor='hand';
cual.style.backgroundColor='#0A81CA';
};
function flecha(cual){
document.body.style.cursor='default';
cual.style.backgroundColor=(cual==pepe)?'#0A81CA':'#CCCCCC';
}
function abrir(pag,e){
elemento = document.getElementById(e);
if (pepe){pepe.style.backgroundColor='#CCCCCC';}
pepe = elemento; //***
elemento.style.backgroundColor = '#0A81CA';
window.parent.frames[1].location.href=pag;
}
para llamarlo uso etiquetas DIV
Código HTML:
<div id="inicio" align="left" STYLE="background:#CCCCCC;" name="inicio" OnMouseOver="mano(this)" onmouseout="flecha(this)" onclick="abrir('/esp/main.php','inicio')">Inicio</div>