JavaScript帶引數跳轉頁面
阿新 • • 發佈:2019-01-30
<script type="text/javascript">
function keyTextBlur() {
document.getElementById("txtKey").value = "";
document.getElementById("txtKey").className = "txtKey2";
}
function show(object) {
var rbRealty = document.all.rbRealty;
var txtKey = document.all.txtKey;
var str=document.getElementById("txtKey").value;
var key1="請輸入樓盤名或開發商";
var key2="請輸入新聞關鍵字";
if (rbRealty.checked) {
if(str=="" || str==key2)
txtKey.value = "請輸入樓盤名或開發商";
} else {
if(str=="" || str==key1)
txtKey.value = "請輸入新聞關鍵字";
}
}
function keySearch(){
var re=/ /g;
var str=document.getElementById("txtKey").value;
var city=document.getElementById("lblCity").innerText;
str=str.replace(re,"");
var key1="請輸入樓盤名或開發商";
var key2="請輸入新聞關鍵字";
if(str==key1 || str==key2)
{
alert("請輸入關鍵字");
}
else
{
function keyTextBlur() {
document.getElementById("txtKey").value = "";
document.getElementById("txtKey").className = "txtKey2";
}
function show(object) {
var rbRealty = document.all.rbRealty;
var txtKey = document.all.txtKey;
var str=document.getElementById("txtKey").value;
var key1="請輸入樓盤名或開發商";
var key2="請輸入新聞關鍵字";
if (rbRealty.checked) {
if(str=="" || str==key2)
txtKey.value = "請輸入樓盤名或開發商";
} else {
if(str=="" || str==key1)
txtKey.value = "請輸入新聞關鍵字";
}
}
function keySearch(){
var re=/ /g;
var str=document.getElementById("txtKey").value;
var city=document.getElementById("lblCity").innerText;
str=str.replace(re,"");
var key1="請輸入樓盤名或開發商";
var key2="請輸入新聞關鍵字";
if(str==key1 || str==key2)
{
alert("請輸入關鍵字");
}
else
{