testato su IE8 e Firefox,non tiene conto del tempo impiegato a premere i tasti.codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento senza titolo</title> <script language="javascript" type="text/javascript"> var tastipremuti=""; document.onkeypress=function tastopremuto(event){ if (window.event){ key = window.event.keyCode; }else{ key = event.which; } tastipremuti+=key; if (tastipremuti=="000000009897" || tastipremuti=="9897"){ document.getElementById('codice').style.display="none"; document.getElementById('contenuti').style.display="block"; } } </script> <style type="text/css"> div#contenuti{ display:none; } </style> </head> <body> <div id="codice"> Digita SU SU GIU GIU SINISTRA DESTRA SINISTRA DESTRA B A per vedere i contenuti </div> <div id="contenuti"> <h1>Questi sono i contenuti</h1> lucavizzi.it</p> </div> </body> </html>