搜索栏的实现(JS)
<table cellspacing="0" cellpadding="0" width="768" align="center" border="0">
<tbody>
<tr>
<td>
<table class="wordbreak" cellspacing="6" cellpadding="0" width="768" align="center" border="0">
<tr>
<td valign="top" width="100%" bgcolor="#ffffff">
<!-- Search begin -->
<script>
function search5()
{
if(form1.abc4.checked)
window.open("http://www.iask.com/s?k="+form1.key.value,"mspg4");
if(form1.abc5.checked)
window.open("http://www.sogou.com/web?sogouhome=&shuru=shou&query="+form1.key.value,"mspg5");
if(form1.abc3.checked)
window.open("http://cn.search.yahoo.com/search?p="+form1.key.value,"mspg3");
if(form1.abc2.checked)
window.open("http://www.google.com/search?hl=zh-CN&inlang=zh-CN&ie=GB2312&oe=GB2312&q="+form1.key.value,"mspg2");
if(form1.abc1.checked)
window.open("http://www.baidu.com/s?tn=thws&word="+form1.key.value,"mspg1");
return false;
}
</script>
<form name="form1" onsubmit="return(search5())">
<input onmouseover="this.select()" maxlength="50" size="38" value="浮动窗口代码" name="key">
<input type="hidden" value="GB2312" name="ie"> <input type="hidden" value="GB2312" name="oe">
<input type="hidden" value="zh-CN" name="hl"> <input type="image" src="go.gif" align="absBottom" name="B2" />
<input type="checkbox" checked value="baidu" name="abc1"><a href="http://www.baidu.com/">百度</a>
<input type="checkbox" value="google" name="abc2"><a href="http://www.google.com/intl/zh-CN/">google</a>
<input type="checkbox" value="yahoo" name="abc3"><a href="http://cn.search.yahoo.com/web?&ei=UTF-8">雅虎</a>
<input type="checkbox" value="iask" name="abc4"><a href="http://www.iask.com/">爱问</a>
<input type="checkbox" value="sohu" name="abc5"><a href="http://www.sogou.com/">搜狗</a>
</form>
<!-- Search end -->
</td>
</tr>
</table>
</tr>
</table>