마우스 오버시 사진변환, 파일에러시 대체이미지 적용(소스일부)
<tr>
<td align="center" style="padding:5 0 10 0">
<img src="<?=$file1?>" onerror="this.src='noimage.jpg'" name="deimg" width="550" height="413" border="2" style="border-color:#ffffff">
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="10" align="center">
<tr>
<?
$ff1 = explode(".", $row->upfile);
$file = "../../city/upfile/".$ff1[0];
if(is_file($file.".jpg")) $file1 = $file.".jpg";
else if(is_file($file.".JPG")) $file1 = $file.".JPG";
else if(is_file($file.".gif")) $file1 = $file.".gif";
else if(is_file($file.".GIF")) $file1 = $file.".GIF";
else if(is_file($file.".bmp")) $file1 = $file.".bmp";
if(is_file($file1)) echo "<td><img src='$file1' width='80' height='60' border='2' style='border-color:#ffffff' onMouseOver=document.deimg.src='$file1' style='cursor:hand'></td>";
?>