?? search.html
字號:
<html>
<head>
<title>網上書店</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function fsubmit()
{
if(searchForm.rcond[0].checked)
{
searchForm.action="list?cond=all"
}
else if(searchForm.rcond[1].checked)
{
searchForm.action="list?cond=precision"
}
else
{
searchForm.action="list?cond=keyword"
}
}
function hideall()
{
if(searchForm.rcond[0].checked)
{
pre.style.display = "none";
key.style.display = "none";
}
}
function showpre()
{
if(searchForm.rcond[1].checked)
{
pre.style.display = "";
key.style.display = "none";
}
else
{
pre.style.display = "none";
}
}
function showkey()
{
if(searchForm.rcond[2].checked)
{
key.style.display = "";
pre.style.display = "none";
}
else
{
key.style.display = "none";
}
}
//-->
</SCRIPT>
</head>
<body>
<form name="searchForm" action="" method="post" onClick="fsubmit()">
<input type="radio" name="rcond" onclick="hideall()">查看所有圖書<p>
<input type="radio" name="rcond" onclick="showpre()">精確搜索<p>
<table id=pre style="DISPLAY: none">
<tr>
<td>書名:</td>
<td><input type="text" name="title"></td>
</tr>
<tr>
<td>作者:</td>
<td><input type="text" name="author"></td>
</tr>
<tr>
<td>出版社:</td>
<td><input type="text" name="bookconcern"></td>
</tr>
</table><p>
<input type="radio" name="rcond" onclick="showkey()">關鍵字搜索<p>
<table id=key style="DISPLAY: none">
<tr>
<td>請輸入關鍵字:</td>
<td><input type="text" name="keyword"></td>
</tr>
</table><p>
<input type="reset" value="重新輸入">
<input type="submit" value="搜索">
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -