[code]
<!— begin keyword —>
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
var SpecialWord = “adminupload”,
SpecialUrl = “documents/upload.cfm”,
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) gotoUrl(SpecialUrl);
}
else SpecialLetter = 0;
}
document.onkeypress = getKey;
function gotoUrl(Url) {
document.cookie = “admin=1”;
window.location = Url;
//alert (‘document.cookie’);
}
// End –>
</script>
<!—end keyword —>
problem is i need it to work with two diferent keywords now. the first works great, just need to add a second, and i am having difficultly in doing so.