当前位置: 育儿网 > 怀孕前后 > 怀孕期
5 function OnSubmit() { var keyword=document.getElementById('keyword'); if(keyword.value.length==0){ keyword.focus(); alert('输入不能为空!'); return false; } if(keyword.value=="输入想解决的幼儿疑惑吧~"){ keyrowd.focus(); alert('请输入关键字!'); return false; } document.getElementById("search_form").action="http://search.ci123.com/all/"+keyword.value+".html"; document.getElementById("search_form").submit(); //location.href = "http://search.ci123.com/all/"+keyword.value+".html"; return false; } function AskSubmit() { location.href = "http://search.ci123.com/ask/"+document.getElementById('ask_key').value+".html"; return false; } function questions_add(str){ if(str=='请输入关键词'){ str=''; } this.location.href = 'http://ask.ci123.com/questions/add/'+encodeURI( str ); return false; }
0