묻고답하기



http://bamtol.fx86.com/bbs/zboard.php?id=free
여기가면 왼쪽 메뉴가 나오는데요
빨간색으로 표시된 이미지를 누르면 접힌답니다.
근데 페이지가 열릴때는 모두 펼쳐져서 나오네요.
처음부터 접혀져서 나오게 하고 싶은데
제발가르쳐주세요~

아래는 이부분 소스입니다.

<title>|밤톨|또 하나의 반쪽</title>
<script Language="Javascript">

//
// 쿠키를 굽는다.
//
// setCookie( "쿠기이름", "쿠키값" ,쿠키사용기간 );
// 생성 : setCookie( "CoN0", "none" ,7 );
// 삭제 : setCookie( "CoN0", "" ,"" );
//
function setCookie( name, value, expiredays )
{

        var todayDate = new Date();
        todayDate.setDate( todayDate.getDate() + expiredays );
        document.cookie = name + "=" + escape( value ) + "; expires=" + todayDate.toGMTString() + ";"

}

//
// 쿠키값을 가져온다.
//
// 쿠기값을받을변수 = GetCookie("쿠기이름");
// ok = GetCookie("CoN0");
//
function GetCookie(name)
{
        var cname = name + "=";
        var dc = document.cookie;
        if (dc.length > 0)
        {
                begin = dc.indexOf(cname);
                if (begin != -1)
                {
                        begin += cname.length;
                        end = dc.indexOf(";", begin);
                        if (end == -1)
                                end = dc.length;
                        return unescape(dc.substring(begin, end));
                }
        }
        return "";
}

//
// 토글 hide
//
// hide('적용할오브젝트이름');
// hide('CoN0');
//
function hide(id)
{
        obj = document.all[id];

        if (obj.style.display == '')
        {
                obj.style.display = 'none';
                setCookie( id, "none" , 7 );
        }
        else
        {
                obj.style.display = '';
                setCookie( id, "" , "" );
        }
}

//
// 쿠키값을 가져와 "토글 hide" 을 적용한다.
//
function init()
{
        ( GetCookie("CoN0") == "none" ) ? CoN0.style.display = 'none' : '' ;
        ( GetCookie("CoN1") == "none" ) ? CoN1.style.display = 'none' : '' ;
        ( GetCookie("CoN2") == "none" ) ? CoN2.style.display = 'none' : '' ;
        ( GetCookie("CoN3") == "none" ) ? CoN3.style.display = 'none' : '' ;
        ( GetCookie("CoN4") == "none" ) ? CoN4.style.display = 'none' : '' ;
}

</script>

<?
function have_new($board_id) {
$recent_time = 60*60*48;
//24시간 이내로 할 경우
$_zb_url = "http://bamtol.fx86.com/bbs/";
$_zb_path = "f:/bamtol/bbs/";
include "../dbconn1.php";  
// 이 부분의 경로는 환경에 맞게 수정하세요.
$result=mysql_query("select reg_date from zetyx_board_"."$board_id order by no desc limit 1");
while($data=mysql_fetch_array($result)) {
$today = date("U", time()); $wtime = $today-$data[0];
if($wtime <= $recent_time){ echo "";}  
// echo 내의 html 태그 부분은 마음에 맞게 수정하세요.
    }

}
?>

</head>

<body background="../main_bg_down.gif" style="background-attachment: fixed">



<table border="0" cellpadding="0" cellspacing="0" width="945" height="421">
        <!-- MSTableType="layout" -->
        <tr>
                <td valign="top" colspan="2" height="18">
                <!-- MSCellType="ContentHead" -->
                 </td>
        </tr>
        <tr>
                <td valign="top" colspan="2" height="18">
                <!-- MSCellType="ContentHead" -->
                 <? print_outlogin("cabin1", 1, 10) ?></td>
        </tr>
        <tr>
                <td valign="top" colspan="2" height="40">
                <!-- MSCellType="ContentHead" -->
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
        <td width="3">
        </td>
        <td width="945" height="3" bgcolor="#2F672C"></td>
        <td width="3">
        </td>
