怎样添加站内搜索
- 提问者网友:美人性情
- 2021-04-10 23:10
- 五星知识达人网友:往事隔山水
- 2021-04-10 23:28
- 1楼网友:迷人又混蛋
- 2021-04-11 00:13
<SCRIPT language=javascript> function g(formname) { var url = " http://www.baidu.com/baidu"; if (formname.s[1].checked) { formname.ct.value = "2097152"; } else { formname.ct.value = "0"; } formname.action = url; return true; } </SCRIPT> <form name="f1" onsubmit="return g(this)"> <table bgcolor="#FFFFFF" style="font-size:9pt;"> <tr height="60"><td valign="top"><img src=" http://img.baidu.com/img/logo-137px.gif" border="0" alt="baidu"></td> <td> <input name=word size="30" maxlength="100"> <input type="submit" value="百度搜索"><br> <input name=tn type=hidden value="bds"> <input name=cl type=hidden value="3"> <input name=ct type=hidden> <input name=si type=hidden value="你的网站地址"> <input name=s type=radio> 互联网 <input name=s type=radio checked> 你的网站地址 </td></tr></table> </form>
把代码加到首页中即可