php잘하시는분 좀 봐주세요 정보
php잘하시는분 좀 봐주세요본문
쇼핑몰 메인 상품 이미지 나오는 섬네일 부분 소스인데요..
출력되는 썸네일 밑에 액자 이미지를 넣을려고 하는데 어디를 추가 해주면 되나요??
그리고 아래 답변 주셨는데 이미지 마우스 오버 하면 흐려졌다 다시 돌아오는 효과 소스
<img src="이미지경로" onmouseover="this.style.filter='alpha(opacity=40)'" onmouseout="this.style.filter=''" > <-요걸 어디다 넣으면 되나요?
-- 아래 수정해야할 원소스 시작 --
<?php
$co = 0;
$num_rows = 4; // 1契鞫刻돨?틔鑒
$num_goods = 8; // ?틔鑒
$width_per = (int)(100 / $num_rows);
$query = "select * from $morning_goods_table where goods_class = '0' and approval_date > '0' order by approval_date desc limit 0, $num_goods";
$result = morning_query_error($query);
while($list = morning_fetch_array($result)) {
$list[register_date] = date("Y-m-d",$list[register_date]);
$show_end_date = date("m/d H:i",$list[end_date]);
if($list[goods_file1]) { $show_file1 = ""; }
else { $show_file1 = ""; }
if($list[goods_point] and $cf_account_method > "3") { $show_point = " ".number_format($list[goods_point])." $lang_point
"; }
else { $show_point = ""; }
if($list[goods_addoption1]) { $show_addoption1 = ""; }
else { $show_addoption1 = ""; }
if($list[goods_addoption2]) { $show_addoption2 = ""; }
else { $show_addoption2 = ""; }
if($list[goods_addoption3]) { $show_addoption3 = ""; }
else { $show_addoption3 = ""; }
if($list[goods_addoption4]) { $show_addoption4 = ""; }
else { $show_addoption4 = ""; }
$co++;
$mod_co = $co%$num_rows;
if($mod_co == "1") echo "
$list[goods_name] = cut_str($list[goods_name],50);
if($list[goods_stock] == "0") $show_stock = "[$lang_market_stock]"; else $show_stock = "";
if($list[goods_sale_price] == "0") $show_sale_price = "[$lang_sale_price]"; else $show_sale_price = number_format($list[goods_sale_price],2)."$lang_price";
if($list[goods_market_price]) $show_market_price = number_format($list[goods_market_price],2)."";
?>
0
댓글 0개