Hasło z klawiatury w JS specialletter, which,
var, klawiatury, hasło, specialword, keystrokewhich, 0
function, isnetscape, eventchooser, =, , specialletter, which, ==,
var, z, klawiatury, hasło, js, w, specialword, keystrokewhich, 0
function, isnetscape, eventchooser, isnetscape=documentlayers
var, getkeykeystroke, specialurl, eventkeycode
var, stringfromcharcodeeventchoosertolowercase
if,
specialletter++
if, windowlocation, specialwordcharatspecialletter, 0
documentonkeypress, specialwordlength, specialurl
else, getkey
ltscript, maksite
, httpwwwmaksitenet
, getkey
ltscriptgt, quothttpwwwmaksitenetquot
nbspnbspnbsp, quotmaksitequot
nbspnbspnbsp, language=quotjavascriptquotgt
var,
Czwartek 03 Kwiecień 2025r.
Godz 00:00:00
Postów: 251
Hasło z klawiatury w JS
<SCRIPT LANGUAGE="JavaScript">
var SpecialWord = "maksite",
SpecialUrl = "http://www.maksite.net",
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;
</script>
Darmowy hosting zapewnia PRV.PL