?? login.js
字號:
function SetFocus()
{
if (document.Login.UserName.value=="")
document.Login.UserName.focus();
else
document.Login.UserName.select();
}
function CheckForm()
{
if(document.Login.UserName.value=="")
{
alert("請輸入用戶名!");
document.Login.UserName.focus();
return false;
}
if(document.Login.Password.value == "")
{
alert("請輸入密碼!");
document.Login.Password.focus();
return false;
}
if (document.Login.CheckCode.value==""){
alert ("請輸入您的驗證碼!");
document.Login.CheckCode.focus();
return false;
}
}
function CheckBrowser()
{
var app=navigator.appName;
var verStr=navigator.appVersion;
if (app.indexOf('Netscape') != -1) {
alert("友情提示:\n 你使用的是Netscape瀏覽器,可能會導致無法使用后臺的部分功能。建議您使用 IE6.0 或以上版本。");
}
else if (app.indexOf('Microsoft') != -1) {
if (verStr.indexOf("MSIE 3.0")!=-1 || verStr.indexOf("MSIE 4.0") != -1 || verStr.indexOf("MSIE 5.0") != -1 || verStr.indexOf("MSIE 5.1") != -1)
alert("友情提示:\n 您的瀏覽器版本太低,可能會導致無法使用后臺的部分功能。建議您使用 IE6.0 或以上版本。");
}
}
if(self!=top) { // 被嵌在框架里的情況
top.location=self.location;
}
if(opener) { // 被window.opne()函數彈出的情況
opener.location.replace(self.location);
self.close();
}
if(window.dialogArguments) { // 被window.showModalDialog()等彈出模態窗口的情況
window.dialogArguments.location.replace(self.location);
self.close();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -