秘密のページに入るには、パスワードを入力して[Enter]ボタンを押してください。
(コッソリ答えを教えます(^。^)、パスワードは”pass_37”ヨ!)
<SCRIPT language="JavaScript"><!--
function Enter1(){
if(document.form1.pass1.value=="pass_37")window.open("password123xyz.htm");
else{
alert("パスワード、間違ってます!");
document.form1.pass1.focus();
document.form1.pass1.select();
}
}
function Enter2(){
if(document.form1.pass2.value==String.fromCharCode(112,97,115,115,95,51,55))
window.open(String.fromCharCode(112,97,115,115,119,111,114,100,49,50,51,120,121,122)+".htm");
else{
alert("パスワード、間違ってます!");
document.form1.pass2.focus();
document.form1.pass2.select();
}
}
//--></SCRIPT>
</head>
<body>
<form name="form1">
■一番マズイやり方(HTMLソースを見ればバレバレ・・・)<br>
パスワード入力・・・→
<input type="password" name="pass1" size="10">
<input type="button" name="enter1" value="Enter" onclick="Enter1()">
■ややマシか...(HTMLソースを解読すれば・・・)<br>
パスワード入力・・・→
<input type="password" name="pass2" size="10">
<input type="button" name="enter2" value="Enter" onClick="Enter2()">
</form>
end(01/9/5)