
27/02/2009, 11:15
|
| | Fecha de Ingreso: agosto-2008
Mensajes: 143
Antigüedad: 16 años, 6 meses Puntos: 1 | |
Respuesta: Duda en "deselección" Copio cómo me ha quedado, por si alguien alguna vez le sirve.
JS:
function bordef(input, evento){
var evento = window.event || evento; //Compatibilidad con IE
if ((evento.type == 'focus') || (evento.type == 'click'))
input.className = "inputsin";
if (evento.type == 'blur')
input.className = "inputsout";
}
html:
<td><input type = "text" class = "inputsout" title = "Indíquenos su nombre" name = "FromName" id = "FromName" size = "35" onFocus = "bordef(this,event);" onBlur="bordef(this,event);" onclick="bordef(this,event);" /></td>
CSS
.inputsin{
background-color: #DDDDDD;
border: thin solid #F1CA19;
}
.inputsout{
background-color: white;
border: medium groove #808080;
} |