CAMBIO DE ESTILOS
Publicado por WEBNESS (4 intervenciones) el 21/07/2008 21:42:35
HOLA,
TENGO UN JUEGO DE ENLACES A LOS CUALES LE APLICO UNA CLASE CONTENIDA EN UNA HOJA DE ESTILO.
PERO CADA UNO DE ESTOS ENLACES AL MOMENTO DE COLOCAR EL MOUSE ENCIMA, CAMBIA POR UN COLOR ESPECIFICO, NECESITO SABER COMO VUELVO A COLOCAR EL ENLACE CON SU HOJA DE ESTILO POR DEFECTO, CUANDO RETIRE EL MOUSE DE ALLI.
ESTE ES EL CODIGO QUE TENGO
<link href="popo.css" rel="stylesheet" type="text/css" id="enlace">
<a href="../PRODUCTIVO/libreria/index.cfm" class="popo"
onMouseOver="document.getElementById('enlace_1').style.color='#AA34B2';"
id="enlace_1"
onMouseOut="document.getElementById('enlace').href = 'popo.css'">
hola mundo!!!
</a>
<br><br>
<a href="../PRODUCTIVO/libreria/index.cfm" class="popo"
onMouseOver="document.getElementById('enlace_2').style.color='#F1B5C4';"
id="enlace_2"
onMouseOut="document.getElementById('enlace').href = 'popo.css'">
hola mundo!!!
</a>
<br><br>
<a href="../PRODUCTIVO/libreria/index.cfm" class="popo"
onMouseOver="document.getElementById('enlace_3').style.color='#996300';"
id="enlace_3"
onMouseOut="alert(document.getElementById('enlace_3').style.color);
document.getElementById('enlace_3').class=popo">
hola mundo!!!
</a>
TENGO UN JUEGO DE ENLACES A LOS CUALES LE APLICO UNA CLASE CONTENIDA EN UNA HOJA DE ESTILO.
PERO CADA UNO DE ESTOS ENLACES AL MOMENTO DE COLOCAR EL MOUSE ENCIMA, CAMBIA POR UN COLOR ESPECIFICO, NECESITO SABER COMO VUELVO A COLOCAR EL ENLACE CON SU HOJA DE ESTILO POR DEFECTO, CUANDO RETIRE EL MOUSE DE ALLI.
ESTE ES EL CODIGO QUE TENGO
<link href="popo.css" rel="stylesheet" type="text/css" id="enlace">
<a href="../PRODUCTIVO/libreria/index.cfm" class="popo"
onMouseOver="document.getElementById('enlace_1').style.color='#AA34B2';"
id="enlace_1"
onMouseOut="document.getElementById('enlace').href = 'popo.css'">
hola mundo!!!
</a>
<br><br>
<a href="../PRODUCTIVO/libreria/index.cfm" class="popo"
onMouseOver="document.getElementById('enlace_2').style.color='#F1B5C4';"
id="enlace_2"
onMouseOut="document.getElementById('enlace').href = 'popo.css'">
hola mundo!!!
</a>
<br><br>
<a href="../PRODUCTIVO/libreria/index.cfm" class="popo"
onMouseOver="document.getElementById('enlace_3').style.color='#996300';"
id="enlace_3"
onMouseOut="alert(document.getElementById('enlace_3').style.color);
document.getElementById('enlace_3').class=popo">
hola mundo!!!
</a>
Valora esta pregunta


0