리스트에서(수정) 정보
리스트에서(수정)본문
리스트에서
첨부된이미지2개를 출력해서
출력된 이미지에 마우스오버하면 특정된 곳에
마우스오버한 이미지가 보이게하는 방법좀 가르쳐주세요 ㅠ모르겠어요 ㅠㅠ
간단한예제라도ㅠㅠㅠㅠ
----------------------
<script>
function chgImg( imgname ) {//, dnimgname, imgdesc
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<img src="dddd" name=gallery_img width=100 height=100 border=0 value=0>
<?
//섬네일
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
if (preg_match("/\.(jpg|gif|png|jpeg)$/i", $file) && file_exists($file) && !$list[$i][icon_secret]) {
$image=thumbnail($file, $gsg_width, $gsg_height, 0, 1, 90, 0);
?>
<td align="center" style="cursor:hand;" onclick='location.href="<?=$list[$i][href];?>&sca=<?=$sca;?>&cstyle=<?=$cstyle;?>&geosigi_manse=<?=$geosigi_mase;?>&dt=<?=$dt;?>&thema=<?=$thema;?>"'>
<a href="#" ><span <? echo "onMouseOver=\"chgImg( '".$image."','".$image."','' );\"" ?>><img src="<?=$image;?>" border=0></span></a>
</td>
<? } ?>
이케해도안되요 ㅠㅠㅠㅠㅠㅠ
view에서는되는ㄷ데 ㅠㅠㅠ
이미지가 잘못됐더라도 엑박이라도 뜨던데...
list라서 각각의 id값을 못받아오는건가봐요ㅠ
첨부된이미지2개를 출력해서
출력된 이미지에 마우스오버하면 특정된 곳에
마우스오버한 이미지가 보이게하는 방법좀 가르쳐주세요 ㅠ모르겠어요 ㅠㅠ
간단한예제라도ㅠㅠㅠㅠ
----------------------
<script>
function chgImg( imgname ) {//, dnimgname, imgdesc
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<img src="dddd" name=gallery_img width=100 height=100 border=0 value=0>
<?
//섬네일
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
if (preg_match("/\.(jpg|gif|png|jpeg)$/i", $file) && file_exists($file) && !$list[$i][icon_secret]) {
$image=thumbnail($file, $gsg_width, $gsg_height, 0, 1, 90, 0);
?>
<td align="center" style="cursor:hand;" onclick='location.href="<?=$list[$i][href];?>&sca=<?=$sca;?>&cstyle=<?=$cstyle;?>&geosigi_manse=<?=$geosigi_mase;?>&dt=<?=$dt;?>&thema=<?=$thema;?>"'>
<a href="#" ><span <? echo "onMouseOver=\"chgImg( '".$image."','".$image."','' );\"" ?>><img src="<?=$image;?>" border=0></span></a>
</td>
<? } ?>
이케해도안되요 ㅠㅠㅠㅠㅠㅠ
view에서는되는ㄷ데 ㅠㅠㅠ
이미지가 잘못됐더라도 엑박이라도 뜨던데...
list라서 각각의 id값을 못받아오는건가봐요ㅠ
댓글 전체
Jquery의 cluetip을 활용해 보세요.
print_r2($list[$i][file]); 를 리스트 뿌리는 for문안에 넣어보시기 바랍니다.
이미지 보이게 하는 함수를 생성하고...
마우스 올릴곳에 onmouseover="함수();"
이렇게 하세요.
이미지 보이게 하는 함수를 생성하고...
마우스 올릴곳에 onmouseover="함수();"
이렇게 하세요.