$( function () { try { $("input[type='text']").blur(function () { $(this).val($.trim($(this).val())); }); var Sys = {}; var ua = navigator.userAgent.toLowerCase(); if (window.ActiveXObject) { Sys.ie = ua.match(/msie ([\d.]+)/)[1]; } else if (document.getBoxObjectFor) { Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1]; } else if (window.MessageEvent && !document.getBoxObjectFor) { Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1]; } else if (window.opera) { Sys.opera = ua.match(/opera.([\d.]+)/)[1]; } else if (window.openDatabase) { Sys.safari = ua.match(/version\/([\d.]+)/)[1]; } //以下进行测试 if (Sys.ie) { if (parseInt(Sys.ie) <= 6) { window.location.href = "/IEError.html"; } } // $(".xialap").find("input").after("
") } catch (e) { } } ); function ShowWaitFront() { var WaitHtml = ' '; $("body").append(WaitHtml); $("#ShowWait").css("display", "block"); $("#ImgWait").css("display", "block"); $("#ShowWait").height($("body").height()); $("#ImgWait").css("top", parseInt($("body").height()) / 2); $("#ImgWait").css("left", (parseInt($("body").width()) / 2) - 77); } function CloseWaitFront() { $("#ShowWait").remove(); $("#ImgWait").remove(); } //为Select新增过滤功能 function SelectAddSearch() { $("select[SelInputHtml='True']").each(function (i, v) { $(this).unbind("blur"); var old = $(this).html(); var oldObject = $(this).clone(); var sign = "selectS" + i; $(v).attr("sign", sign); var inputClass = "input_" + sign; var html = "过滤:"; $(v).after(html); $("." + inputClass).blur(function () { var nowval = $(this).val().trim(); var output = ""; if (nowval == "" || nowval == null) { output = old; } else { var valueArr = new Array(); oldObject.find("option").each(function (ii, vv) { var value = $.trim($(vv).attr("value")); var text = $.trim($(vv).text()); if (text.indexOf(nowval) >= 0) valueArr.push(value + "|||" + text); }); for (var ss in valueArr) { var s = valueArr[ss]; if (s.split("|||").length == 2) { var value1 = s.split("|||")[0]; var text1 = s.split("|||")[1]; output += ""; } } } $(v).html(output); }); }); } function openWindowTransferData(str_url, dt_name, dt_param) { var str_form_head = ''; var str_form_param = ''; var str_javascript_execute = '