写了一段,L@_@K!<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<script type="text/javascript">
<!--
function searchType(strValue)
{
switch (parseInt(strValue))
{
case 1:
case 2:
case 3:
case 4:
document.all.s1.style.display = "inline";
document.all.s2.style.display = "none";
break;
case 5:
document.all.s1.style.display = "none";
document.all.s2.style.display = "inline";
break;
}
}
//-->
</script>
</head> <body>
<select name="SEARCH_CODE" SIZE="1" onchange="javascript:searchType(this.value);">
<option value="0" selected>请选择</option>
<option value="1">题目</option>
<option value="2">作者</option>
<option value="3">内容</option>
<option value="4">分类</option>
<option value="5">日期</option>
</select>
<span id="s1" style="display: none"><input name="SEARCH_CONTENT" type="text" size="50" value=""></span>
<span id="s2" style="display: none">
<input name="START_DATE" type="text" value="dftEvalDate"〉
<a href="javascript:setStartDate();">
<img src="/epm/images2/button/btnpop_calendar.gif" width="27"height="20" border="0" align="absmiddle">
</a>
</span>
</body>
</html>
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<script type="text/javascript">
<!--
function searchType(strValue)
{
switch (parseInt(strValue))
{
case 1:
case 2:
case 3:
case 4:
document.all.s1.style.display = "inline";
document.all.s2.style.display = "none";
break;
case 5:
document.all.s1.style.display = "none";
document.all.s2.style.display = "inline";
break;
}
}
//-->
</script>
</head> <body>
<select name="SEARCH_CODE" SIZE="1" onchange="javascript:searchType(this.value);">
<option value="0" selected>请选择</option>
<option value="1">题目</option>
<option value="2">作者</option>
<option value="3">内容</option>
<option value="4">分类</option>
<option value="5">日期</option>
</select>
<span id="s1" style="display: none"><input name="SEARCH_CONTENT" type="text" size="50" value=""></span>
<span id="s2" style="display: none">
<input name="START_DATE" type="text" value="dftEvalDate"〉
<a href="javascript:setStartDate();">
<img src="/epm/images2/button/btnpop_calendar.gif" width="27"height="20" border="0" align="absmiddle">
</a>
</span>
</body>
</html>
document.all.s1.style.display = "none";
document.all.s2.style.display = "none";
break;