select>
Function SRC_Action ()
{
VAR TXT, SEL, URL;
TXT = Document.getlementsByName ("Search_Value"). Item (0) .value;
SEL = Document.GtelementsByname ("SEL_Search"). Item (0) .value;
URL = "";
IF (txt == "")
{
Alert ("Query Can't empty!");
Return False;
}
IF (txt.indexof ("')> = 0)
{
Alert ("Query Conditions cannot contain special characters / '!");
Return False;
}
IF (SEL == "0")
{
Alert ("Please select the column you want to query!");
Return False
}
Switch (sel) {
Case "1":
URL = "news / index.asp? class_id = 14";
Break;
Case "2":
URL = "news / index.asp? class_id = 20";
Break;
Case "3":
URL = "Write / INDEX.ASP? Class_ID = 21";
Break; Case "4":
URL = "LAW / INDEX.ASP? Class_ID = 22";
Break;
Case "5":
URL = "Gains / INDEX.ASP? Class_ID = 23";
Break;
Case "6":
URL = "regula / index.asp? class_id = 24";
Break;
}
IF (URL! = "")
{
Document.getlementsByname ("postform"). item (0) .Artion = URL;
Document.getlementSbyName ("postform"). Item (0) .submit ()
}
Return False;
}
script>
td>
TR>
form>
转载请注明原文地址:https://www.9cbs.com/read-83651.html
|