영카트 질문요.상품명과 가격도 같이 롤링되게 하고싶은데
영카트 메인타입 수정중인데이미지는 롤링되는데
가격이랑 상품명이 이상하게 나오네요
어떻게 해야 할까요
그누보드 최신겔러리 수정하는거라서..
<?
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>
가격이랑 상품명이 이상하게 나오네요
어떻게 해야 할까요
그누보드 최신겔러리 수정하는거라서..
<?
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개
스타일시트 손봐야할거 같은데...막 꼬이더라구요
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=115284 그누스킨인데
영카트로 수정하고 있어요
<?=$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>
원인은 #viewArea 높이때문이엿네요.ㅎㅎㅎ