[제나플러스] 자동탭소스 > 팁앤테크

본문 바로가기

사이트 내 전체검색

뒤로가기 팁앤테크

[제나플러스] 자동탭소스

본문

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근불가

//테이블명

$my_table1 = 'z1_1';
$my_table2 = 'z2_4';
$my_table3 = 'z6_8';
$my_table4 = 'z6_4';

?>

<SCRIPT type=text/javascript>
<!--
old_debate='1';

function Comeon(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}


var objid = 1;
var interval_best;

function best_change()
{
 if( objid == 4 ) //테이블수
  objid = 1;
 else
  objid++;

 Comeon(objid);
}


function setInterval_best()
{
 interval_best = setInterval("best_change()",4000);//속도
}
function clearInterval_best()
{
 clearInterval(interval_best);
}
setInterval_best();

//-->
</SCRIPT>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td align="center" valign=bottom>
        <TABLE cellSpacing=0 cellPadding=0 border=0>
            <TR>
                <TD align="center" width="101" height=28 id=debate1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><A href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$my_table1?>'><b><img src="<?=$g4['path']?>/include/auto_menu/img/img001_01.gif" border="0"></TD>
                <TD align="center" width="101" height=28 id=debate1#1  style="DISPLAY: none;"><span onmouseover="javascript:Comeon('1')"><img src="<?=$g4['path']?>/include/auto_menu/img/img000_01.gif" border="0"></TD>
                <TD align="center" width="101" id=debate2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$my_table2?>'><b><img src="<?=$g4['path']?>/include/auto_menu/img/img001_02.gif" border="0"></TD>
                <TD align="center" width="101" id=debate2#1 ><span onmouseover="javascript:Comeon('2')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img000_02.gif" border="0"></TD>
                <TD align="center" width="101" id=debate3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$my_table3?>'><b><img src="<?=$g4['path']?>/include/auto_menu/img/img001_03.gif" border="0"></TD>
                <TD align="center" width="101" id=debate3#1><span onmouseover="javascript:Comeon('3')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img000_03.gif" border="0"></TD>
                <TD align="center" width="97" id=debate4 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><A href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$my_table4?>'><b><img src="<?=$g4['path']?>/include/auto_menu/img/img001_04.gif" border="0"></TD>
                <TD align="center" width="97" id=debate4#1><span onmouseover="javascript:Comeon('4')" onfocus='this.blur()'><img src="<?=$g4['path']?>/include/auto_menu/img/img000_04.gif" border="0"></TD>
            </TR>
        </TABLE>
        </td>
    </tr>
    <tr>
        <td colspan=2 align=center>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <colgroup width='1'>
        <colgroup>
        <colgroup width='1'>
            <tr><td bgcolor="#d8d8d8"></td><td height=3></td><td bgcolor="#d8d8d8"></td></tr>
            <tr>
                <td bgcolor="#d8d8d8"></td>
                <td valign='top'>
                <DIV id=debate_content1 onmouseover=clearInterval_best() onmouseout=setInterval_best()><?= latest("tab", $my_table1, 5, 42)?></DIV>
                <DIV id=debate_content2 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("tab", $my_table2, 5, 42)?></DIV>
                <DIV id=debate_content3 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("tab", $my_table3, 5, 42)?></DIV>
                <DIV id=debate_content4 onmouseover=clearInterval_best() onmouseout=setInterval_best() style="DISPLAY: none;"><?= latest("tab", $my_table4, 5, 42)?></DIV>
                </td>
                <td bgcolor="#d8d8d8"></td>
            </tr>
            <tr><td bgcolor="#d8d8d8"></td><td height=1 bgcolor="#d8d8d8"></td><td bgcolor="#d8d8d8"></td></tr>
        </table>
        </td>
    </tr>
</table>

<table width="100%" cellpadding=0 cellspacing=0>
<tr><td height=5></td></tr>
</table>

추천0

댓글목록 1

골든님의 댓글

골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

굿 팁

전체 825건 29 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기