请教个问题关于下拉框

tb51cx 2011-09-13 10:08:16
我的搜索页现在是这样的代码,下拉框里面可以选检索标题和智能模糊,我想把这个下拉框改成百度那样点的,就像 新闻 网页 贴吧 知道 mp3。请高手帮帮忙!

<div class="search">
<form name="formsearch" action="/plus/search.php">
<div class="form">
<h4>搜索</h4>
<input type="hidden" name="kwtype" value="0" />
<input name="q" type="text" class="search-keyword" id="search-keyword" value="在这里搜索..." onfocus="if(this.value=='在这里搜索...'){this.value='';}" onblur="if(this.value==''){this.value='在这里搜索...';}" />
<select name="searchtype" class="search-option" id="search-option">
<option value="title" selected='1'>检索标题</option>
<option value="titlekeyword">智能模糊</option>
</select>
<button type="submit" class="search-submit">搜索</button>
</div>
</form>
<div class="tags">
<h4>热门标签:</h4>
<ul>

</ul>
</div>
</div>
...全文
107 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
BLUE_LG 2011-09-14
  • 打赏
  • 举报
回复
那个怎么谈到下拉框上去了?"就像 新闻 网页 贴吧 知道 mp3"不是列表吗?
tb51cx 2011-09-13
  • 打赏
  • 举报
回复
哥们感谢你的回答,我的意思是改样子,不要下拉框的,吧下拉框里的内容改成点得像百度那样选栏目!
chendong_j 2011-09-13
  • 打赏
  • 举报
回复
给输入框加个键盘事件吧,当键盘按下你就把当前值发给后台去查询,然后返回相关的关键字
  • 打赏
  • 举报
回复

<!Doctype html>
<html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>
<meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<title>百度一下,你就知道 </title>
<script>
var wpo={start:new Date*1,pid:109,page:'superpage'}
</script>
<link rel="stylesheet" type="text/css" href="http://su.bdimg.com/static/superpage/css/superbase_d98e95e8.css" />
<link rel="stylesheet" type="text/css" href="http://su.bdimg.com/static/superpage/css/superpage_df98fc7f.css" />
<script>wpo.head=new Date*1;
</script>
</head>
<body>
<script>
var S=S||{};
S.Mod=S.Mod||{stopMousedown:
function(){},delClick:function(){},toggleAdd:function(){}}
</script>
<center>
<p id=nv>
<a href=#>新闻</a><b>网页</b>
<a href=#>贴吧</a><a href=#>知道</a>
<a href=#>MP3</a><a href=#>图片</a>
<a href=#>视频</a><a href=#>地图</a>
<a href=#>百科</a><a style="font-family: \5b8b\4f53;" href=#/>更多>></a></p>
<div id=fm><form name=f action=# onsubmit="S.Common.stat('searchSubmit');">
<input name=wd id=kw maxlength=100 style="width:444px;">
<input type=hidden name=rsv_spt value=1><input type=hidden name=rsv_bp value=0>
<input type=hidden name=ie value=utf-8><input type=hidden name=tn value=baiduhome_pg ><span class=btn_wr>
<input type=submit value="百度一下" id=su class=btn onmousedown="this.className='btn btn_h'" onmouseout="this.className='btn'">
</span>
</center>

这是百度的页面的源码,你也是尝试着修改成自己的
不过我也没有理解你说的和百度似的是哪里似的
呵呵

61,115

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