上一篇:PHP判断浏览器类型
下一篇:在多伦多经历面试
做个站内搜索引擎
米娅 2009年8月28日 15:40:05
搜索功能不仅仅是模糊查询,其实里面学问很多的
1、搜索提示功能,用户输入关键字 ,自动出现下拉框显示相关搜索关键词;
2、保留用户搜索记录,以便了解用户需求;
3、能点击的避免输入;
4、显示结果包括哪些信息。

2楼 2009年8月28日 22:09:40 米娅

此页面右上角的搜索图标代码: 

<div style="position:absolute; top:10px; left:78%;z-index:10; display:block; height:16px; width: 220px;">
<form  name="form_1" action="action.php" style="float:left; background:#cccccc; width:140px; ">
<input type="hidden" name= "search" value="search" />
<input type="text" id="keywords" name="keywords" size="15" maxlength="30" tabindex="5" style=" border:none; border-color:#FDFDFD; height:16px; width:120px;" />
<button name="submit" type="submit" style="border:0px; background:#FDFDFD; z-index:11; height:18px; width:18px;" title="站内搜索">
<img src="./pics/search.gif" alt="站内搜索" /></button>
</form>&nbsp;<a href="#" class="bodyText" title="正在建设中">高级搜索</a>
</div>

第1页 共1页
相关链接