![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/05/2009, 18:29
|
![Avatar de Phobos91](http://static.forosdelweb.com/customavatars/avatar287668_2.gif) | | | Fecha de Ingreso: febrero-2009 Ubicación: Argentina
Mensajes: 21
Antigüedad: 16 años Puntos: 0 | |
¿Cambiar de CSS desde un Select? Hola, quiero poner un select que permita cambiar de estilo al pulsarlo, pero no logro hacerlo, este es el código que estoy usando:
<select>
<optgroup label="Elegir Estilo">
<option onchange="setActiveStyleSheet(\'azul\')">Azul</option>
<option onchange="setActiveStyleSheet(\'rojo\')">Rojo</option>
</optgroup>
</select>
azul = estilo azul
rojo = estilo rojo
Estoy usando el script "styleswitcher.js". |