before.jpg  after.jpg

토토루님의 무한업로드 게시판을 사용하고 있습니다.


게시판위에 head.php로 읽어서 사용하고 있습니다.
head안에 플래시 파일을 넣었더니,
 
게시판에 올려진 이미지를 클릭했을때 플래시 부분이 위 그림과 같이 위로 튀어나오게 됐습니다.
혹시 해결방법을 아시는 분 계신가요..
제가 보기엔 게시판에 view.php 부분이 이미지를 보이게 하는 내용 같아서 올려봅니다.



<script type="text/javascript" src="<?=$dir?>/slb.js" ></script>
<style type="text/css">
 .SLB_center { cursor:pointer; visibility:hidden; border: solid 4px #000000; background-color: #FfffFF}
 .SLB_close { cursor: pointer; display:none; font-family: verdana,tahoma; font-size: 9pt; background-color:#000000; color: #ffffff; padding-bottom: 4px; }
 .SLB_caption { cursor: pointer; display:none; font-family: verdana,tahoma; font-size: 9pt; background-color:#000000; color: #ffffff; padding-bottom: 4px; }
 #SLB_loading { cursor: pointer; display:none; z-index: 99998; position:absolute; font-family: verdana,tahoma; font-size: 9pt; background-color:#000000; color: #ffffff; padding: 3px 0px 4px 0px; border: solid 2px #cfcfcf; }
</style>
<div id="SLB_film" style="z-index: 99997; position:absolute; display:none; width:100%; height:100%; background-color:#000000; filter:Alpha(opacity=60); opacity:0.6; -moz-opacity:0.6;"></div>
<div id="SLB_content" onclick="SLB_show();" align="center" style="z-index: 99999; position:absolute;"></div>
<div id="SLB_loading" onclick="SLB_show();" title="로딩중...클릭시 취소"> Loading... </div>
<?
// 이미지 리사이즈 함수.
function imageResize($file, $max_height=400,$max_width=400)
{
 global $ssxx,$aligns;
 $size = @GetImageSize($file);
 $width = $size[0];
 $height = $size[1];
 
 $x_ratio = $max_width / $width;
 $y_ratio = $max_height / $height;
 
 if(($width <= $max_width) && ($height <= $max_height))
 {
  $tn_width = $width;
  $tn_height = $height;
 }
 elseif(($x_ratio * $height) < $max_height)
 {
  $tn_height = ceil($x_ratio * $height);
  $tn_width = $max_width;
 }
 else
 {
  $tn_width = ceil($y_ratio * $width);
  $tn_height = $max_height;
 }
 
 $imggo = "<div align='{$aligns}'><div style='width: {$tn_width}px;border:solid 4px #f0f0f0;' align='center'><img src='{$file}' onclick=\"SLB_show('{$file}', 'image', false);\" border='0' width='{$tn_width}' height='{$tn_height}' style='cursor:pointer;' galleryimg='no' alt='클릭시 이미지 새창.' /></div></div><div style='padding-top: 10px'></div>";
 
 return $imggo;
}

$mutiupload = mysql_fetch_array(mysql_query("select sfilename from zetyx_upload where sid='{$id}' and sno='{$no}' order by no asc limit 0,1"));

$res = mysql_query("select sfilehit, sfilesize, sfilename, sisfilename, sfileorgname from zetyx_upload where sid='{$id}' and sno='{$no}' order by no asc");

$imgs = '';
$filediv = '';
$ssxx = 1;
while($mt_data = mysql_fetch_array($res)) {
$filediv .= "<img src='{$dir}/images/icon_s_file.gif' border='0' style='vertical-align: middle;'>&nbsp;<a href='{$dir}/file_download.php?id={$id}&amp;no={$no}&amp;file={$mt_data['sisfilename']}'><b>{$mt_data['sfileorgname']}</b></a> <span style='color:#C8C8C8;font-size: 12px;'>|</span> "
.@getfilesize($mt_data['sfilesize'])." / {$mt_data['sfilehit']} Download(s)&nbsp;&nbsp;&nbsp;&nbsp;";

// 이미지 파일인 경우 본문에 보이게함.
if (preg_match('/\.(gif|jpe?g|png|bmp)$/i', $mt_data['sfilename'])) {

$imgs .= imageResize("data/mutiupload/{$id}/{$mt_data['sfilename']}", $max_height,$max_width);
}
$ssxx++;
}
?>

<table border="0" cellspacing="0" cellpadding="0" width="<?=$width?>">
<tr><td class="linetd1"></td></tr>
<tr>
 <td class="title" style="padding-left:10px;padding-top: 4px;padding-right: 4px;padding-bottom: 4px;word-break:break-all;">
  <b style="font-size: 12px;"><?=$subject?><?=$new?></b>
 </td>
</tr>
<tr><td class="linetd"></td></tr>
<tr>
 <td valign="top">
  <table border="0" cellspacing="0" width="100%" style="table-layout:fixed" height="30">
  <col width="*"><col width="240">
  <tr>
   <td nowrap="nowrap" style="padding-left:10px">
    <?=$face_image?> <?=$name?></b>&nbsp;
    <? if($data['homepage']) {?>
    <a href="<?=$data['homepage']?>" target="_blank"><span class="number">-homepage</span></a>
    <?}?>
   </td>
   <td align="right" style="padding-right:10px;" class="number"><?=$date?>, 조회 : <b><?=number_format($hit)?></b> 추천 : <b><?=$vote?></b></td>
  </tr>
  <tr><td colspan="2" class="linetd"></td></tr>
  </table>
  <table border="0" cellspacing="0" cellpadding="10" width="100%">
  <tr>
   <td>
<?
echo (preg_match('/\.(gif|jpe?g|png|bmp)$/i', $file_name1)) ? imageResize($data['file_name1'], $max_height,$max_width) : '';
echo (preg_match('/\.(gif|jpe?g|png|bmp)$/i', $file_name2)) ? imageResize($data['file_name2'], $max_height,$max_width) : '';
echo ($imgs) ? $imgs : '';
?>
    <?=$memo?>
    <div align="right" class="number"><?=$ip?></div>
   </td>
  </tr>
  </table>
 </td>
</tr>
</table>
<? if ($mutiupload['sfilename'] || $file_name1 || $file_name2) {?>
<table border=0 cellspacing=0 cellpadding=0 width=<?=$width?>>
<tr>
<td style="border:solid 1px #e1e1e1;background-color:#f7f7f7;padding: 4px;vertical-align: middle;font-family: tahoma,Verdana,Arial,굴림;font-size: 11px;">
<? if($file_name1) {?><img src='<?=$dir?>/images/icon_s_file.gif' border='0' style='vertical-align: middle;'>&nbsp;<?=$a_file_link1?><b><?=$file_name1?></b></a> <span style='color:#C8C8C8;font-size: 12px;'>|</span> <?=$file_size1?> / <?=$file_download1?> Download(s)&nbsp;&nbsp;&nbsp;&nbsp;<?}?><? if($file_name2) {?><img src='<?=$dir?>/images/icon_s_file.gif' border='0' style='vertical-align: middle;'>&nbsp;<?=$a_file_link2?><b><?=$file_name2?></b></a> <span style='color:#C8C8C8;font-size: 12px;'>|</span> <?=$file_size2?> / <?=$file_download2?> Download(s)&nbsp;&nbsp;&nbsp;&nbsp;<?}?><?=$filediv?>
</td>
</tr>
</table>
<?}?>
<img src="<?=$dir?>/t.gif" border="0" height="2"><br>
<? if($member['level']<=$setup['grant_comment']){?>
<?=$hide_comment_start?>
<table border="0" cellspacing="0" cellpadding="0" height="1" width="<?=$width?>">
<tr><td class="linetd"></td></tr>
</table>
<img src="<?=$dir?>/t.gif" border="0" height="8"><br>

<img src="<?=$dir?>/t.gif" border="0" height="8"><br>
<?=$hide_comment_end?>
<?}?>