用百度搜索完成网站内部检索的Javascript编码

2021-03-24 17:50 jianzhan
{
var url = baidu
formname.method = get
if (alue.value == 1 ) {
document.search_form1.word.value = document.search_form1.word.value+ site:
}
formname.action = url;
return true;
}
//--
/SCRIPT
form name= search_form1 target= _blank onsubmit= return go(this)
input name=word size= 30 value= 请键入重要字 quot;this.focus() onBlur= if (value == ){value= 请键入重要字 } onFocus= this.select() quot;if(this.value== 请键入重要字 )this.value=  
input type= submit value= 检索 br
INPUT alue type=hidden value=0
INPUT name=tn type=hidden value= sayyes
INPUT name=cl type=hidden value= 3
INPUT CHECKED name=myselect avascript:this.alue.value=0; type=radio value=0
FONT color=# > INPUT name=myselect avascript:this.alue.value=1; type=radio value=1
FONT color=#ff0000 > /form