下列代码不进行判断直接提交~请高手帮忙看看看~在线等~

来源:百度知道 编辑:UC知道 时间:2024/09/21 10:43:29
<script type="text/javascript">
String.prototype.trim = function()
{
// 用正则表达式将前后空格
// 用空字符串替代。
return this.replace(/(^\s*)|(\s*$)/g, "");
}
function checksearchform(i)
{
if(document.searchform.keys.value.trim()==""||document.searchform.keys.value.trim()=="请输入信息关键字或词组 如:电脑 出租房 女朋友")
{
alert("请输入关键字!");
document.searchform.keys.focus();
return false;
}
if(document.searchform.select_class.value=="0")
}
</script>

<TABLE cellSpacing=0 cellPadding=0 border=0 style="width: 100%">
<TBODY>
<TR>
<TD width="1%">
<IMG height=30 src="/images/head_19.gif" width=10></TD>
<TD width="98%" background="/images/head_20.gif">
<TA

以下是改修后的代码,你可以参照一下。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta content="False" name="vs_showGrid">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">