//当用户名内容改变时,重置发送短信按钮
$("#userName").bind('input propertychange', function() {
$("#sendMessage").removeAttr("disabled").val("点击获取");
wait = 30;
$("#errorMsg").text("");
});
/* $("#errorMsg").on("change.js", function(){//使文字始终保持垂直居中
$(this).css("lineHeight", "40px");
if ($(this).height() > 42) {
$(this).css("lineHeight", "normal");
} else if ($(this).height() < 42) {
$(this).css("lineHeight", "40px");
}
}); */
$("#weixin").powerFloat({
eventType: "hover",
targetMode: null,
target: $("#weixinQrCode"),
position: "7-5"
});
$("#app").powerFloat({
eventType: "hover",
targetMode: null,
target: $("#appQrCode"),
position: "7-5"
});
});
function submitForm() {
if(confirm()){
if (document.loginForm.password.value.length != 32) {
document.loginForm.password.value=calcMD5(document.loginForm.password.value);
}
document.loginForm.actionType.value = "login";
document.loginForm.submit();
}
}
function reset(){
document.loginForm.reset();
document.loginForm.account.focus();
}
function changeUserType() {
var userType = document.loginForm.userType.value;
if (userType == "2") {
document.all.school.style.display = "";
} else {
document.all.school.style.display="none";
}
}
function judge(){
var event=arguments.callee.caller.arguments[0]||window.event;//消除浏览器差异
if (event.keyCode == 13) {
ajaxSubmitForm();
}
}
//刷新页面验证码
function refleshCheckCode() {
document.getElementById("checkCode").src = "picCheck?timeStamp=" + new Date().getTime();
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=[];
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i