diff --git a/css/default_shop.css b/css/default_shop.css index f1c0dcb6b..f81cb82dd 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -155,7 +155,7 @@ a:active {color:#000;text-decoration:underline} #sbn_aside ul {margin:0;padding:0;border:0;list-style:none} #sbn_aside li {margin:0 0 1px} -#container {z-index:4;position:relative;float:left;width:740px;min-height:500px;height:auto !important;height:500px;background:#fff;zoom:1} +#container {position:relative;float:left;width:740px;min-height:500px;height:auto !important;height:500px;background:#fff;zoom:1} #container:after {display:block;visibility:hidden;clear:both;content:""} /* 텍스트 크기 조절 */ @@ -185,6 +185,9 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none} #ft b {display:inline-block;margin:0 5px 0 0} #ft_totop {position:absolute;top:20px;right:0} +/* Modal Layer */ +#win_mask {display:none;z-index:9999;position:absolute;top:0;left:0;background:#000} + /* Mobile화면으로 */ #mobile_cng {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;background:#fff;color:#000;font-size:2em;text-decoration:none;text-align:center} @@ -635,7 +638,13 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col /* 장바구니 */ #sod_bsk {} .sod_bsk_img {width:90px;text-align:center} -.sod_bsk_itopt {padding:3px;border:1px solid #e9e9e9;background:#f5f6fa} +.sod_bsk_itopt {margin:5px 0;border:1px solid #e9e9e9;border-bottom:0;background:#f5f6fa} +.sod_bsk_itopt ul {margin:0;padding:0;list-style:none} +.sod_bsk_itopt li {padding:3px;border-bottom:1px solid #e9e9e9} +.sod_option_btn .mod_options {margin:0;padding:3px 0;width:100%;border:0;background:#333;color:#fff} + +#sod_bsk_list {position:relative} +#sod_bsk_list #mod_option_frm {z-index:10000;position:absolute;top:0;left:99px;padding:20px;width:500px;height:auto !important;height:500px;max-height:500px;border:1px solid #000;background:#f5f6fa;overflow-y:scroll} #sod_bsk_dvr {padding:5px 0 12px;border-bottom:1px solid #e9e9e9} #sod_bsk_cnt {margin:0 0 10px;padding:12px 0 12px;border-bottom:1px solid #e9e9e9;background:#f5f6fa} diff --git a/js/common.js b/js/common.js index f1ccb40e9..be587bfce 100644 --- a/js/common.js +++ b/js/common.js @@ -620,12 +620,26 @@ $(function(){ } }); - $("textarea#wr_content[maxlength]").live("keyup change", function() { - var str = $(this).val() - var mx = parseInt($(this).attr("maxlength")) - if (str.length > mx) { + $("textarea#wr_content[maxlength]").live("keyup change", function() { + var str = $(this).val() + var mx = parseInt($(this).attr("maxlength")) + if (str.length > mx) { $(this).val(str.substr(0, mx)); - return false; - } + return false; + } }); -}); \ No newline at end of file +}); + +// 모달 레이어 http://mytory.net/archives/783 참조 +function winMask(){ // 모달 레이어 배경 + //화면의 높이와 너비를 구한다. + var maskHeight = $(document).height(); + var maskWidth = $(window).width(); + + //마스크의 높이와 너비를 화면 것으로 만들어 전체 화면을 채운다. + $('#win_mask').css({'width':maskWidth,'height':maskHeight}); + + //애니메이션 효과 + $('#win_mask').fadeTo("fast",0.8); +} +// 모달 레이어 끝 \ No newline at end of file diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 116714e5c..2c61b49c0 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -693,7 +693,7 @@ function print_item_options($it_id, $uq_id) for($i=0; $row=sql_fetch_array($result); $i++) { if($i == 0) $str .= '