⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 js.js

📁 网上收集的
💻 JS
字号:
//全局变量
error = "错误提示:\n\n"

//房源详细信息
function house(Id){
	window.open("?p=7&id="+Id,"","width=609,height=755,left="+(screen.availWidth-609)/2+",top="+(screen.availHeight-755)/2)	
}

//图片切换
function changeImg(value){
	document.images["FyPicture"].src = "../UploadFiles/"+value;
}

//房源发布表单
function FangYuan(){
	A = document.form1.qy; B = document.form1.hx; C = document.form1.zj; D = document.form1.sj; E =document.form1.wz;
	F = document.form1.tell; G = document.form1.mail; H = document.form1.yq; I = document.form1.classd;
	if(A.value == ""){alert(error + "请选择区域!");A.focus();return false;}
	else if(B.value == ""){alert(error + "请选择户型!");B.focus();return false;}
	else if((I.value == "我要出租" || I.value == "我要求租") && C.value == ""){alert(error + "请选择租金!");C.focus();return false;}
	else if((I.value == "我要出售" || I.value == "我要求购") && D.value == ""){alert(error + "请选择售价!");D.focus();return false;}
	else if(E.value == ""){alert(error + "位置/小区不能为空!");E.focus();E.select();return false;}
	else if(F.value == "" && G.value == ""){alert(error + "(联系电话/邮箱地址)都为空,你至少留下一项联系方式!谢谢合作!");F.focus();F.select();return false;}
	else if(F.value != "" && (isNaN(F.value) || F.value.length < 7)){alert(error + "电话号码无效!");F.focus();F.select();return false;}
	else if(G.value != "" &&(G.value.length < 6 || G.value.indexOf("@")== -1 || G.value.indexOf(".")== -1)){alert(error + "邮箱地址无效!");G.focus();G.select();return false;}
	else if(G.value != "" &&(G.value.indexOf("com")== -1 && G.value.indexOf("net")== -1 && G.value.indexOf("cn")== -1 && G.value.indexOf("cc")== -1 && G.value.indexOf("org")== -1)){alert(error + "邮箱地址无效!");G.focus();G.select();return false;}
	else {
		  document.getElementById("form1").submit();
	}
}

//无边框FLASH
function LoadFlash(url,wmode,width,Height)
{ 
document.write(
  '<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
  '" height="' + Height + '"></embed>');   
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -