From df8f2025b735f65b3766186f12bf857c5e4fe601 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 6 Mar 2014 13:59:02 +0900 Subject: [PATCH] =?UTF-8?q?ie6=EC=97=90=EC=84=9C=20=EB=A9=94=EC=9D=B8?= =?UTF-8?q?=EB=B0=B0=EB=84=88=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/shop/basic/mainbanner.10.skin.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/skin/shop/basic/mainbanner.10.skin.php b/skin/shop/basic/mainbanner.10.skin.php index f716de4b9..362084453 100644 --- a/skin/shop/basic/mainbanner.10.skin.php +++ b/skin/shop/basic/mainbanner.10.skin.php @@ -38,7 +38,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) else if ($row['bn_url'] && $row['bn_url'] != 'http://') { echo ''; } - echo ''.$row['bn_alt'].''; + echo ''.$row['bn_alt'].''; if($row['bn_url']) echo ''.PHP_EOL; echo ''.PHP_EOL; @@ -80,6 +80,16 @@ if ($i>0) echo ''.PHP_EOL.''.PHP_EOL; $bnnr.not(".sbn_first").css("left", width+"px"); + $bnnr.each(function() { + var $img = $(this).find("img"); + var img_width = parseInt($img.attr("width")); + if(img_width > width) + img_width = width; + + $img.removeAttr("width"); + $img.width(img_width); + }); + // 기본 설정값 var settings = $.extend({ interval: 5000,