document.getElementById("signup_container").innerHTML = '
';document.getElementById("furl").value=window.location.href;(function(){ var oForm = document.getElementById("signup_Form"); var oN=document.getElementById("signup_name"); var oT=document.getElementById("signup_tel"); oForm.onsubmit=function(ev){ if(oN.value==""){ alert("姓名不能为空"); return false; } if(oT.value.replace(/(^\s*)|(\s*$)/g, "")==""){ alert("手机不能为空"); return false; } if(oT.value.length!=11 && oT.value.length!=12){ alert("请输入正确的手机号码,固话前请加区号"); return false; } $("#signup_Form button").replaceWith("信息已提交"); $.post($("#signup_Form").attr("action"), $("#signup_Form").serialize(), function(result){ var ret = $.parseJSON(result); alert(ret.msg+"!"); }); return false; }}());$(".verify_e").bind("focus",function(){ $(this).parent().parent().css("border-color","#fe563c");});$(".verify_e").bind("blur",function(){ $(this).parent().parent().css("border-color","");});