phpcms v9:站内外搜索代码

2016-07-11   点击:   发布者:南京互诺科技
 phpcms v9 站内外搜索代码<form name="search_form1" target="_blank" onsubmit="return go(this)"><input name="q" id="q" size=...

phpcms v9 站内外搜索代码

<form name="search_form1" target="_blank" onsubmit="return go(this)">
<input name="q" id="q" size="30" value="请输入关键字" onMouseOver="this.focus()" onBlur="if (value ==''){value='请输入关键字'}" onFocus="this.select()" onClick="if(this.value=='请输入关键字')this.value=''">

<INPUT name="word" type="hidden" value=0>
<INPUT name="myselectvalue" type="hidden" value=0>
<INPUT name="tn" type="hidden" value="sayyes">
<INPUT name="cl" type="hidden" value="3">

<input type="hidden" name="m" value="search"/>
<input type="hidden" name="c" value="index"/>
<input type="hidden" name="a" value="init"/>
<input type="hidden" name="typeid" value="1"/>
<input type="hidden" name="siteid" value="1"/>

<INPUT CHECKED name="myselect" onclick=javascript:this.form.myselectvalue.value=0; type=radio value=0>
<FONT color=#0000cc style="FONT-SIZE: 12px">互联网</FONT>
<INPUT name="myselect" onclick=javascript:this.form.myselectvalue.value=1; type=radio value=1>
<FONT color=#ff0000 style="FONT-SIZE: 12px">站内</FONT>
<input type="submit" value="搜索">
</form>
<SCRIPT language=javascript>
<!--
function go(formname)
{
var url = "http://www.baidu.com/baidu";
formname.method = "get";
if (formname.myselectvalue.value == "1") {
url="{APP_PATH}index.php";
}
document.search_form1.word.value = document.search_form1.q.value;
formname.action = url;
return true;
}
//-->
</SCRIPT> 

window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];