arschfratze
New Member
\[code\]var text = '';$('p').bind('keypress', function(e) {e.preventDefault();$(this).text('');$(this).empty();text += String.fromCharCode(e.keyCode);var text2 = text.substr(0, text.length - 1);var lastChar = text.substr(text.length - 1);$(this).text(text2);$(this).append('<span class="char">' + lastChar + '</span>');$(this).append('<span class="cursor"></span>');});\[/code\]