Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/02/2009, 11:15
samy4ever
 
Fecha de Ingreso: agosto-2008
Mensajes: 143
Antigüedad: 15 años, 8 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;

}