마우스 오버 롤오버 에러 수정방법
관련링크
본문
그누4 테스트용으로 만드는 중입니다~
롤오버가 에러 났어요~ㅠ
어떻게 해야 할지 자세한 수정 방법 알려주시면
감사합니다~^^
빨강색글자 부분이 에러나는곳 입니다.
ㅡㅡㅡㅡㅡㅡㅡㅡㅡview.skin.phpㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
// 현재글의 스크랩 카운트
$temp =mysql_fetch_array(mysql_query("select count(*) from g4_scrap where bo_table='$bo_table' and wr_id = $wr_id"));
$scrap_count = $temp[0];
?>
<?
$p_six = explode("|",$write[wr_6]);
$six01 = $p_six[0];
$six02 = $p_six[1];
$six03 = $p_six[2];
$six04 = $p_six[3];
$six05 = $p_six[4];
$six06 = $p_six[5];
$six07 = $p_six[6];
$six08 = $p_six[7];
$six09 = $p_six[8];
$six10 = $p_six[9];
$six11 = $p_six[10];
$six12 = $p_six[11];
$six13 = $p_six[12];
$six14 = $p_six[13];
$six15 = $p_six[14];
$six16 = $p_six[15];
$six17 = $p_six[16];
$six18 = $p_six[17];
$six19 = $p_six[18];
$six20 = $p_six[19];
$six21 = $p_six[20];
$six22 = $p_six[21];
$six23 = $p_six[22];
$six24 = $p_six[23];
$six25 = $p_six[24];
$six26 = $p_six[25];
$six27 = $p_six[26];
$six28 = $p_six[27];
$six29 = $p_six[28];
$six30 = $p_six[29];
?>
<?
$p_nine = explode("|",$write[wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
?>
<?$etc3_exp=explode("|" , $write[wr_7])?>
<script>
function chgImg( imgname, dnimgname, imgdesc ) {
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<table width="792" align="center">
<tr>
<td><table width="100%" cellpadding="3">
<tr>
<td> </td>
<td align="right"><? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/move.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($admin_href) { echo "<a href=\"$admin_href\"><img src='$board_skin_path/img/icon_admin.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td width="15%" height="1" bgcolor="D63369"></td>
<td width="85%" bgcolor="E7E7E7"></td>
</tr>
<tr>
<td width="15%" height="3" bgcolor="FB974A"></td>
<td width="85%" bgcolor="F7F3F7"></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td height="1" bgcolor="eeeeee"></td>
</tr>
<tr>
<td><table width="100%" >
<tr>
<td>
<?=$view[name]?>
<? if ($is_ip_view) { echo " ($ip) "; } ?>
조회 :
<span class="blue"><?=$view[wr_hit]?>
</span>스크랩 :
<span class="blue"><?=$scrap_count?>
</span><? if ($is_good) {?>
추천 :
<span class="blue"><?=$view[wr_good]?>
</span><? }?>
</td>
<td align="right"><a href="#" onClick="window.open('<?="$board_skin_path/print_view.php?bo_table=$bo_table&wr_id=$wr_id"?>', '', 'left=150, top=10, width=700, height=500, scrollbars=1');">[프린트 하기]</a>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/scrap.gif' border='0' align='absmiddle' title=스크랩></a> "; } ?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" bgcolor="eeeeee"></td>
</tr>
</table>
<table width="100%" >
<tr>
<td><table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4" >
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc" >
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" >
<tr valign="top" align="center">
<? if ($view[file][0][view]) {?><td width="500" align="center"><table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td><?
for ($i=0; $i<=4; $i++) {
$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];
}
?>
</td>
</tr>
</table>
<table cellpadding="3" cellspacing="1" bgcolor="cccccc">
<tr>
<td bgcolor="ffffff">
<? if ($view[file][0][view]) {?>
<img src="<?=$image[0]?>" name=gallery_img width="480" height="400" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/noimg.gif" border=0 value=0>
<? } ?></td>
</tr>
</table>
<table align="center">
<tr>
<td><?=$view[file][0][content]?></td>
</tr>
</table>
<table width="100%" cellpadding="5" >
<tr>
<td align="center">
<p><? if ($view[file][0][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[0]?>" width="50" height="43" align="absmiddle" border="0">
<? }?>
<? if ($view[file][1][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[1]?>" width="50" height="43" align="absmiddle" border="0">
<? }?>
<? if ($view[file][2][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[2]?>" width="50" height="43" align="absmiddle" border="0">
<? }?>
<? if ($view[file][3][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[3]?>" width="50" height="43" align="absmiddle" border="0">
<? }?>
<? if ($view[file][4][file]) {?>
<a href=# <? echo "onMouseOver=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[4]?>" width="50" height="43" align="absmiddle" border="0">
<? }?>
</p>
</td>
</tr>
</table></td><? }?>
<td width="290"><table width="290" >
<tr>
<td> </td>
</tr>
<tr>
<td class="bluet"><img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle">
물건명 : <b><?=$view[subject]?></b> <b><font color="#3366cc">[<?=$view[ca_name]?>]</font></b></td>
</tr>
</table>
<table width="290" cellpadding="5" cellspacing="1" bgcolor="cccccc" align="center">
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">매물위치</td>
<td bgcolor="ffffff" width="200">
<p><?=$view[wr_14]?> <?=$view[wr_15]?></p> </td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">구분</td>
<td bgcolor="ffffff"><?=$write[wr_3]?>
(
<?
switch($view[wr_4])
{
case 1:
print "10평";
break;
case 2:
print "11평";
break;
case 3:
print "12평";
break;
case 4:
print "13평";
break;
case 5:
print "14평";
break;
case 6:
print "15평";
break;
case 7:
print "16평";
break;
case 8:
print "17평";
break;
case 9:
print "18평";
break;
case 10:
print "19평";
break;
case 11:
print "20평";
break;
case 12:
print "21평";
break;
case 13:
print "22평";
break;
case 14:
print "23평";
break;
case 15:
print "24평";
break;
case 16:
print "25평";
break;
case 17:
print "26평";
break;
case 18:
print "27평";
break;
case 19:
print "28평";
break;
case 20:
print "29평";
break;
case 21:
print "30평";
break;
case 22:
print "31평";
break;
case 23:
print "32평";
break;
case 24:
print "33평";
break;
case 25:
print "34평";
break;
case 26:
print "35평";
break;
case 27:
print "36평";
break;
case 28:
print "37평";
break;
case 29:
print "38평";
break;
case 30:
print "39평";
break;
case 31:
print "40평";
break;
}
?> ) </td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">보증금</td>
<td bgcolor="ffffff">
<?=$six01?>만원</td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">월세</td>
<td bgcolor="ffffff">
<?=$six03?>만원</td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">전세금</td>
<td bgcolor="ffffff">
<?=$six02?>만원</td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">매매가</td>
<td bgcolor="ffffff">
<?=$six04?>만원</td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">월관리비</td>
<td bgcolor="ffffff">
<?=$six05?>만원</td>
</tr>
<tr bgcolor="cccccc">
<td align="center" bgcolor="f5f7f1" class="blue" width="80">위치</td>
<td bgcolor="ffffff">
<?=$six06?> </td>
</tr>
</table>
<table width="100%" cellpadding="5" >
<tr><td background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td></tr></table>
<table width="290" cellpadding="5" cellspacing="1" bgcolor="cccccc" align="center">
<tr>
<td width=80 height="30" BGCOLOR="f1f1f1"> · 담당자 </td>
<td BGCOLOR="WHITE"><?=$member[mb_nick]?></td>
</tr>
<tr>
<td width="80" height="30" BGCOLOR="f1f1f1"> · 휴대폰 </td>
<td BGCOLOR="WHITE"><?=$nine01?></td>
</tr>
<tr>
<td width="80" height="30" BGCOLOR="f1f1f1"> · 전화번호 </td>
<td BGCOLOR="WHITE"><?=$nine02?></td>
</tr>
</table>
<table width="290" cellpadding="5" >
<tr>
<td align="left" valign="middle"><script language="JavaScript" type="text/javascript">
<!--
function OpenWin(url,intWidth,intHeight){
window.open(url, "ReadSlideShow", "scrollbars=no, resizable=no, width="+intWidth+",height="+intHeight+" ");
return;
}
//-->
</script></td>
</tr>
<tr>
<td ><table width="100%" cellpadding="1" height="1">
<tr>
<td background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"><b><font color="#CC0000">
</font></b></td>
</tr>
</table> </td>
</tr>
<tr>
<td><? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/delete.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<p> </p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td>
</tr>
<tr>
<td><table width="100%" >
<tr>
<td class="blue"><img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle" /> <b>시설정보</b></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4" >
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc" >
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="5" cellspacing="1" bgcolor="cccccc" >
<tr>
<td bgcolor="ffffff"><table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td><input type="checkbox" name='info_00' value="0" <?if($etc3_exp[0]):?> checked<?endif;?> disabled>
<label for="radio">도시가스</label></td>
<td><input type="checkbox" name='info_01' value="1" <?if($etc3_exp[1]):?> checked<?endif;?> disabled>
<label for="radio2">기름보일러</label></td>
<td><input type="checkbox" name='info_02' value="2" <?if($etc3_exp[2]):?> checked<?endif;?> disabled>
<label for="radio3">에어콘</label></td>
<td><input type="checkbox" name='info_03' value="3" <?if($etc3_exp[3]):?> checked<?endif;?> disabled>
<label for="radio4">TV방송</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input type="checkbox" name='info_04' value="4" <?if($etc3_exp[4]):?> checked<?endif;?> disabled>
<label for="radio5">인터넷</label></td>
<td><input type="checkbox" name='info_05' value="5" <?if($etc3_exp[5]):?> checked<?endif;?> disabled>
<label for="radio6">붙박이장</label></td>
<td><input type="checkbox" name='info_06' value="6" <?if($etc3_exp[6]):?> checked<?endif;?> disabled>
<label for="radio7">식탁</label></td>
<td><input type="checkbox" name='info_07' value="7" <?if($etc3_exp[7]):?> checked<?endif;?> disabled>
<label for="radio8">책상</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input type="checkbox" name='info_08' value="8" <?if($etc3_exp[8]):?> checked<?endif;?> disabled>
<label for="radio9">침대</label></td>
<td><input type="checkbox" name='info_09' value="9" <?if($etc3_exp[9]):?> checked<?endif;?> disabled>
<label for="radio10">쇼파</label></td>
<td><input type="checkbox" name='info_10' value="10" <?if($etc3_exp[10]):?> checked<?endif;?> disabled>
<label for="radio11">전자랜지</label></td>
<td><input type="checkbox" name='info_11' value="11" <?if($etc3_exp[11]):?> checked<?endif;?> disabled>
<label for="radio12">세탁기</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input type="checkbox" name='info_12' value="12" <?if($etc3_exp[12]):?> checked<?endif;?> disabled>
<label for="radio13">오디오</label></td>
<td><input type="checkbox" name='info_13' value="13" <?if($etc3_exp[13]):?> checked<?endif;?> disabled>
<label for="radio14">냉장고</label></td>
<td><input type="checkbox" name='info_14' value="14" <?if($etc3_exp[14]):?> checked<?endif;?> disabled>
<label for="radio15">TV</label></td>
<td><input type="checkbox" name='info_15' value="15" <?if($etc3_exp[15]):?> checked<?endif;?> disabled>
<label for="radio16">비디오</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input type="checkbox" name='info_16' value="16" <?if($etc3_exp[16]):?> checked<?endif;?> disabled>
<label for="radio17">가스랜지</label></td>
<td><input type="checkbox" name='info_17' value="17" <?if($etc3_exp[17]):?> checked<?endif;?> disabled>
<label for="radio18">식기세척기</label></td>
<td>
답변 2
ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )
// 위의 오류나는 부분을 아래와 같이 바꿔보세요
preg_replace("/(\r\n|\n|\r)/", "<br />", strip_tags($content) )
감사합니다~
스킨을 바꿨더니 해결 되었습니다~^^;;