Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/06/2009, 05:18
JUAN CARLOS RB
 
Fecha de Ingreso: noviembre-2004
Mensajes: 223
Antigüedad: 19 años, 5 meses
Puntos: 0
Cambiar imagen del boton por encima

Mirar el codigo que me dicen que haga para que realice dicha funcion:


.btnnuevainci
{ padding: 0;
margin: 0;
border: 1; /*no quiero borde*/
background-image:url(../Imagenes/btn.gif);
width: 120px;
height: 50pxcm;
cursor: pointer; /*muestrame el cursor de mano*/
font:Georgia, "Times New Roman", Times, serif;
/*text-indent: -999px; manda el texto leeeeejos*/
/*overflow: hidden; /*esconde cualquier trazo del mismo*/
color: #FFFFCC;
}
.btnnuevainci a
{
color: #666666;
text-decoration: none;
display: block;
width: 100%;
background-image:url(../Imagenes/btn.gif);
}

.btnnuevainci a:hover
{
background-image:url(../Imagenes/btn2.gif);
color: #ffffcc;

}


Ok? Ahora en el boton le pongo:

<input type="button" name="btnnuevainci" id="btnnuevainci" class="btnnuevainci" value="Nueva Incidencia" onClick="location.href='NuevaInciadmin.php'" />

El problema es que no hace nada.