Name and Email auto hide/show

To make Name and Email auto hide/show like this:






use this code:

<form method="post" name="Dateform">
  <input  name="nameTrip" value="Name" onfocus="if(this.value == 'Name') this.value =''" onblur="if (this.value == '') this.value='Name'" type="text">
  <input  name="emailTrip" value="E-mail" onfocus="if(this.value == 'E-mail') this.value =''" onblur="if (this.value=='') this.value='E-mail'" type="text">
  <textarea autocomplete="off"  name="textarea" onfocus="if(this.value == 'Details') this.value =''" onblur="if (this.value=='') this.value='Details'">Details</textarea>
</form>