wr_link1 적용방법 문의 채택완료
그누배우자
9년 전
조회 3,483
안녕하세요
최신이미지 슬라이드를 사용하고 있는데요
wr_link1 에 링크값을 집어넣으면
해당 주소로 넘어가게 하려 합니다.
근데 밑의 소스처럼 적용했는데 잘안되네요
전혀 커서가 뜬다든지 반응이 없는데
고수님들 도와주세요 ㅠㅠ
</p><p><?
for ($i=0; $i<count($list); $i++) {
$noimage = "$latest_skin_url/img/no-image.gif";
$list[$i][file] =get_file($bo_table, $list[$i][wr_id]);
$imagepath = $list[$i][file][0][path]."/".$list[$i][file][0][file];
?>
<?if(strlen($list[$i][wr_link1]) > 0){?><a href="<?=set_http($list[$i][wr_link1])?>"><?}?><img src="<?=$imagepath?>" alt="<?=$list[$i][wr_subject]?>" style='width:<?=$options[0]?>px;height:<?=$options[1]?>px;'><?if(strlen($list[$i][wr_link1]) > 0){?></a><?}?>
<?}?></p><p>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
9년 전
커서가 안 뜬다는 것은
</p><p><font face="Courier New"><?</font><code class="php keyword">if</code><code class="php plain">(</code><code class="php functions">strlen</code><code class="php plain">(</code><code class="php variable">$list</code><code class="php plain">[</code><code class="php variable">$i</code><code class="php plain">][wr_link1]) > 0){?><a href=</code><code class="php string">"<?=set_http($list[$i][wr_link1])?>"</code><code class="php plain">><?}?></code></p><p><code class="php plain"><span style="font-family: 돋움,dotum;">
이 명령이 실행되지 않았다고 봐야할거 같으네요.
저 구문 이전에
$list[$i][wr_link1] 이 잘 출력 되는지 찍어보시고
strlen($list[$i][wr_link1]) > 0 이 참인지 확인을 해 보셔야 할거 같으네요.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인