모든 이미지가 마우스 오버시 흐릿하게 변하므로, 리스트 화면의 이미지만 흐릿하게 변하도록 바꿔봤습니다.
// 이미지를 얻는다 -- 마우스 오버시 이미지 흐릿하게
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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1304 | |
| 1301 | |
| 1296 | |
| 1290 | |
| 1289 | |
| 1287 | |
| 1282 | |
| 1281 | |
| 1280 | |
| 1276 | |
| 1271 | |
| 1264 | |
| 1260 | |
| 1259 | |
| 1250 | |
| 1243 | |
| 1242 | |
| 1241 | |
| 1234 | |
| 1231 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기