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
Si, solo necesitas cambiarle el className:
Código PHP:
objeto.className = "estiloCSS";