Código: Selecionar todos
<script type="text/javascript">
function Esvazia(valor_campo){
if (valor_campo.value == valor_campo.defaultValue)
valor_campo.value='';
}
function padrão(valor_campo){
if (valor_campo.value == '')
valor_campo.value=valor_campo.defaultValue;
}
</script>
Código: Selecionar todos
<form name="Newsleter" method="post" action="">
<input class="inputNome" type="text" name="nome" value="Digite seu nome" onfocus="Esvazia(this)" onblur="padrão(this)">
<input class="inputMail" type="text" name="email" value="Digite seu e-mail" onfocus="Esvazia(this)" onblur="padrão(this)">
<input class="bt_news" src="images/stories/bt_news.png" type="image" />
</form>