신상품이나 기획상품에서 이미지 리스트에서 질문입니다. > 그누3질답

그누3질답

신상품이나 기획상품에서 이미지 리스트에서 질문입니다. 정보

그샵 신상품이나 기획상품에서 이미지 리스트에서 질문입니다.

본문

상품올리면 이미지 나오잖아요..
그런데 이미지 테두리를 검은색이나 다른색깔혹은 border=3을 이런식으로 주고 좀 꾸미고 싶은데..
어디서 하나요. 보통은 <img src=이미지 border=3 style='border-color:EFEFEF;'>이런식으로 꾸며주면되는데..
그샵은 그런게 업고 이상한php언어뿐이군요.. 어디서 수정해야하나요..

[이 게시물은 관리자님에 의해 2003-11-25 11:14:00 그샵질답(으)로 부터 이동됨]
  • 복사

댓글 전체

if (file_exists("./$cfg[shop_dir]/img/item/$img") && $img) {
      if (!$width && !$height) {
          $size = getimagesize("./$cfg[shop_dir]/img/item/$img");
          $width = $size[0];
          $height = $size[1];
          $width2 = $size[0]+10;//숫자는 보더값의 두배 아래 위로보더가 생기니깐요...
          $height2 = $size[1]+10;//숫자는 보더값의 두배 좌우로 보더가 생기니깐요...
      }
일케 수정하시고

 $str .= "<div id=$img style='position:relative; width:$width2; height:$height2; overflow:hidden;'>";

수정해서 해보면..... 될것 같기도 한데요... 될려나요?
"<div id=$img style='position:relative; width:$width; height:$height; overflow:hidden;'>
에서요....
width:$width; height:$height;의 값이 문제일것 같군요...
되는데 이상하네요.. 전체적으로 테두리가 생겨야 하는데요.. 왼쪽하고 윗쪽에만 테두리만 생기고 오른쪽하고
아래 테두리는 안생기네요..
머가 문제 일까요?
shop.lib.php  218라인에요

// 상품 이미지 출력
// 레이어를 이용하여 다른 이름으로 저장시에 blank.gif 가 저장되도록 함
function item_img($img, $width=0, $height=0, $noimage="a", $align="")
{
    global $cfg;
    global $current_url;

    if (!$current_url) { $current_url = "."; }

    $str = "";
    if (file_exists("./$cfg[shop_dir]/img/item/$img") && $img) {
        if (!$width && !$height) {
            $size = getimagesize("./$cfg[shop_dir]/img/item/$img");
            $width = $size[0];
            $height = $size[1];
        }
        # 1.04 수정
        # span 태그를 div 태그로 교체 (모질라에서 보임)
        $str .= "<div id=$img style='position:relative; width:$width; height:$height; overflow:hidden;'>";
        $str .= "<div style='position:absolute; left:0; top:0; z-index:0;'>";
        $str .= "<img src='$current_url/$cfg[shop_dir]/img/item/$img' border=0 width='$width' height='$height' align='$align'>"; <===이부분 아닐 까요?
        $str .= "</div>";
        $str .= "<div style='position:absolute; left:0; top:0; z-index:100;'>";
        $str .= "<img src='$current_url/$cfg[shop_dir]/img/blank.gif' border=0 width='$width' height='$height' align='$align'>";<===이부분 하고요?
        $str .= "</div>";
        $str .= "</div>";
    } else {
        $str .= "<img src='$current_url/$cfg[shop_dir]/img/noimage{$noimage}.gif' border=0 width='$width' height='$height' align='$align'>";
    }
    return $str;
}
© SIRSOFT
현재 페이지 제일 처음으로