From 82b294b54f7952263da8dbd177bd7366321ee2ba Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 27 Nov 2013 10:00:27 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=A0=EB=8B=88=EB=A9=94=EC=9D=B4=EC=85=98?= =?UTF-8?q?=20=EC=8A=A4=ED=82=A8=20=EB=86=92=EC=9D=B4=20=EC=A7=80=EC=A0=95?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/shop/basic/main.20.skin.php | 11 ++++++++++- skin/shop/basic/main.30.skin.php | 9 +++++++++ skin/shop/basic/main.40.skin.php | 9 +++++++++ skin/shop/basic/main.50.skin.php | 12 +++++++++++- skin/shop/basic/style.css | 2 +- 5 files changed, 40 insertions(+), 3 deletions(-) diff --git a/skin/shop/basic/main.20.skin.php b/skin/shop/basic/main.20.skin.php index 5952fb86c..00464ff13 100644 --- a/skin/shop/basic/main.20.skin.php +++ b/skin/shop/basic/main.20.skin.php @@ -120,12 +120,21 @@ if($i == 1) echo "

등록된 상품이 없습니다.

\ { var $smt = this.find("ul.sct_ul"); var $smt_a = $smt.find("a"); - var height = $smt.closest("ul").height(); + var height = 0; var count = $smt.size(); var c_idx = o_idx = 0; var fx = null; var el_id = this[0].id; + $smt.each(function() { + var h = $(this).height(); + if(h > height) + height = h; + }); + + this.height(height); + $smt.eq(o_idx).siblings().css("top", height+"px"); + // 기본 설정값 var settings = $.extend({ interval: 5000, diff --git a/skin/shop/basic/main.30.skin.php b/skin/shop/basic/main.30.skin.php index c5db7b4af..e1d040e2b 100644 --- a/skin/shop/basic/main.30.skin.php +++ b/skin/shop/basic/main.30.skin.php @@ -117,11 +117,20 @@ if($i == 1) echo "

등록된 상품이 없습니다.

\ var $smt = this.find("ul.sct_ul"); var $smt_a = $smt.find("a"); var width = $smt.eq(0).width(); + var height = 0; var count = $smt.size(); var c_idx = smt_o_idx = 0; var fx = null; var el_id = this[0].id; + $smt.each(function() { + var h = $(this).height(); + if(h > height) + height = h; + }); + + this.height(height); + // 기본 설정값 var settings = $.extend({ interval: 6000, diff --git a/skin/shop/basic/main.40.skin.php b/skin/shop/basic/main.40.skin.php index 88f6635c6..fd29ec860 100644 --- a/skin/shop/basic/main.40.skin.php +++ b/skin/shop/basic/main.40.skin.php @@ -124,6 +124,15 @@ if($i == 1) echo "

등록된 상품이 없습니다.

\ var c_idx = o_idx = 0; var fx = null; var el_id = this[0].id; + var height = 0; + + $smt.each(function() { + var h = $(this).height(); + if(h > height) + height = h; + }); + + this.height(height); // 기본 설정값 var settings = $.extend({ diff --git a/skin/shop/basic/main.50.skin.php b/skin/shop/basic/main.50.skin.php index 853ba3c42..c35bf6126 100644 --- a/skin/shop/basic/main.50.skin.php +++ b/skin/shop/basic/main.50.skin.php @@ -120,12 +120,21 @@ if($i == 1) echo "

등록된 상품이 없습니다.

\ var $smt = this.find("ul.sct_ul"); var $smt_a = $smt.find("a"); var count = $smt.size(); - var height = $smt.height(); + var height = 0; var c_idx = o_idx = 0; var fx = null; var delay = 0; var el_id = this[0].id; + $smt.find("li.sct_li").each(function() { + var h = $(this).height(); + if(h > height) + height = h; + }); + + this.height(height); + $smt.height(height); + // 기본 설정값 var settings = $.extend({ interval: 6000, @@ -135,6 +144,7 @@ if($i == 1) echo "

등록된 상품이 없습니다.

\ // 초기실행 if(count > 0 && intervals[el_id] == undefined) { + $smt.find("li.sct_li").css("top", "-"+height+"px"); $smt.eq(0).find("li.sct_li").each(function() { $(this).delay(delay).animate( { top: "+="+height+"px" }, settings.duration diff --git a/skin/shop/basic/style.css b/skin/shop/basic/style.css index f2c4129eb..b44add5b6 100644 --- a/skin/shop/basic/style.css +++ b/skin/shop/basic/style.css @@ -87,7 +87,7 @@ /* 메인 상품 목록 스킨 20 */ .smt_20 {position:relative;overflow-y:hidden} -.smt_20 .sct_ul {display:none;position:absolute;top:306px;left:0;margin:0;padding:0;list-style:none} +.smt_20 .sct_ul {position:absolute;top:0;left:0;margin:0;padding:0;list-style:none} .smt_20 .sct_ul_first {display:block;top:0} .smt_20 .sct_li {position:relative;float:left;margin:0 25px 15px 0} .smt_20 .sct_last {margin:0 0 15px !important}