2007-7-7 15:00
火龍之混血兒
Xanga 密碼使用教學
[b]輸入密碼(方法1)[/b]
放在 input your own header html
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
//在引號內設置密碼提示
var pass1 = prompt("please enter the password.");
while (testV < 3) {
if (!pass1)
history.go(-1);
//在引號內設置密碼
if (pass1 == "xdxdxd") {
//在引號內設置輸入正確後的顯示訊息
alert("yeah! welcome to xdxdxd.");
break;
}
testV+=1;
var pass1 =
//在引號內設置輸入錯誤後的顯示訊息
prompt("please enter the password again.");
}
if (pass1!="password" & testV ==3)
history.go(-1);
return " ";
}
document.write(password());
</SCRIPT>
輸入密碼錯誤三次後,
會回到上一頁
[b]輸入密碼(方法2)[/b]
放在 input your own header html
<script LANGUAGE="JavaScript">
//在引號內設置密碼提示
var p = prompt("Please enter the password.")
//在引號內設置密碼
if (p == "xdxdxd"){
}
else {
//在引號內設置錯誤後進入的網頁位置
self.location = "bbs.xdxdxd.com"
}
</script>
輸入密碼錯誤後,
會到指定的網頁