![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/11/2004, 10:16
|
![Avatar de saxer](http://static.forosdelweb.com/customavatars/avatar79418_1.gif) | | | Fecha de Ingreso: noviembre-2004
Mensajes: 14
Antigüedad: 20 años, 3 meses Puntos: 0 | |
bueno, habria que ver el codigo...
pero donde pones "OnCLick" podrias llamar a una funcion, y ahi setear los colores dependiendo del valor de la variable (pintado o despintado)
var pintado=false //variable global
function CambioColor() {
if(pintado=true) {
pintado=false
return #FF8484
} else {
pintado=true
return #CDCDCD }
}
onClick="this.fondo=CambioColor()
leete un poco el manual asi te familiarisas con el codigo
Suerte
Daniel |