php잘하시는분 좀 봐주세요

· 15년 전 · 1403

쇼핑몰 메인 상품 이미지 나오는 섬네일 부분 소스인데요..
출력되는 썸네일 밑에 액자 이미지를 넣을려고 하는데 어디를 추가 해주면 되나요??

그리고 아래 답변 주셨는데 이미지 마우스 오버 하면 흐려졌다 다시 돌아오는 효과 소스 
<img src="이미지경로" onmouseover="this.style.filter='alpha(opacity=40)'" onmouseout="this.style.filter=''" > <-요걸 어디다 넣으면 되나요?

-- 아래 수정해야할 원소스 시작 --

$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 = "\"$list[goods_file1]\""; }
else { $show_file1 = "noneimg.gif\""; }

if($list[goods_point] and $cf_account_method > "3") { $show_point = "icon_point.gif\" ".number_format($list[goods_point])." $lang_point
"; }
else { $show_point = ""; }

if($list[goods_addoption1]) { $show_addoption1 = "good_hot.gif\""; }
else { $show_addoption1 = ""; }

if($list[goods_addoption2]) { $show_addoption2 = "good_sale.gif\""; }
else { $show_addoption2 = ""; }

if($list[goods_addoption3]) { $show_addoption3 = "good_new.gif\""; }
else { $show_addoption3 = ""; }

if($list[goods_addoption4]) { $show_addoption4 = "good_none.gif\""; }
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)."";
?>

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
15년 전 조회 3,536
15년 전 조회 1,977
15년 전 조회 2,003
15년 전 조회 1,655
15년 전 조회 2,632
15년 전 조회 1,785
15년 전 조회 1,517
15년 전 조회 1,699
15년 전 조회 1,872
15년 전 조회 1,806
15년 전 조회 1,656
15년 전 조회 1,893
15년 전 조회 1,381
15년 전 조회 1,799
15년 전 조회 1,404
15년 전 조회 1,817
15년 전 조회 4,124
15년 전 조회 1,717
15년 전 조회 2,585
15년 전 조회 2,009
15년 전 조회 2,032
15년 전 조회 1,754
15년 전 조회 1,796
15년 전 조회 1,903
15년 전 조회 1,629
15년 전 조회 1,806
15년 전 조회 1,685
15년 전 조회 1,808
15년 전 조회 1,703
15년 전 조회 1,650
🐛 버그신고