윈도우에서는 되는데 파이어폭스나 크롬에선 깨져요.!! 좀 봐주세요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

윈도우에서는 되는데 파이어폭스나 크롬에선 깨져요.!! 좀 봐주세요 정보

윈도우에서는 되는데 파이어폭스나 크롬에선 깨져요.!! 좀 봐주세요

본문

롤링 배너 최신글 소스인데요..
윈도우 에서는 내용이 테이블 안에서 잘 롤링 되는데요..
크롬이나 파콕에선 화면 젤 왼쪽 위에 나열되고 롤링도 안되요.!!
좀 봐주세요.!!
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width=100% height=5><tr><td></td></tr></table>
<!-- 공백 -->
<table width=100% cellpadding=0 cellspacing=0><tr><td>
<DIV style='width:100%;valign:top; height:600px;overflow:hidden;border:0;padding:0;top:-14px;'>
<marquee align=right id="iescroller" direction="up" width="120" height="600" scrollamount="1" scrolldelay="1"  onmouseover="this.stop()" onmouseout="this.start()" >
<table width='130' cellpadding=0 cellspacing=0>
<tr>
<td width=100% valign=top>
<div id="divSC0" style="valign:top;width:120px; height:600px; position:absolute; ;left:-2; top:0px; z-index:20; visibility:visible;  ">
<div align="left">
<table width='100%' height="200" cellpadding=0 cellspacing=0>
<tr>
<td width=100% height="200" valign=top>
<table width="100%" height="200" border="0" cellspacing="0" cellpadding="0">

<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo "<td width=20>&nbsp;</td>";

$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$thumbx=80;
$thumby=60;
$destfile =$img.'Thumb';

$size = @getimagesize($img);
if(is_array($size) && !is_file($destfile)) {
switch($size[2]) {
case(1) :
if(function_exists('ImageCreateFromGif')) $im = ImageCreateFromGif($img);
break;
case(2) :
if(function_exists('ImageCreateFromJpeg')) $im = ImageCreateFromJpeg($img);
break;
case(3) :
if(function_exists('ImageCreateFromPng')) $im = ImageCreateFromPng($img);
break;
}
$fixsize = mando_image_size($size[0], $size[1], $thumbx, $thumby);
if($im) {
if($i==0) @exec("rm ".dirname($_SERVER[SCRIPT_FILENAME])."/data/file/$bo_table/*Thumb-rf");
if(function_exists('ImageCreateTrueColor')) $newim = ImageCreateTrueColor($fixsize[x],$fixsize[y]);
else $newim = ImageCreate($fixsize[x],$fixsize[y]);
if(function_exists('ImageCopyResampled')) ImageCopyResampled($newim,$im,0,0,0,0,$fixsize[x],$fixsize[y],$size[0],$size[1]);
else ImageCopyResized($newim,$im,0,0,0,0,$fixsize[x],$fixsize[y],$size[0],$size[1]);
ImageDestroy($im);
ImageJpeg($newim, $destfile, 100);
ImageDestroy($newim);
unset($im, $newim);
}
$list[$i][img][x] = $fixsize[x];
$list[$i][img][y] = $fixsize[y];
} else {
if(is_file($destfile)) {
$size = @getimagesize($destfile);
$list[$i][img][x] = $size[0];
$list[$i][img][y] = $size[1];
} else {
$img = "";
$size = @getimagesize($img);
$list[$i][img][x] = $thumbx;
$list[$i][img][y] = $thumby;
}
}
if(is_file($destfile))$img = $destfile;

echo <<<HEREDOC
<tr>
<td width="100" valign="top">
<table width="100" border="0" cellpadding="0" cellspacing="0">
<tr>

<td width="100" align=center><a href="{$list[$i][href]}"><img src="{$destfile}" width="{$thumbx}" height="{$thumby}" border="0" title="$title" align=absmiddle></a></td>

</tr>
<tr>           
<td width="100" align=center><a href="{$href}">{$list[$i][subject]}</a></td>

</tr>
<tr>
<td height="5" colspan="3"><img src="{$latest_skin_path}/img/skin_bottom.gif" width="100" height="5"></td>
</tr>
</table>
</td>
</tr>
HEREDOC;
}
?>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</marqee>
</div>
</td>
</tr>
</table>

댓글 전체

잘 모르는 입장에서 답변을 달면 익스 전용 롤링소스를 사용하신 것이지요.
파폭이나 크롬에서 지원되는 소스를 찾아서 변경해 주셔야 합니다.
세상엔 의외로 익스전용 소스들이 많아요.
참고로, 영카트에 적용된 소스는 익스, 파폭, 크롬 등을 모두 제대로 지원한답니다.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT