DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS詳解 >> 實現百度站內搜索的代碼
實現百度站內搜索的代碼
編輯:CSS詳解     
<SCRIPT language=Javascript>
<!--
function go(formname)
{
var url = "http://www.baidu.com/baidu";
formname.method = "get";
if (formname.myselectvalue.value == "1") {
document.search_form1.word.value = document.search_form1.Word.value+" site:niceboy.cnblogs.com";
}
formname.action = url;
return true;
}
//-->
</SCRIPT>
<form name="search_form1" target="_blank" onsubmit="return go(this)">
<input name=Word size="30" value="請輸入關鍵字" onMouSEOver="this.focus()" onBlur="if (value ==''){value='請輸入關鍵字'}" onFocus="this.select()" onClick="if(this.value=='請輸入關鍵字')this.value=''">
<input type="submit" value="搜索"><br>
<INPUT name=myselectvalue type=hidden value=0>
<INPUT name=tn type=hidden value="sayyes">
<INPUT name=cl type=hidden value="3">
<INPUT CHECKED name=myselect onclick=Javascript:this.form.myselectvalue.value=0; type=radio value=0>
<FONT color=#0000cc style="FONT-SIZE: 12px">互聯網
<INPUT name=myselect onclick=Javascript:this.form.myselectvalue.value=1; type=radio value=1>
<FONT color=#ff0000 style="FONT-SIZE: 12px">站內
</form>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved