판매가 이미지로 구현문의 정보
판매가 이미지로 구현문의본문
판매가에 출력되는 금액을 이미지로 출력하고자 하는데
어떻게 적용을 해야 될까요..??
아래 코드는 상품판매가 출력되는 일부 소스입니다.
/----------------------------------------------------------------------------------------
<tr height=25>
<td width="120" height="27" class="list2"> <img src='/shop/img/dot_n.gif'> 판매가</td>
<td width=1 align=center><img src='/shop/img/line_dot4.gif'></td>
<td bgcolor="#f9fcff">
<table border=0 cellspacing=0 cellpadding=0>
<tr>
// 판매가 출력되는 부분
<td> <input type=text name=disp_sell_amount style='text-align:left; background-color:#f9fcff; border:none; border-width:0px; width:87px; height:32px; font-weight:bold; font-family:Geneva; font-size:18px; color:#FF3700;' class=amount readonly /></td>
// 판매가 출력되는 부분 끝
<td><font color='#FF3700'><label><b>
</b></label></font></td> </tr>
</table>
<input type=hidden name=it_amount value='0'> </td>
</tr>
----------------------------------------------------------------------------------------/
고수님들의 조언 부탁드립니다.
좋은 하루 되세요
어떻게 적용을 해야 될까요..??
아래 코드는 상품판매가 출력되는 일부 소스입니다.
/----------------------------------------------------------------------------------------
<tr height=25>
<td width="120" height="27" class="list2"> <img src='/shop/img/dot_n.gif'> 판매가</td>
<td width=1 align=center><img src='/shop/img/line_dot4.gif'></td>
<td bgcolor="#f9fcff">
<table border=0 cellspacing=0 cellpadding=0>
<tr>
// 판매가 출력되는 부분
<td> <input type=text name=disp_sell_amount style='text-align:left; background-color:#f9fcff; border:none; border-width:0px; width:87px; height:32px; font-weight:bold; font-family:Geneva; font-size:18px; color:#FF3700;' class=amount readonly /></td>
// 판매가 출력되는 부분 끝
<td><font color='#FF3700'><label><b>
</b></label></font></td> </tr>
</table>
<input type=hidden name=it_amount value='0'> </td>
</tr>
----------------------------------------------------------------------------------------/
고수님들의 조언 부탁드립니다.
좋은 하루 되세요
댓글 전체
<?
//판매금액 변수가 $disp_sell_amount라면...
$disp_sell_amount = "12345";
for($i=0;$i<=9;$i++)
{
$disp_sell_amount =str_replace("$i","<img src=/images/${i}.gif>",$disp_sell_amount);
}
echo $disp_sell_amount;
?>
//판매금액 변수가 $disp_sell_amount라면...
$disp_sell_amount = "12345";
for($i=0;$i<=9;$i++)
{
$disp_sell_amount =str_replace("$i","<img src=/images/${i}.gif>",$disp_sell_amount);
}
echo $disp_sell_amount;
?>
판매가를 이미지로 뿌려주는 경우는 금액부분의 숫자퀄리티를 약간 높이고자 하는경우 사용합니다.
0~9까지 , 의 이미지를 모두 따주셔야 하고요.
금액이 16,000원이다 라고 했을때 글자를 한글자씩 잘라 1 6 , 0 글자 갯수만큼 이미지로 대체해서 출력해주어야 합니다.
0~9까지 , 의 이미지를 모두 따주셔야 하고요.
금액이 16,000원이다 라고 했을때 글자를 한글자씩 잘라 1 6 , 0 글자 갯수만큼 이미지로 대체해서 출력해주어야 합니다.
function get_numImg(str) 함수를 사용하니까 잘 되네요..
도움주신 분들께 다시한번 감사드립니다.
도움주신 분들께 다시한번 감사드립니다.