var st = new Date(); function changeRegImg() { document.getElementById("regimg").src = "captcha?"+Math.random(); } $(function(){ jQuery(".top_roll").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",interTime:50,trigger:"click"}); }); $(function(){ var mac=''; try{ if(/msie/.test(navigator.userAgent.toLowerCase())){ mac = IfcMcCtrl_ie.GetMacAddrs(); }else{ mac = IfcMcCtrl_ff.GetMacAddrs(); } }catch(err) { } if(typeof(mac)!=null && typeof(mac)!="undefined"){ document.getElementById("macCommit").value = mac; } }); //打开弹出框 function showSearch(showId) { // 获取遮罩层宽高 var ieheight = $(document).height(); var idwidth = $(document).width(); // 获取窗口宽高 var wheight = $(window).height(); var width = $(window).width(); var showId_dw = $("#" + showId).width(); var showId_dh = $("#" + showId).height(); $("#shadow").css("display", "block"); $("#shadow").css("width", idwidth + "px"); $("#shadow").css("height", ieheight + "px"); $("#"+showId).css("display", "block"); $("#"+showId).css("top",(wheight - showId_dh - 90) / 2 + "px"); $("#"+showId).css("left",(width - showId_dw) / 2 + "px"); if (showId == "FsFSX_macbind") { checkMac(); } else { $('#formLogin').keypress(function(e){ if (e.which == 13) { return false; } }); } } //验证mac function checkMac() { var mac=''; try{ if(/msie/.test(navigator.userAgent.toLowerCase())){ mac = IfcMcCtrl_ie.GetMacAddrs(); }else{ mac = IfcMcCtrl_ff.GetMacAddrs(); } }catch(err) { divClose("FsFSX_macbind"); alert("获取mac异常"); } if(typeof(mac)!=null && typeof(mac)!="undefined" && mac != ""){ $("#macMindView").show(); $("#plugMindView").hide(); document.getElementById("mac").value = mac; } else { $("#plugMindView").show(); $("#macMindView").hide(); } } //关闭弹出框 function divClose(v) { $("#shadow")[0].style.display = "none"; $("#" + v)[0].style.display = "none"; // document.location="/"; }