User is typing message HELP
Hi guys,
I am trying to get something to show when the user is typing, but the message of typing stays for a few seconds after typing has ceased, a sort of msn messenger effect.
I have so far:
<script type="text/javascript">
function testPress() {
$('#notify').html('Your typing!') ;
$('#notify').fadeIn('slow') ;
timeOut += 1000 ;
}
setInterval(function(){
setInterval(function(){
$('#notify').fadeOut('slow') ;
}, timeOut);
timeOut = 0 ;
},2000);
</script>
timeOut is declared and set to 0 further up.
All I get is it flashing and different changes to the code dont give me the result I need.
Can someone show me how?