상품 리스트 마우스 오버시 채택완료
creculture
8년 전
조회 4,102

마우스 오버시 장바구니 위시리스트 보이도록 되어있는데

위 사진처럼 상품이름 가격이 뜨도록 바꾸고 싶은데 어떻게 건드려야 할지 잘모르겠네요
</p><p><?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가</p><p>// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
add_javascript('<script src="'.G5_THEME_JS_URL.'/jquery.shop.list.js"></script>', 10);
?>
<?php if($config['cf_kakao_js_apikey']) { ?>
<script src="<a href='<a href="https://developers.kakao.com/sdk/js/kakao.min.js" target="_blank" rel="noopener noreferrer">https://developers.kakao.com/sdk/js/kakao.min.js</a>"></script'><a href="https://developers.kakao.com/sdk/js/kakao.min.js" target="_blank" rel="noopener noreferrer">https://developers.kakao.com/sdk/js/kakao.min.js</a>"></script</a>>
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script>
<script>
// 사용할 앱의 Javascript 키를 설정해 주세요.
Kakao.init("<?php echo $config['cf_kakao_js_apikey']; ?>");
</script>
<?php } ?></p><p><!-- 상품진열 10 시작 { -->
<?php
$li_width = intval(100 / $this->list_mod);
$li_width_style = ' style="width:'.$li_width.'%;"';</p><p>for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i == 0) {
if ($this->css) {
echo "<ul class=\"{$this->css}\">\n";
} else {
echo "<ul class=\"sct sct_10\">\n";
}
}</p><p> if($i % $this->list_mod == 0)
$li_clear = ' sct_clear';
else
$li_clear = '';</p><p> echo "<li class=\"sct_li{$li_clear}\"$li_width_style>\n";</p><p> echo "<div class=\"sct_img\">\n";</p><p> if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
}</p><p> if ($this->view_it_img) {
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
}</p><p> if ($this->href) {
echo "</a>\n";
}</p><p> echo"<div class=\"sct_btn\">
<div class=\"sct_cart_btn\">
<button type=\"button\" class=\"btn_cart\" data-it_id=\"{$row['it_id']}\"><span class=\"btn_txt\">장바구니</span>
<i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i></button>
<button type=\"button\" class=\"btn_wish\" data-it_id=\"{$row['it_id']}\"><span class=\"btn_txt\">위시리스트</span>
<i class=\"fa fa-heart\" aria-hidden=\"true\"></i></button>
</div>
</div>\n";</p><p> echo "</div>\n";
echo "<div class=\"sct_txt_wr\">\n";</p><p>
if ($this->view_it_id) {
echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n";
}</p><p> if ($this->href) {
echo "<div class=\"sct_txt\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
}</p><p> if ($this->view_it_name) {
echo stripslashes($row['it_name'])."\n";
}</p><p> if ($this->href) {
echo "</a></div>\n";
}
if ($this->view_it_cust_price || $this->view_it_price) {</p><p> echo "<div class=\"sct_cost\">\n";</p><p> if ($this->view_it_cust_price && $row['it_cust_price']) {
echo "<strike>".display_price($row['it_cust_price'])."</strike>\n";
}</p><p> if ($this->view_it_price) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}</p><p> echo "</div>\n";</p><p> }</p><p> echo "<div class=\"sct_icon_wr\">".item_icon2($row)."</div>\n";</p><p>
echo "</div>\n";</p><p> echo "<div class=\"sct_cartop\"></div>\n";</p><p> echo "</li>\n";
}</p><p> </p><p>if ($i > 0) echo "</ul>\n";</p><p>if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
?>
<!-- } 상품진열 10 끝 -->
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
8년 전
아래부분이 마우스 오버시 출력되는 부분이에요
</pre><pre>echo"<div class=\"sct_btn\"> <div class=\"sct_cart_btn\"> <button type=\"button\" class=\"btn_cart\" data-it_id=\"{$row['it_id']}\"><span class=\"btn_txt\">장바구니</span> <i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i></button> <button type=\"button\" class=\"btn_wish\" data-it_id=\"{$row['it_id']}\"><span class=\"btn_txt\">위시리스트</span> <i class=\"fa fa-heart\" aria-hidden=\"true\"></i></button> </div> </div>\n";</pre><pre>
를 대략 아래처럼
</pre><pre>echo"<div class=\"sct_btn\"> <div class=\"sct_cart_btn\" style=\"text-align:center\"> $row['it_name'] $row['it_cust_price'] </div> </div>\n"; </pre><pre>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
c
creculture
8년 전
저렇게 넣으니 화면이 깨져버리네요...
댓글을 작성하려면 로그인이 필요합니다.
8년 전
자답입니다.
</p><p> echo"<div class=\"sct_btn\">
<div class=\"sct_cart_btn\">
<button type=\"button\" data-it_id=\"{$row['it_id']}\"><span class=\"btn_txt\">". "<strong>" . $row['it_name']. "
" .display_price($row['it_price']). "</span>
</button>
</div>
</div>\n";</p><p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인