카테고리 하나를 만들어 해당 카테고리에 제품이미지만 보여지게 하려고 합니다.
그리고 제품을 클릭하기 전에 마우스를 올리면
제품명과 가격 그리고 기타 필요한 내용이
레이어나 기타 방법으로 표시 할수 있나요?
답변 부탁드립니다.
감사합니다.
그리고 제품을 클릭하기 전에 마우스를 올리면
제품명과 가격 그리고 기타 필요한 내용이
레이어나 기타 방법으로 표시 할수 있나요?
답변 부탁드립니다.
감사합니다.
댓글 1개
shop/list.skin.10.php 를 아래와 같이 수정해 보십시오.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=2 cellspacing=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}
echo "
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center><div id='hoot$i' class='hoot' rel='$i'>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</div>";
echo "<div id='layer{$i}' style='display:none; border:1px solid #ccc; position:absolute; background-color:#fff;'>상품명 : $row[it_name]</div>";
echo "</td></tr>
<tr><td align=center>".preg_replace("/(<img\s+)/", "$1 style='border:1px solid #000;'", get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id]))."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
echo "</td></tr></table></td>";
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo " <td> </td>\n";
?>
</tr>
</table>
<script type="text/javascript">
$(function() {
$(".hoot").hover(
function() { $("#layer"+this.rel).show(); },
function() { $("#layer"+this.rel).hide(); }
);
});
</script>
프로그램의 기능을 추가, 수정하시는 경우는 고객지원이 어렵습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=2 cellspacing=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}
echo "
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center><div id='hoot$i' class='hoot' rel='$i'>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</div>";
echo "<div id='layer{$i}' style='display:none; border:1px solid #ccc; position:absolute; background-color:#fff;'>상품명 : $row[it_name]</div>";
echo "</td></tr>
<tr><td align=center>".preg_replace("/(<img\s+)/", "$1 style='border:1px solid #000;'", get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id]))."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
echo "</td></tr></table></td>";
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo " <td> </td>\n";
?>
</tr>
</table>
<script type="text/javascript">
$(function() {
$(".hoot").hover(
function() { $("#layer"+this.rel).show(); },
function() { $("#layer"+this.rel).hide(); }
);
});
</script>
프로그램의 기능을 추가, 수정하시는 경우는 고객지원이 어렵습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기