你可以xanga lock
http://edit.xanga.com/editaccountprivacy.aspx
Xanga Lock: Allow only signed in Xangans to view my site選yes
又或者
輸入密碼(方法1)
例子(預設密碼:kkx3)
code[放在 input your own header html ]:
圖片參考:
http://kkx3.net/xanga/pw001.jpg
<!-- begin code provided by kkx3.com -->
<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 == "kkx3") {
//在引號內設置輸入正確後的顯示訊息
alert("yeah! welcome to my xanga.");
break;
}
testV+=1;
var pass1 =
//在引號內設置輸入錯誤後的顯示訊息
prompt("please enter the password again.");
}
if (pass1!="password" & testV ==3)
history.go(-1);
return " ";
}
document.write(password());
</SCRIPT>
<!-- end code provided by kkx3.com -->
輸入密碼錯誤三次後,
會回到上一頁
輸入密碼(方法2)
例子(預設密碼:kkx3)
code[放在 input your own header html ]:
圖片參考:
http://kkx3.net/xanga/pw001.jpg
<!-- begin code provided by kkx3.com -->
<script LANGUAGE="JavaScript">
//在引號內設置密碼提示
var p = prompt("Please enter the password.")
//在引號內設置密碼
if (p == "kkx3"){
}
else {
//在引號內設置錯誤後進入的網頁位置
self.location = "
http://kkx3.com"
}
</script>
<!-- end code provided by kkx3.com -->
輸入密碼錯誤後,
會到指定的網頁