我刚上传了一个网站,在大部分计算机上提交表单都可以正常使用,但在有的计算机上就不能正常使用(点提交按钮什么反映都没有,也没有显示错误)。这是啥问题?望高手们能帮忙给解决一下。
代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'login.jsp' starting page</title>
<link rel="stylesheet" type="text/css" href="../css/dj.css">
<style>
#include {
margin:0px;
padding:50px 0px;
background:url("../imgs/cz.jpg") no-repeat;
height:443px;
width:650px}
form{width:650px;height:90px;padding-top:100px}
</style>
<script language="javascript" src="../script/screensend.js"></script>
<script language="javascript">
function submit_form1(str){
str.submit();
}
</script>
</head>
<body onload="fbl()">
<center>
<div id="include">
<form action="/Login?action=1" method="post" name="login">
姓 名<input type="text" name="name" value="" class="input"><br>
密 码<input type="password" name="pass" value="" class="input"><br> <a href="javascript:void(0)" align="center" onclick="submit_form1(login)" >登陆</a><br>
</form>
</div>
</center>
</body>
</html>
代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'login.jsp' starting page</title>
<link rel="stylesheet" type="text/css" href="../css/dj.css">
<style>
#include {
margin:0px;
padding:50px 0px;
background:url("../imgs/cz.jpg") no-repeat;
height:443px;
width:650px}
form{width:650px;height:90px;padding-top:100px}
</style>
<script language="javascript" src="../script/screensend.js"></script>
<script language="javascript">
function submit_form1(str){
str.submit();
}
</script>
</head>
<body onload="fbl()">
<center>
<div id="include">
<form action="/Login?action=1" method="post" name="login">
姓 名<input type="text" name="name" value="" class="input"><br>
密 码<input type="password" name="pass" value="" class="input"><br> <a href="javascript:void(0)" align="center" onclick="submit_form1(login)" >登陆</a><br>
</form>
</div>
</center>
</body>
</html>
修改成这样看看
<script language="javascript">
function submit_form1(str){
document.str.submit();
}
</script>
貌似这种可以哎