TabControl搜索菜单

<!–搜索开始–><!– iAsk begin –><!– iAsk begin –>
<style type="text/css">.s_on {
	background-image:url(http://image2.sina.com.cn/pfp/ask/0208/images/l_tbg_on.gif);
	background-repeat:no-repeat;
	padding-top:5px;
	cursor:hand;
	background-color:#ffc52e;
}
.s_of {
	background-image:url(http://image2.sina.com.cn/pfp/ask/0208/images/l_tbg_off.gif);
	background-repeat:no-repeat;
	padding-top:5px;
	cursor:hand;
	background-color:#f0f0f0;
}
.m_on {
	background-image:url(http://image2.sina.com.cn/pfp/ask/0208/images/l_ms_on.gif);
	background-repeat:no-repeat;
	padding-top:5px;
	cursor:hand;
}
.bk_n {
	height:22px;
	width:100%;
	font-size:14px;
}
.eg {
	color:#999999;
	font-size:12px;
}
.pt2 {
	padding-top:2px;
}
.pl5 {
	padding-left:5px;
}
.blbr1d9 {
	border-left:1px solid #d9d9d9;
	border-right: 1px solid #d9d9d9;
}
</style>
<script type="text/javascript">
 function s_chg(td_now, mCols, fn) {
     s_td_1.className = s_td_2.className = s_td_3.className = s_td_4.className = s_td_6.className = s_td_7.className = "s_of";
     td_now.className = "s_on";
     move_xjt.colSpan = mCols;
     if (td_now.id == "s_td_1") {
         lc.style.display = "none";
         btn1.height = "35";
         btn1.innerHTML = " <input id = btn_i type = submit value = '搜索' style = 'width: 60px;'> <input type = button value = '提问' style = 'width: 60px;' onClick = 'ask(this.form);'> ";
         eg2.style.display = "none";
         fn.i_k.name = "k";
         fn.action = "http://iask.com/s"; } 
         if (td_now.id == "s_td_3") {
             lc.style.display = "none";
             btn1.height = "35";
             btn1.innerHTML = " <input id = btn_i type = submit value = '搜索' style = 'width: 60px;'> ";
             eg2.style.display = "none";
             fn.i_k.name = "k";
             fn.action = "http://iask.com/n";
         }
         if (td_now.id == "s_td_4") {
             lc.style.display = "none";
             btn1.height = "35";
             btn1.innerHTML = " <input id = btn_i type = submit value = '搜索' style = 'width: 60px;'> ";
             eg2.style.display = "none";
             fn.i_k.name = "k";
             fn.action = "http://p.iask.com/p";
         }
         if (td_now.id == "s_td_6") {
             lc.style.display = "none";
             btn1.height = "35";
             btn1.innerHTML = " <input id = btn_i type = submit value = '搜索' style = 'width: 60px;'> ";
             eg2.style.display = "none";
             fn.i_k.name = "k";
             fn.action = "http://m.iask.com/g";
         }
         if (td_now.id == "s_td_5") {
             lc.style.display = "none";
             btn1.height = "35";
             btn1.innerHTML = " <input id = btn_i type = submit value = '搜索' style = 'width: 60px;'> ";
             eg2.style.display = "none";
             fn.i_k.name = "k";
             fn.action = "http://iask.com/v";
         }
         if (td_now.id == "s_td_2") {
             lc.style.display = "none";
             btn1.height = "35";
             btn1.innerHTML = " <input id = btn_i type = submit value = '提问' style = 'width: 60px;'> ";
             eg2.style.display = "none";
             fn.i_k.name = "title";
             fn.action = "http://iask.sina.com.cn/question/ask_new_2.php";
         }
         if (td_now.id == "s_td_7") {
             lc.style.display = "block";
             lc.style.paddingTop = "0";
             btn1.height = "25";
             btn1.innerHTML = " <input id = btn_i type = submit value = '搜索' style = 'width: 60px;'> ";
             eg2.style.display = "block";
             fn.i_k.name = "key";
             fn.action = "http://bendi.iask.com/r.php";
         }
     }

     function mouse_on(td_now) {
         if (td_now.className == "s_on") return false;
         else td_now.className = "m_on";
     }

     function mouse_of(td_now) {
         if (td_now.className == "s_on") return false;
         else td_now.className = "s_of";
     }
</script>
<script language="javascript">
 function iask_ck(fn) {
     if (fn.i_k.value == "") {
         if (fn.btn_i.value == "提问") {
             window.open("http: /iask.sina.com.cn/");
             return false;
         }
     }
 }

 function ask(fn) {
     if (fn.k.value == "") {
         window.open("http://iask.sina.com.cn/");
         return false;
     } else {
         window.open("http://iask.sina.com.cn/question/ask_new_2.php?title = " + fn.k.value);
     }
 }
</script>
<table border="0" width="286" cellpadding="0" cellspacing="0">
<tr>
	<td height="3">
		<img src="http://image2.sina.com.cn/pfp/ask/0208/images/l_top.gif" border="0" width="286" height="3">
	</td>
</tr>
<tr>
	<td height="36" class="blbr1d9">
		<table border="0" width="100%">
		<tr>
			<td width="80" height="20" align="center">
				<a href="http://iask.com/" target="_blank">
				<img src="http://image2.sina.com.cn/pfp/ask/0208/images/l_iask_logo2.gif" border="0" width="60" height="15" alt="爱问搜索"></a>
			</td>
			<td valign="bottom">
				<a href="http://zhishi.iask.com/" target="_blank">知识人,亿万网民帮您解决困难!</a>
			</td>
		</tr>
		<tr>
			<td height="5">
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td height="30" class="blbr1d9">
		<table border="0" width="100%" cellpadding="0" cellspacing="0" background="http://image2.sina.com.cn/pfp/ask/0208/images/t_bg.gif">
		<tr align="center">
			<td width="11" height="21">
			</td>
			<td width="42" id="s_td_1" class="s_on" onclick="s_chg(this,1,f);" onmouseover="mouse_on(this);" onmouseout="mouse_of(this);">
				网页
			</td>
			<td width="2">
			</td>
			<td width="42" id="s_td_3" class="s_of" onclick="s_chg(this,3,f);" onmouseover="mouse_on(this);" onmouseout="mouse_of(this);">
				新闻
			</td>
			<td width="2">
			</td>
			<td width="42" id="s_td_7" class="s_of" onclick="s_chg(this,5,f);" onmouseover="mouse_on(this);" onmouseout="mouse_of(this);">
				本地
			</td>
			<td width="2">
			</td>
			<td width="42" id="s_td_2" class="s_of" onclick="s_chg(this,7,f);" onmouseover="mouse_on(this);" onmouseout="mouse_of(this);">
				知识人
			</td>
			<td width="2">
			</td>
			<td width="42" id="s_td_4" class="s_of" onclick="s_chg(this,9,f);" onmouseover="mouse_on(this);" onmouseout="mouse_of(this);">
				图片
			</td>
			<td width="2">
			</td>
			<td width="42" id="s_td_6" class="s_of" onclick="s_chg(this,11,f);" onmouseover="mouse_on(this);" onmouseout="mouse_of(this);">
				MP3
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td id="move_xjt" colspan="1">
			</td>
			<td height="9" align="center">
				<img src="http://image2.sina.com.cn/pfp/ask/0208/images/t_xjt.gif" border="0" width="13" height="9">
			</td>
			<td>
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<form name='f' action='http://iask.com/s' target='_blank' onsubmit="return iask_ck(this)">
		<td height="71" align="center" valign="top" bgcolor="#f9f9fa" class="blbr1d9">
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td height="2">
				</td>
			</tr>
			<tr valign="top">
				<td width="15">
				</td>
				<td>
					<input type="text" id="i_k" name="k" size="20" class="bk_n">
					<div id="eg2" class="eg' pt2" style="display:none;">
						例:餐厅,酒吧,金陵饭店
					</div>
				</td>
				<td width="110" id="lc" class="pl5" style="display:none;">
					<input type="text" name="cl" id="location" size="15" class="bk_n">
					<div class="eg' pt2">
						例:南京,广州中山路
					</div>
				</td>
				<td width="15">
				</td>
			</tr>
			</table>
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
			<tr align="center" valign="bottom">
				<td id="btn1" height="35">
					<input id='btn_i' type='submit' value='搜 索' style='width:60px;'>
					<input type='button' value='提 问' style='width:60px;' onclick='ask(this.form);'>
				</td>
			</tr>
			</table>
		</td>
		<input type="hidden" name="fsh_s">
	</form>
</tr>
</table>
<!– iAsk end –><!– iAsk end –><!–搜索结束–>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部