</tr>
<tr bgcolor="#FF8000">
        <td height="34" colspan="3" style="padding:0 0 3 20" bgcolor="#2F672C">
                <table width="910" border="0" cellspacing="0" cellpadding="0" height="34">
                <tr>
                        <td width="550" style="padding-top:2px" align="center">
                        
                        
                        
                        <span style="text-decoration: none">DVDCOVERART</span>
   
                                
                        <span style="text-decoration: none">DVD하드웨어</span>
   
                                
                        <span style="text-decoration: none">커뮤니티</span>
   
                                
                        <span style="text-decoration: none">통합</span><span style="text-decoration: none">QA</span>
   
                                
                        <span style="text-decoration: none">잡동사니</span>
   
                        
                        <span style="text-decoration: none">SEARCH</span>
 
</td>
                                <td width="300"><table width="230" border="0" cellspacing="0" cellpadding="0"><tr><td width="2">
                                        
                                        
</td>
                                        <td bgcolor="#60A049" style="padding-top:2px">

                                                <span style="text-decoration: none">
                                                
                                                
                                                <span style="text-decoration: none">이벤트</span>
</span>
  |  <span style="text-decoration: none"><span style="text-decoration: none">공동구매</span></span>  |  <span style="text-decoration: none">장터</span>  |  <span style="text-decoration: none"><span style="text-decoration: none">밤까기</span></span>
</td><td width="2">
                                        
                                        
</td></tr></table></td></tr></table></td></tr>
</table></td>

        </tr>        <tr>
                <td valign="top" width="130" bgcolor="#FBFBFB">
                
        

                <table>
                <!-- MSCellType="NavBody" -->
                <tr><td>
<table border=0 cellpadding="1" cellspacing="0">
<tr><td><SPAN style='CURSOR: hand' onClick="hide('CoN0')">
        </SPAN></td></tr>
</table>
</TD></TR><TR><TD>
                

                <table cellpadding="0" cellspacing="0"><tr><td></td><td>
                <table border=0 cellpadding="0" cellspacing="0">
                <tr><td height="2"></td></tr>
                <tr><td align=right><?have_new("world2");?>
                
                <span style="text-decoration: none">외국커버아트</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("korea2");?>
                <span style="text-decoration: none">
                        
                        <span style="text-decoration: none">한국영화커버</span>
</span> </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("ani2");?>
        
                <span style="text-decoration: none">애니메이션</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("etc2");?>
        
                <span style="text-decoration: none">기타(etc)커버</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("label2");?>
        
                <span style="text-decoration: none">DVD라벨</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("request");?>
        
                <span style="text-decoration: none">커버아트요청</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("modify");?>
        
                <span style="text-decoration: none">수정요청</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("forum");?>
        
                <span style="text-decoration: none">커버아트QA</span>
 </td></tr></table>
                

                </td></tr></table>
                </TD></TR>
                <tr><td>

          <table border=0 height=15 cellpadding="0" cellspacing="1"><tr><td><SPAN style='+ '+ 'CURSOR: hand' onClick="hide('CoN1')">
                </SPAN></td></tr></table></TD></TR><TR><TD>
                

                <table cellpadding="0" cellspacing="0"><tr><td></td><td>
                <table border=0 cellpadding="0" cellspacing="0">
                <tr><td height="3"></td></tr>
                <tr><td align=right><?have_new("dvdrwinfo");?>
                
                <span style="text-decoration: none">
                하드웨어정보</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("techtips");?>
        
                <span style="text-decoration: none">레코딩정보</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("mediause");?>
        
                <span style="text-decoration: none">미디어정보</span>
                 </td></tr>                
                <tr><td height="2"></td></tr>
                </table>
                

                </td></tr></table>
                </TD></TR>
                <tr><td>

                <table border=0 height=15 cellpadding="0" cellspacing="1"><tr><td><SPAN style='CURSOR: hand' onClick="hide('CoN2')">
                        </SPAN></td></tr></table></TD></TR><TR><TD>
                

                <table cellpadding="0" cellspacing="0"><tr><td></td><td>
                <table border=0 cellpadding="0" cellspacing="0">
                <tr><td height="3"></td></tr>
                <tr><td align=right><?have_new("free");?>
                
                <span style="text-decoration: none">자유게시판</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("photo");?>
        
                <span style="text-decoration: none">포토갤러리</span>
 </td></tr>                
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("pds");?>
        
                <span style="text-decoration: none">자료실</span>
 </td></tr>        
                <tr><td height="2"></td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("movie");?>
        
                <span style="text-decoration: none">영화감상평</span>
 </td></tr>        
                <tr><td height="2"></td></tr>
        <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("icon");?>
        
                <span style="text-decoration: none">운영자에게</span>
 </td></tr>        
                <tr><td height="2"></td></tr>
                </table>
                

                </td></tr></table>
                </TD></TR>
                <tr><td>

                <table border=0 height=15 cellpadding="0" cellspacing="1"><tr><td><SPAN style='CURSOR: hand' onClick="hide('CoN3')">
                        </SPAN></td></tr></table></TD></TR><TR><TD>
                

                <table cellpadding="0" cellspacing="0"><tr><td></td><td>
                <table border=0 cellpadding="0" cellspacing="0">
                <tr><td height="3"></td></tr>
                <tr><td align=right><?have_new("detail");?>
                
                <span style="text-decoration: none">잡동사니</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <td align=right>
        reserve
                                </td></tr>                
                <tr><td height="2"></td></tr>
                </table>
                

                </td></tr></table>
                </TD></TR>
                <tr><td>

                <table border=0 height=15 cellpadding="0" cellspacing="1"><tr><td><SPAN style='CURSOR: hand' onClick="hide('CoN4')">
                        </SPAN></td></tr></table></TD></TR><TR><TD>
                

                <table cellpadding="0" cellspacing="0"><tr><td></td><td>
                <table border=0 cellpadding="0" cellspacing="0">
                <tr><td height="3"></td></tr>
                <tr><td align=right><?have_new("eventqa");?>
                
                <span style="text-decoration: none">이벤트</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right><?have_new("rama09");?>
                
                <span style="text-decoration: none">공동구매</span>
 </td></tr>
                <tr><td height="6"></td></tr>
                <tr><td align=right>
        장터</td></tr>
                </table>
                

                
                </td></tr></table>
                </td></tr>
                <tr><td>
                </td></tr></table>
