在你的网页上加上多个搜索引擎的查找框

发布时间:2008-12-19 14:32:59 阅读次数:

要完成此效果把如下代码加入到区域中

<script language="JavaScript"> var FirstForm; function StartSearch() { document.forms[FirstForm+document.InputForm.SearchSelect. selectedIndex].elements[0].value=document.InputForm.SearchWords.value; document.forms[FirstForm+document.InputForm.SearchSelect. selectedIndex].submit(); } </script>查找内容:
搜索引擎:
<script language="JavaScript"> FirstForm=document.forms.length </script>