Código Javascript:
Ver original
<form action="registro.php" method="get" name="miFormulario" id="miFormulario" enctype="multipart/form-data"> <input type="text" name="usuario" id="usuario" value="Escribe tu Nombre" onfocus="if (this.value == 'Escribe tu Nombre') { this.value = ''; this.style.background = 'transparent'; }" onblur="if (this.value == '') { this.value = 'Escribe tu Nombre'; this.style.background = 'url(imagenes/online-red-icon.png)no-repeat'; }"> <input type="text" name="email" id="email value="Escribe tu email" onfocus="if (this.value == 'Escribe tu email') { this.value = ''; this.style.background = 'transparent'; }" onblur="if (this.value == '') { this.value = 'Escribe tu email'; this.style.background = 'url(imagenes/descarga.png)no-repeat'; }"> </form>