도와주세요... ㅠ.ㅠ 정보
도와주세요... ㅠ.ㅠ본문
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_best1
#rPhotoBest .box .ico_best2
#rPhotoBest .box .ico_best3
이런 식으로 하고
나주에 class만 지정해 주는 방법은 어떨까요?
왜 진작 이생각을 못했을까요... ㅠ.ㅠ
위에처럼 하면 안되는데
알려주신대로 세개 만들어서 하니까 잘됩니다~ ^^
복 많이 받으세요~~~