모든 이미지가 마우스 오버시 흐릿하게 변하므로, 리스트 화면의 이미지만 흐릿하게 변하도록 바꿔봤습니다.
// 이미지를 얻는다 -- 마우스 오버시 이미지 흐릿하게
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];
}
if (substr($img,-1) == "s")
{
$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[url]/data/item/$img' width='$width' height='$height' border='0'>";
}
}
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 .= ">";
}
return $str;
}
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1111 | |
| 1107 | |
| 1105 | |
| 1102 | |
| 1099 | |
| 1098 | |
| 1097 | |
| 1101 | |
| 1096 | |
| 1132 | |
| 1094 | |
| 1092 | |
| 1091 | |
| 1088 | |
| 1087 | |
| 1083 | |
| 1082 | |
| 1076 | |
| 1068 | |
| 1056 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기