jQuery(document).ready(function() { jQuery.extend({ aftLogin: function() { location.reload(); } }); $("#lnk_login").die("click") .live("click", function() { $("div.contents input[name='userId']").focus(); }); $("div.contents input[class='inptxt']").live("keypress", function(e) { if (13 == e.keyCode) { if ("userId" == this.name) { $("div.contents input[name='pwd']").focus(); } else if ("pwd" == this.name) { $("#btn_user_login").trigger("click"); } return false; } }); // ¾ÆÀ̵ð/ºñ¹Ð¹øÈ£ ã±â·Î À̵¿ $("#find_idpwd").live("click", function() { $("#lnk_find_idpwd").trigger("click"); return false; }); $("div.mem_service_box ul > li > a").click(function() { if (0 < $("#p_mem_service").length) { $("#p_mem_service").hide(); $("#p_mem_service").remove(); } var pageAnchor = this.href; $("body").append($("
") .attr("id", "p_mem_service") .load("/common/widget_skin/mem_benefit_widget.htm", function() { var lPos = Math.floor(($(window).width() - this.offsetWidth) / 2) + $(window).scrollLeft(); var tPos = Math.floor(($(window).height() - this.offsetHeight) / 2) + $(window).scrollTop(); $(this).css("left", lPos < 0 ? 0 : lPos) .css("top", tPos < 0 ? 0 : tPos); $(this).find("span.close a").click(function() { $("#p_mem_service").hide(); $("#p_mem_service").remove(); }); } ) ); return false; }); $("div.contents input[name='userId']").focus(); });