Topic: 请教

  Print this page

1.请教 Copy to clipboard
Posted by: chuliang
Posted on: 2004-11-17 13:30

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=JavaScript>
<!--
//创建日期:二○○四年十一月八号
//作者:chuliang
function check(form1)
{
if (form1.mobile.value=="")
{
alert("请输入您要查询的手机号码。");
form1.mobile.focus();
return;
}
if(form1.mobile.value.length!=11)
     {
alert("您输入的手机号码位数不对,请重新输入。");
form1.mobile.focus();
return;
}
       if (document.form1.mobile.value.indexOf('13', 0) == -1)
{
alert("您输入非法的手机号码,请重新输入!");
document.form1.mobile.focus();
return;
}
if (document.form1.MOT.value=="Mo")
{
document.form1.action='showMoLog.jsp';
}
else
{
document.form1.action='showMtLog.jsp';
}

}
//-->
</SCRIPT>

</SCRIPT>
<SCRIPT language=JavaScript src="dt_time.js"></SCRIPT>
</HEAD>
<BODY background=image/a_01.gif bgColor=#FFFFFF >

<FORM name="form1" onSubmit="return check(this)" method="get" >  
<DIV align=center>
<TABLE background=image/bg.gif border=0 cellPadding=2
cellSpacing=2 width="95%">
<TBODY>
<TR>
<TD align=left vAlign=top width=37><IMG height=43
src="image/nav.gif" width=37></TD>
<TD align=left vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=43 width="100%">
<TBODY>
<TR>
<TD align=right vAlign=bottom>
<DIV align=left><FONT color=#ff3300>您现在的位置:用户上下行信息查询<FONT
color=#ff3300></FONT></FONT></DIV>
</TD></TR>
<TR>
<TD height=5></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<TABLE align=center bgColor=#efefef border=0 cellPadding=0 cellSpacing=10
width="95%">
<TBODY>
<TR>
<TD align=left bgColor=#ffffff vAlign=top>
<TABLE align=center bgColor=#f6f6f6 border=1 borderColor=#003366
borderColorDark=#ffffff borderColorLight=#aecdd5 cellPadding=1
cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD><BR>
<DIV align=center>
    <TABLE bgColor=#efefef border=1 borderColorDark=#ffffff
borderColorLight=#38669e cellPadding=0 cellSpacing=0
width="95%">
     <!--DWLayoutTable-->
<TBODY>
<TR align=middle>
<TD height="15" colSpan=5 valign="top" bgColor=#38669e><FONT
color=#ffffff>按手机号和上下行查询</FONT></TD>
</TR>
<TR>
<TD width="130" height="30" align=right>用户手机号:</TD>
<TD width="105">
<INPUT onkeydown="if(event.keyCode==11)event.keyCode=11" class=font10 name="mobile" size="11" style="border-left:none; border-right:none; border-top:none; border-bottom: 1 solid #000000">
</TD>
             <TD width="203" valign="top">
<input name="MOT" type="radio" value="Mo" checked style="border-left:none; border-right:none; border-top:none; border-bottom: 1 solid #000000">
上行 <input name="MOT" type="radio" value="Mt" style="border-left:none; border-right:none; border-top:none; border-bottom: 1 solid #000000">
下行</TD>
           <TD width="162" valign="top">
<input type="submit" name="form1" value="查询" style="border: 1px solid #FFFF00"> <input type="reset" name="form1" value="清除" style="border: 1px solid #FFFF00"> </TD>
</TR>

</TBODY>
</TABLE>
              
</DIV>
</TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>

</form>
</BODY></HTML>

2.Re:请教 [Re: chuliang] Copy to clipboard
Posted by: chuliang
Posted on: 2004-11-17 13:31

为什么
if (document.form1.MOT.value=="Mo")
{
document.form1.action='showMoLog.jsp';
}
else
{
document.form1.action='showMtLog.jsp';
}
中不能执行第一句语句?

3.Re:请教 [Re: chuliang] Copy to clipboard
Posted by: chuliang
Posted on: 2004-11-17 13:33

执行第一条语句?

4.Re:请教 [Re: chuliang] Copy to clipboard
Posted by: chuliang
Posted on: 2004-11-17 15:32

为什么不能执行第一条语句?有人能帮我?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923