영카트 질문요.상품명과 가격도 같이 롤링되게 하고싶은데

· 2013-04-12 (금) 16:50:12 · 1108 · 4
영카트 메인타입 수정중인데이미지는 롤링되는데
가격이랑 상품명이 이상하게 나오네요
어떻게 해야 할까요
그누보드 최신겔러리 수정하는거라서..


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script>

var leftCt = 0;
$(function(){
$("#album").attr("top", "0");
imgStart("R");
});
function imgStart(tp){
clearInterval($("#imgList").attr("timer"));
if(tp == "R"){ // 오른쪽 이동
imgRight();
$("#imgList").attr("timer", setInterval("imgRight()", 3000)); // 멈춰있는 시간
}else{ // 왼쪽이동
if(leftCt == 0){
var leng = $("#imgList div").size();
$("#imgList").css("left",parseInt($("#imgList div").eq(0).width()*-1));
$("#imgList>div").eq(parseInt(leng-1)).clone().prependTo($("#imgList"));
$("#imgList>div").eq(leng).remove();
leftCt = 1;
}
imgLeft();
$("#imgList").attr("timer", setInterval("imgLeft()", 3000));
}
}
function imgRight(){
$("#imgList").animate({
left : parseInt($("#imgList div").eq(0).width() * -1)
},300,function(){
$("#imgList").css("left", "0px");
$("#imgList>div").eq(0).clone().appendTo($("#imgList"));
$("#imgList>div").eq(0).remove();
});
}
function imgLeft(){
var leng = $("#imgList div").size();
$("#imgList").animate({
left : 0
},300,function(){
$("#imgList").css("left", "0px");
$("#imgList").css("left",parseInt($("#imgList div").eq(0).width()*-1));
$("#imgList>div").eq(parseInt(leng-1)).clone().prependTo($("#imgList"));
$("#imgList>div").eq(leng).remove();
});
}
</script>

<style>

#back {
position:relative;
width:164px;
height:150px;
background-color:#fafafa;
border:#e2e6e9 1px solid;
}
#viewArea {
position:relative;
width:120px;
height:100px;
overflow:hidden;
left:20px;
top:10px;
}
#imgList {
position:absolute;
width:800px;
left:0px;
top:0px;
height: 120px;
}
#imgList div {
float:left;
padding:0px;
width: 160px;
}
#btnLeft {position:absolute; left:10px; float:left; z-index:10; top:43px; cursor:hand;}
#btnRight {position:absolute; right:10px; float:right; z-index:10; top:43px; cursor:hand;}
</style>
<div id="back">
<div id="viewArea">
<div id="imgList">
<? for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i > 0 && $i % $list_mod == 0) {

}
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]'>";
?>
//이부분이 이미지 롤링되는 부분//
<div><?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a></div>
<? } ?></div>
</div>


// 이부분에서 롤링되게 하고싶은데 먹통이되거나 안나오거나 그렇네요//

<div><?=$href?><?=cut_str(stripslashes($row[it_name]), 30)?></a></div>
<div><?=display_amount(get_amount($row), $row[it_tel_inq])?></div>




<div id="btnLeft">
<span onClick="imgStart('L')"><img src='<?=$g4[shop_img_path]?>/btn_left.gif' border="0" align=absmiddle></span>
</div>
<div id="btnRight">
<span onClick="imgStart('R')"><img src='<?=$g4[shop_img_path]?>/btn_right.gif' border="0" align=absmiddle></span>
</div>
</div>
|

댓글 4개

2013-04-12 (금) 17:47:23
어떤 화면 구성인지 파악하기 어렵네요. 다만 짐작이 가는건, 상품명과 가격을 함께 롤링 하고 싶으시면 이미지 롤링되는 부분에서 이미지와 같은 곳에서 상품명, 가격을 뿌려 줘야 롤링이 됩니다.
2013-04-12 (금) 18:31:11
해봤는데요 한줄로 나와버리거나 숨겨져서요
스타일시트 손봐야할거 같은데...막 꼬이더라구요
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=115284 그누스킨인데
영카트로 수정하고 있어요
<div>
<?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a>
<p><?=$href?><?=cut_str(stripslashes($row[it_name]), 30)?></a></p>
<p><?=display_amount(get_amount($row), $row[it_tel_inq])?></p>
</div>
2013-04-13 (토) 02:10:06
감사합니다.
원인은 #viewArea 높이때문이엿네요.ㅎㅎㅎ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-04-12 조회 1,088
13-04-12 조회 1,755
13-04-12 조회 910
13-04-12 조회 1,802
13-04-12 조회 1,248
13-04-12 조회 1,628
13-04-12 조회 1,107
13-04-12 조회 3,098
13-04-12 조회 1,107
13-04-12 조회 1,100
13-04-12 조회 1,109
13-04-12 조회 1,375
13-04-12 조회 656
13-04-12 조회 645
13-04-12 조회 1,661
13-04-12 조회 1,070
13-04-12 조회 1,196
13-04-12 조회 847
13-04-12 조회 1,216
13-04-12 조회 1,100