이것저것 찾아보다가 결국 혼자 해결 했습니다;;
비슷한 예제도 있긴한데 이게 제일 간편하게 적용 가능 할 듯 하네요.
shop.lib.php 부분의 '//이미지를 얻는다' 부분을 통째로 바꾸시면 됩니다 실제로는 두줄 추가한거지만
이래저래 찾기 귀찮으신 분들을 위해 ^^
// 이미지를 얻는다
function get_image($img, $width=0, $height=0)
{
global $g4, $default;
$full_img = "$g4[path]/data/item/$img";
if (file_exists($full_img) && $img)
{
if (!$width)
{
$size = getimagesize($full_img);
$width = $size[0];
$height = $size[1];
}
$str = "<img id='$img' src='$g4[url]/data/item/$img' width='$width' height='$height' border='0'";
$str .= "style=\"FILTER: alpha(opacity=100)\" onmouseover=\"this.style.filter = 'alpha(opacity=80)';\" onmouseout=\"this.style.filter='none'\">";
}
else
{
$str = "<img id='$img' src='$g4[shop_img_url]/no_image.gif' border='0' ";
if ($width)
$str .= "width='$width' height='$height'";
else
$str .= "width='$default[de_mimg_width]' height='$default[de_mimg_height]'";
$str .= "style=\"FILTER: alpha(opacity=100)\" onmouseover=\"this.style.filter = 'alpha(opacity=90)';\" onmouseout=\"this.style.filter='none'\">";
}
return $str;
}
댓글 4개
게시글 목록
| 번호 | 제목 |
|---|---|
| 810 | |
| 807 | |
| 789 | |
| 779 | |
| 769 | |
| 723 | |
| 722 | |
| 720 | |
| 716 | |
| 713 | |
| 714 | |
| 707 | |
| 706 | |
| 687 | |
| 690 | |
| 685 | |
| 673 | |
| 672 | |
| 671 | |
| 661 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기