给Community Server加上功能强大的站内搜索
1、文件名称:/web/Search.html(注意最好使用UTF-8的编码格式)
2、代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Search</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="Dili J.F. Senders">
<META NAME="Keywords" CONTENT="asp.net,Community Server,SQL Server, Web Hosting">
<META NAME="Description" CONTENT="cs.998118.com">
<style type=text/css>
body, div, input, p {font-size: 9pt;}
.CommonTextButton
{
display: inline-table;
display: -moz-inline-box;
display: inline-block;
margin: 1px;
padding: 4px;
border-style: solid;
border-width: 1px;
border-color: #999999;
background-color: #904;
color: #FFFFFF;
font-family: Tahoma, Arial, Helvetica;
font-weight: bold;
white-space: nowrap;
}
.CommonTextButton:LINK, .CommonTextButton:VISITED, .CommonTextButton:ACTIVE
{
text-decoration: none;
color: #FFFFFF;
background-color: #904;
}
.CommonTextButton:HOVER
{
text-decoration: underline;
color: #80FF80;
background-color: #904;
}
.TextBoxLine
{
BORDER-BOTTOM: 1px solid;
BORDER-LEFT: 0px;
BORDER-RIGHT: 0px;
BORDER-TOP: 0px;
}
</style>
</HEAD>
<BODY>
<div align="center">
<SCRIPT language=javascript>
function g(formname) {
var url = "<A href="http://www.baidu.com/baidu">http://www.baidu.com/baidu</A>";
formname.si.value = location.hostname;
formname.ct.value = "2097152";
formname.action = url;
return true;
}
</SCRIPT>
<form name="f1" onsubmit="return g(this)" target="_blank">
<input name=word size="40" maxlength="100" class="TextBoxLine">
<br type="submit" value="GO" class="CommonTextButton">
<input name=tn type=hidden value="bds">
<input name=cl type=hidden value="3">
<input name=ct type=hidden>
<input name=si type=hidden value="cs.998118.com">
</form>
</div>
</BODY>
</HTML>