Por Que Desse Erro...
Esta é a função e o form está como:<input name="hr_atividade" type="text" class="caixatextopeq" id="hr_atividade" maxlength="5" onKeyPress="return Tecla(event);">
> <script language="javascript">function Tecla(e){ if(document.all) // Internet Explorer var tecla = event.keyCode; else if(document.layers) // Nestcape var tecla = e.which; if(tecla > 47 && tecla < 58) // numeros de 0 a 9 return true; else { if (tecla == 8){ // backspace return true;} else{ if (tecla == 58){ // tecla : if ((document.cadastrar_atividade.hr_atividade.IndexOf(":")) == "-1"){ return true;} }else{ return false;} } // Finaliza o Else } // Finaliza o Else} // Finaliza a função</script>
Alguém pode me ajudar?Valew...
Discussão (1)
Carregando comentários...