Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/09/2008, 11:34
[email protected]
 
Fecha de Ingreso: octubre-2005
Mensajes: 405
Antigüedad: 19 años, 4 meses
Puntos: 1
Respuesta: Agrandar texto

Disculpa, no entendi donde debo realizar el cambio.

<div id="grande" onmouseover="agrandar('grande','','fontSize','14px ', 'DIV')" onmouseout="achicar('grande','','fontSize','10px', 'DIV')"><a href="#">texto</a></div>

function agrandar(objId,x,theProp,theValue) { //v9.0
var obj = null; with (document){ if (getElementById)
obj = getElementById(objId); }
if (obj){
if (theValue == true || theValue == false)
eval("obj.style."+theProp+"="+theValue);
else eval("obj.style."+theProp+"='"+theValue+"'");
}
}
function achicar(objId,x,theProp,theValue) { //v9.0
var obj = null; with (document){ if (getElementById)
obj = getElementById(objId); }
if (obj){
if (theValue == true || theValue == false)
eval("obj.style."+theProp+"="+theValue);
else eval("obj.style."+theProp+"='"+theValue+"'");
}
}

Cita:
Iniciado por David el Grande Ver Mensaje
Si, solo necesitas cambiarle el className:
Código PHP:
objeto.className "estiloCSS"