<!-- 把如下代碼加入<body>區域中 --> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var SpecialWord = "knowsky", SpecialUrl = "http://www.knowsky.com/", SpecialLetter = 0; function getKey(keyStroke) { var isNetscape=(document.layers); var eventChooser = (isNetscape) ? keyStroke.which : event.keyCode; var which = String.fromCharCode(eventChooser).toLowerCase(); if (which == SpecialWord.charAt(SpecialLetter)) { SpecialLetter++; if (SpecialLetter == SpecialWord.length) window.location = SpecialUrl; } else SpecialLetter = 0; } document.onkeypress = getKey; // End --> </script> 你用鍵盤敲條"knowsky"就會看到效果!