<!-- 메뉴 끝-->

부탁드려요~^^
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
고종건 고수님들 도와주세요. 메일로 보내는 방법... [4] 2007.08.10
BT 클릭하면 접히는 레이어 질문.....  
BT 클릭하면 접히는 레이어 질문.... [1] 2007.08.10
정인창 표에서 이미지를 제일위로 보낸는 방법이? [1] 2007.08.10
stylebiz 페이지뷰 기능을 만들려고 하는데요 ^-^;; [3] 2007.08.10
김주한 커서 바꾸는 방법좀 .. [1] 2007.08.10
GaMeDoRi 질문질문 나모5.0 [1] 2007.08.10
GaMeDoRi 질문질문 나모5.0 [1] 2007.08.10
헬프미!!! 음악이 들리질 않아여ㅠ.ㅠ [9] 2007.08.10
최보나 페이지 링크걸기  
개가죽 암호를 묻네요  
정인창 [드림위버]이미지에 표을 딱 맞출때는?? [3] 2007.08.10
티스푼 다음 카페 가입할때 서명하는거 어떻게 만드는거예요? [3] 2007.08.10
허종원 php 설정 문의  
최보나 책자넘기기  
최보나 책자넘기기 소스  
양성희 글이 저장이안되어있는  
하영민 급질문! 플래시에서 손가락모양나오는것 [1] 2007.08.10
Dr.Can ASP를 사용한 보드(MS SQL사용) DB를 제로보드로 변환 가능한가요?  
☜_Redyan_☞ php 소스 전체 유출방지할수는 없나요? [4] 2007.08.10
정인창 [포토샾]이미지와 그래디언트색깔의 경계면을 자연스럽게..  
유재영 Internet Explorer에서 Flash가 재생이 안되네여...  
김형민 홈페이지 메인에 게시판 제목을 넣을려고 하는데... [1] 2007.08.10
마일 ftp.naver.com 로그인이 안됩니다 [1] 2007.08.10
someday 웹폰트 관련... 세번째...;ㅅ; [2] 2007.08.10
Toy 이미지 클릭시 점선 없애기 [2] 2007.08.10
알랍 테이블 너비는 계산을 해서 넣을 수 없나요? [3] 2007.08.10
맥심 홈페이지 배경을 그라디언트로 하고싶습니다. [1] 2007.08.10
☜_Redyan_☞ PHP 질문입니다. [2] 2007.08.10
윤지현 포토샵 설치가 안되요!! [1] 2007.08.10