Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/04/2009, 13:54
Avatar de buzu
buzu
 
Fecha de Ingreso: octubre-2006
Ubicación: San Francisco, CA
Mensajes: 2.168
Antigüedad: 17 años, 6 meses
Puntos: 122
Respuesta: indicacion en caja de texto

Necesitarías cambiar asignar una clase diferente y unos estilos diferentes a cada clase. Por ejemplo:

Código javascript:
Ver original
  1. <input type="text" class='instruccion' value="algo" onfocus="if(this.value=='algo'){ this.value=''; this.className='noInstruccion'}" onblur="if(this.value==''){ this.value='algo'; this.className='instruccion'}" />

Y tu css:

Código CSS:
Ver original
  1. .instruccion{
  2. //estilos
  3. }
  4. .noInstruccion{
  5. //estilos
  6. }
__________________
twitter: @imbuzu