![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/04/2007, 14:47
|
| | Fecha de Ingreso: mayo-2006
Mensajes: 215
Antigüedad: 18 años, 8 meses Puntos: 0 | |
Re: Activar botones css con el evento onclick !! oigan
miren ayudenme con la sintaxis, sera asi?
function botones()
{
if document.getElementById("menu").className = "boton_activado";
else
document.getElementById("menu").className = "boton_desactivado";
}
y luego en el menu html:
<form name="form1" method="post" action="">
<div id="menu" border="none">
<br>
<dl><dt>
<A HREF='menu.php? onclick='botones()'>
Sinaloa
Queretaro
Monterrey
San Luis
</A></dt></dl>
</div>
ayudenme con la sintaxis por fa ! |