도와주세요... ㅠ.ㅠ > 그누4 질문답변

그누4 질문답변

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

도와주세요... ㅠ.ㅠ 정보

도와주세요... ㅠ.ㅠ

본문

48시간님의 최신글 스킨입니다.

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=93557&sca=%C3%D6%BD%C5%B1%DB&page=2

--------------------------------------------------------------------
<? 
 $best = 'ico_best.gif';
 $hot = 'ico_hot.gif';
 $new = 'ico_new.gif';
 $null = '';

$option = $best;
?>

<style type="text/css" >
#rPhotoBest {position:relative;width:125px;;height:80px; no-repeat;margin:0;}
#rPhotoBest .box {position:absolute;top:0px;left:0px;right:2px;width:125px;}
#rPhotoBest .box .ico_best {position:absolute;top:0;left:0;background:url('<?=$latest_skin_path?>/img/<?=$option?>') no-repeat;width:45px;height:45px;}
</style>
<tr><td width=<?=$img_width?> height=<?=$img_height?>>
<div id="RIGHT" style="float:left;margin:0;">
<div id="rPhotoBest" class="CT_ZONE_rPhotoBest">
<div class="box" id="drPhotoRoll">
<div class="ico_best"></div>
<div id="RightPhotoBest"></div>
<a href='<?=$list[$i][href]?>'><?=$thumfile?></a>
</div></div></div>

-----------------------------------------------------------------------------
이렇게 hot, best, new 중에서 하나 골라 쓰는데
이걸 여분필드에서 값을 받아 출력하려면 어떻게하나요...

<? 
 $best = 'ico_best.gif';
 $hot = 'ico_hot.gif';
 $new = 'ico_new.gif';
 $null = '';


 if ($list[$i][wr_6] == 1){
 $option = $hot ;
} else if ($list[$i][wr_6] == 2){
 $option = $best ;
}  else if ($list[$i][wr_6] == 3){
 $option = $new ;
}  else if($list[$i][wr_6] == -1){
 $option = $null ;
}
?>

이렇게 하니까 통... 안되는군요...
까막눈에 더듬더듬 할려니까 답답하기만하고.. ㅠ.ㅠ

댓글 전체

#rPhotoBest .box .ico_best {position:absolute;top:0;left:0;background:url('<?=$latest_skin_path?>/img/ico_best.gif') no-repeat;width:45px;height:45px;}

로 하면 잘 나오나요?

프로그램은 별 이상이 없어 보입니다.


#rPhotoBest .box .ico_best1
#rPhotoBest .box .ico_best2
#rPhotoBest .box .ico_best3

이런 식으로 하고

나주에 class만 지정해 주는 방법은 어떨까요?
오~~~~ 엑스엠엘님~~~ 정말 감사합니다~ 어제에 이어서... ^^
왜 진작 이생각을 못했을까요... ㅠ.ㅠ
위에처럼 하면 안되는데
알려주신대로 세개 만들어서 하니까 잘됩니다~ ^^

복 많이 받으세요~~~
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT