下面按条件搜索的代码是什么意思,var SearchID =5;var SearchURL = new Array();SearchURL[4] = '/truck/';SearchURL[5] = '/sell/';SearchURL[6] = '/buy/';SearchURL[7] = '/news/';SearchURL[21] = '/company/';function setdsearch(ID) {\x05if(ID =
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/07 16:43:26
下面按条件搜索的代码是什么意思,var SearchID =5;var SearchURL = new Array();SearchURL[4] = '/truck/';SearchURL[5] = '/sell/';SearchURL[6] = '/buy/';SearchURL[7] = '/news/';SearchURL[21] = '/company/';function setdsearch(ID) {\x05if(ID =
下面按条件搜索的代码是什么意思,
var SearchID =5;
var SearchURL = new Array();
SearchURL[4] = '/truck/';
SearchURL[5] = '/sell/';
SearchURL[6] = '/buy/';
SearchURL[7] = '/news/';
SearchURL[21] = '/company/';
function setdsearch(ID) {
\x05if(ID == SearchID) return;
\x05document.getElementById('ms'+ID).className = 'sch_on';
\x05document.getElementById('ms'+SearchID).className = 'sch_li';
\x05SearchID = ID;\x05
}
function keypress()
{
var e=e||event;
var keyName="start";
var currKey=e.keyCode||e.which||e.charCode;
if(currKey==13)
{
Dsearch();
return false;
}
}
function Dsearch() {
\x05if(document.getElementById('destoon_kw').value == '' || document.getElementById('destoon_kw').value == '请输入您要找信息的关键字') {
\x05\x05alert('请输入关键字');
\x05\x05document.getElementById('destoon_kw').focus();
\x05\x05return false;
\x05}
\x05else
\x05{
\x05 var key=document.getElementById('destoon_kw').value;
\x05 //window.location=SearchURL[SearchID]+'Search.aspx?key='+escape(key);
\x05 if(SearchID==5){
\x05 window.open(SearchURL[SearchID]+'sells.aspx?key='+escape(key));
\x05 }else if(SearchID==6){
\x05 window.open(SearchURL[SearchID]+'buy.aspx?key='+escape(key));
\x05 }else if(SearchID==4){
\x05 window.open(SearchURL[SearchID]+'truck.aspx?key='+escape(key));
\x05 }else{
\x05 window.open(SearchURL[SearchID]+'Search.aspx?key='+escape(key));
\x05 }
\x05}
}
没有人回答啊
下面按条件搜索的代码是什么意思,var SearchID =5;var SearchURL = new Array();SearchURL[4] = '/truck/';SearchURL[5] = '/sell/';SearchURL[6] = '/buy/';SearchURL[7] = '/news/';SearchURL[21] = '/company/';function setdsearch(ID) {\x05if(ID =
没看的明白,那个软件?