不知道是不是这个意思
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body><script language="javascript">
<!--
function juese()
{
var m=document.form1.selectman.value;
switch(parseInt(m))
{
case 1:
document.form1.action = "a.asp"; //登陆验证页面
break;
case 2:
document.form1.action = "b.asp";
break;
case 3:
document.form1.action = "c.asp";
break;
case 4:
document.form1.action = "d.asp";
break;
default:
alert("请选择登录角色!");
return;
}
document.form1.submit();
}
//-->
</script>
<form id="form1" name="form1">
<p align="center"> <span class="STYLE1">账号: </span>
<label>
<select name="selectman">
<option value="">=登录角色= </option>
<option value="1">系统管理员 </option>
<option value="2">招生注册员 </option>
<option value="3">仓库管理员 </option>
<option value="4">学院领导 </option>
</select>
</label>
</p>
<label>
<div align="center"> <span class="STYLE1">密码: </span>
<input name="textfield" type="text" size="12" />
</div>
</label>
<label>
<div align="center">
<input type="button" name="Submit" value="登录" onclick="juese()"/>
<span class="STYLE1"> <a href="mimarecover.html" class="STYLE2">密码重置 </a> </span> </div>
</label>
<label>
<div align="center" class="STYLE1"> </div>
</label>
</form> </body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body><script language="javascript">
<!--
function juese()
{
var m=document.form1.selectman.value;
switch(parseInt(m))
{
case 1:
document.form1.action = "a.asp"; //登陆验证页面
break;
case 2:
document.form1.action = "b.asp";
break;
case 3:
document.form1.action = "c.asp";
break;
case 4:
document.form1.action = "d.asp";
break;
default:
alert("请选择登录角色!");
return;
}
document.form1.submit();
}
//-->
</script>
<form id="form1" name="form1">
<p align="center"> <span class="STYLE1">账号: </span>
<label>
<select name="selectman">
<option value="">=登录角色= </option>
<option value="1">系统管理员 </option>
<option value="2">招生注册员 </option>
<option value="3">仓库管理员 </option>
<option value="4">学院领导 </option>
</select>
</label>
</p>
<label>
<div align="center"> <span class="STYLE1">密码: </span>
<input name="textfield" type="text" size="12" />
</div>
</label>
<label>
<div align="center">
<input type="button" name="Submit" value="登录" onclick="juese()"/>
<span class="STYLE1"> <a href="mimarecover.html" class="STYLE2">密码重置 </a> </span> </div>
</label>
<label>
<div align="center" class="STYLE1"> </div>
</label>
</form> </body>
</html>
解决方案 »
- 求助!javascript通过XMLHttpRequest实现下拉框联动的效果。第二个页面中<ArrayList>department的内容在第一个页面取不出来
- 原生js如何绑定a连接点击事件?
- 请大侠帮我看看下面语句如何传字符串参数,谢谢。
- 如何在网页中运行本机软件
- 怎样用jquery取得下拉列表中自定义属性的值
- 请问mootools如何自适应iframe的高度
- 点击IE关闭按钮时,想弹出个只有"是否要退出系统?"这几个字的提示框.
- 如何在静态文件htm中包含一个动态网页jsp?
- (急)如何实现:点击某一按钮,激活相应的单元格内容滚动?
- 在同一个页面里,如何使的 input 输入的 value 在下面的 url 中得到?
- @@@@闭包的一点心得 和大家分享下
- div 滚动条问题。。。。。
少了个大括号!!呵呵,仔细看一下!
js文件中最后缺少一个大括号