管理員登錄
代碼如下:
<% dim obj
set obj = new admin_login
call obj.main()
set obj = nothing
class admin_login
private founderr, errmsg,mesky
private sub class_initialize()
founderr = false
set mesky = new cls_main
end sub
private sub class_terminate()
set mesky = nothing
end sub
public sub main()
response.write """http://www.w3.org/tr/html4/loose.dtd"">" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "管理員登錄 powered by:www.mesky.net " & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "body {" & vbcrlf
response.write " background:#efefef;" & vbcrlf
response.write " font-size: 12px;" & vbcrlf
response.write " margin-top:0px;" & vbcrlf
response.write "}" & vbcrlf
response.write vbcrlf
response.write "input {" & vbcrlf
response.write vbcrlf
response.write " font-size: 12px;" & vbcrlf
response.write " font-family: ""宋體"";" & vbcrlf
response.write "}" & vbcrlf
response.write "span {" & vbcrlf
response.write " font-size: 12px; position: static" & vbcrlf
response.write "}" & vbcrlf
response.write "a:link,a:visited {" & vbcrlf
response.write " color: #0033ff;" & vbcrlf
response.write " text-decoration: none;" & vbcrlf
response.write "}" & vbcrlf
response.write "" & vbcrlf
response.write "
" & vbcrlf
response.write "
" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write " var theform = document.loginform;" & vbcrlf
response.write " var numre = /^\d+$/;" & vbcrlf
response.write " var errmsg = """";" & vbcrlf
response.write " var setfocus = """";" & vbcrlf
response.write vbcrlf
response.write " if (!numre.test(theform['verifycode'].value)){" & vbcrlf
response.write " errmsg = ""請(qǐng)?zhí)顚?xiě)右邊的確認(rèn)密碼。"";" & vbcrlf
response.write " setfocus = ""['verifycode']"";" & vbcrlf
response.write " }" & vbcrlf
response.write " if (theform['password'].value == """"){" & vbcrlf
response.write " errmsg = ""請(qǐng)?zhí)顚?xiě)登錄密碼!"";" & vbcrlf
response.write " setfocus = ""['password']"";" & vbcrlf
response.write " }" & vbcrlf
response.write " if (theform['username'].value == """"){" & vbcrlf
response.write " errmsg = ""請(qǐng)?zhí)顚?xiě)登錄用戶(hù)名!"";" & vbcrlf
response.write " setfocus = ""['username']"";" & vbcrlf
response.write " }" & vbcrlf
response.write " if (errmsg != """"){" & vbcrlf
response.write " alert(errmsg);" & vbcrlf
response.write " eval(""theform"" + setfocus + "".focus()"");" & vbcrlf
response.write " }" & vbcrlf
response.write " else theform.submit();" & vbcrlf
response.write "}//-->" & vbcrlf
response.write "" & vbcrlf
response.write " " & vbcrlf
response.write "
相關(guān)文章
- ASP怎么談到應(yīng)用到類(lèi)的?
- 檢測(cè)函數(shù) asp class
- 遭遇ASP類(lèi)的事件設(shè)計(jì)
- ASP高亮類(lèi)
- Object對(duì)象的一些的隱藏函數(shù)介紹
- 淺談ASP中的類(lèi)
- 在VBScript中使用類(lèi)
- ASP 類(lèi)專(zhuān)題
- 代碼與頁(yè)面的分離
- ASP代碼的對(duì)象化
- 一個(gè)asp快速字符串連接類(lèi)
- 一個(gè)簡(jiǎn)單的asp數(shù)據(jù)庫(kù)操作類(lèi)
- ASP類(lèi)編寫(xiě)詳細(xì)說(shuō)明
- 實(shí)現(xiàn)支持邏輯搜索/單詞搜索/詞組搜索+支持OR/AND關(guān)鍵字的VBS CLASS!
- ASP類(lèi)Class入門(mén) 推薦
- 創(chuàng)建一個(gè)ASP通用分頁(yè)類(lèi)
- 如何編寫(xiě)一個(gè)ASP類(lèi)
- 一個(gè)ACCESS數(shù)據(jù)庫(kù)訪問(wèn)的類(lèi)第1/3頁(yè)
- 分頁(yè)類(lèi),異常類(lèi)
- ASP 類(lèi) Class入門(mén)