php..이미지 롤오버 고정...답변좀 부탁해용~ㅎㅎ 정보
php..이미지 롤오버 고정...답변좀 부탁해용~ㅎㅎ본문
<?
if($this->type=="1"){ $ov_code1 = "ov"; }
if($this->type=="2"){ $ov_code2 = "ov"; }
if($this->type=="3"){ $ov_code3 = "ov"; }
if($this->type=="4"){ $ov_code4 = "ov"; }
if($this->type=="5"){ $ov_code5 = "ov"; }
if($this->type=="6"){ $ov_code6 = "ov"; }
if($this->type=="7"){ $ov_code7 = "ov"; }
?>
<img src="images/sub01_01<?=$ov_code1?>.gif">
<img src="images/sub01_02<?=$ov_code2?>.gif">
<img src="images/sub01_03<?=$ov_code3?>.gif">
.
.
.
페이지 인식인데요
sub01_01.php?type=1 페이지를 들어가면
images/sub01_01ov.gif 이 이미지가 고정, 롤오버상태여야하는데
반응이 없네요
뭐하나가 빠진것같기도한데..
고수님들 도와주세요
댓글 전체

상단에 IF문을
if ($type=="1") 형태로 수정하시거나
<img src="images/sub01_01<?if($type=="1") echo "ov";?>.gif">
로 수정해서 확인 해보세요~
if ($type=="1") 형태로 수정하시거나
<img src="images/sub01_01<?if($type=="1") echo "ov";?>.gif">
로 수정해서 확인 해보세요~
00