최신 갤러리를 스크롤해서 보여질수 있는 방법이 있나요...

· 21년 전 · 409 · 4
최신 갤러시 스킨에서 수정을 해야 하는건지요...

아님 다른 어떤 소스를 만들어야 하는지요....

스킨소스에 마퀴태그를 적용했는데 1개만 출력되고 .... 아아...어렵네요...

<?
$mod = 1; // 한행당 몇개씩?
$image_width = 150; // 이미지 폭
$image_height = 113; // 이미지 높이
?>
<head>
<script language="javascript">
<!--
function sliding1(chk)
{
switch(chk) {
case 1:
marqueemove.start();
break;
case 2:
marqueemove.stop();
break;
}
}

function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink() {
if (document.all)
setInterval("doBlink()",600)
}

window.onload = startBlink;
-->
</SCRIPT>
</head>

<table width=100% cellpadding=0 cellspacing=1 border=0>
<tr><td colspan=<?=$mod?>><a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table"?>'></a></td></tr>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
if (!file_exists($list[$i][file_image1])) { $list[$i][file_image1] = "$latest_skin/noimage.gif"; }
if ($i>0 && $i%$mod==0) { echo "</tr><tr>"; }
?>
<td valign=top align=center>
<table cellpadding=0 border=0 cellpadding=0 cellspacing=0>
<tr>
<td>
<table !bgcolor=silver cellpadding=0 cellspacing=0 border=0>
<tr>
<td>
<div align="center">
<marquee ID="marqueemove" direction="up" height="100" scrollamount="3" onmouseover="sliding1(2)" onmouseout="sliding1(1)">
<center>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table"?>'><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' border=1 alt='<?=$list[$i][wr_subject]?>' style='border-color:#555555;'></a>
</center>
</marquee>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<? } ?>

<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td>&nbsp;</td>";
}
?>

<? if (count($list) == 0) { echo "<td colspan=$mod align=center>게시물이 없습니다.</td>"; } ?>


자바 스크립트는 어디서 베낀겁니다....
</tr>
</table>
|

댓글 4개

emoticon_024emoticon_026emoticon_028emoticon_032emoticon_044emoticon_063emoticon_062emoticon_083

제가...수정한 소스에 이걸 넣으니 안됐는데....
걍 이소스만 집어넣으니 되는건......ㅡㅡ;;

정말 감사합니다...오늘 총 6시간 수고가 헛되지 않은듯 합니다...
흐르는 구름...지니 아빠님 ....감사합니다....^^
제가 뿌려 드린것이나 ....
가르쳐 드린 링크는 원하는 갯수만큼 스크롤이 가능 합니다.
재차 확인해 보시기 바랍니다.
이건 1개만 가능한거구여... 지정한 갯수만큼 계속 스크롤 되지가 안네요....

아아.....하루종일 삽질하는데 답답하네요...
<script language="JavaScript1.2">

function mstart()
{
scroller.start();

setTimeout("mstop()", 20000);
}
function mstop(){

scroller.stop();
setTimeout("mstart()", 1);
}

setTimeout("mstart()", 300);
</script>
<MARQUEE id="scroller" scrollAmount=3 direction=up height=260 style="LINE-HEIGHT: 9pt" width=100% onbounce="behavior" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=2"><nobr>

이런 형태로 main.php 최신글 한줄옆에 붙이시는 경우가 있겠구요.
스킨자료실에 latest.skin.php 자체에 붙이는 식으로 적용된 최신글 스킨이 있습니다.

http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=skin3&sselect=ca_id&stext=5&page=4

를 참고 하셔서 응용해 보세요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
21년 전 조회 469
21년 전 조회 437
21년 전 조회 469
21년 전 조회 240
21년 전 조회 503
21년 전 조회 402
21년 전 조회 328
21년 전 조회 363
21년 전 조회 377
21년 전 조회 410
21년 전 조회 315
21년 전 조회 270
21년 전 조회 291
21년 전 조회 507
21년 전 조회 623
21년 전 조회 558
21년 전 조회 613
21년 전 조회 441
21년 전 조회 423
그누매니아
21년 전 조회 224
🐛 버그신고