Ver Mensaje Individual
  #6 (permalink)  
Antiguo 24/01/2011, 11:34
Avatar de Perr0
Perr0
 
Fecha de Ingreso: mayo-2005
Ubicación: Santiago de Chile, Chile
Mensajes: 676
Antigüedad: 19 años
Puntos: 79
Respuesta: Cambiar campo de texto según texto :D

que tal raxper, para mi mas simple es esto

Código Javascript:
Ver original
  1. <script>
  2. var w="Bienvenido...";
  3. window.onload=function(){
  4.     t=document.getElementsByName("guelcom")[0];
  5.     if(t){
  6.         if(!t.value) t.value=w;
  7.         t.onblur=function(){if(!this.value) this.value=w};
  8.         t.onfocus=function(){if(this.value==w) this.value=""};
  9.     }
  10. }
  11. </script>
  12. <input type="text" name="guelcom" />

salu2
__________________
Numerador Mp3 en Access =)
http://www.mediafire.com/download/r9...pdw/mp3(2).zip