묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이동 메뉴 관련 자문 좀 구합니다....
2003.04.22 17:33
http://www.jibangse.com여러 선배분들 덕에 어떻게 어떻게 홈을 완성해 잘 꾸려 가고 있습니다.
그런데, 첨엔 해냈다라는 생각에 그냥 내버려 두었는데,
지금 보니 창 처음 열때 엉뚱하게 밑에 가 있고,
이동메뉴 끄기를 누르면 익스플로러 하단에 페이지 오류가 있습니다.
하며 처음 부분엔 잘 실행이 되지 않습니다...
고수분들의 도움 부탁드립니다.....
해당 페이지 : http://www.jibangse.com
↑ 메인페이지
쏘스...
<?
$_zb_level = 10;
$_zb_skin = "login";
$_zb_url = "http://www.jibangse.com/zb41pl3/";
$_zb_path = "/home1/jibangse/htdocs/zb41pl3/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<title>지방세닷컴</title>
<script language="javascript">
<!--
var stmnGAP1 = 140; // 페이지 헤더부분의 여백 (이보다 위로는 올라가지 않음)
var stmnGAP2 = 10; // 스크롤시 브라우저 상단과 약간 띄움. 필요없으면 0으로 세팅
var stmnBASE = 200; // 스크롤메뉴 초기 시작위치 (아무렇게나 해도 상관은 없지만 stmnGAP1과 약간 차이를 주는게 보기 좋음)
var stmnActivateSpeed = 200; // 움직임을 감지하는 속도 (숫자가 클수록 늦게 알아차림)
var stmnScrollSpeed = 10; // 스크롤되는 속도 (클수록 늦게 움직임)
var stmnTimer;
function ReadCookie(name)
{
var label = name + "=";
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0;
while (i < cLen) {
var j = i + labelLen;
if (document.cookie.substring(i, j) == label) {
var cEnd = document.cookie.indexOf(";", j);
if (cEnd == -1) cEnd = document.cookie.length;
return unescape(document.cookie.substring(j, cEnd));
}
i++;
}
return "";
}
function SaveCookie(name, value, expire)
{
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}
function RefreshStaticMenu()
{
var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
stmnStartPoint = parseInt(STATICMENU.style.top, 10);
stmnEndPoint = document.body.scrollTop + stmnGAP2;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
stmnRefreshTimer = stmnActivateSpeed;
if ( stmnStartPoint != stmnEndPoint ) {
stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
stmnRefreshTimer = stmnScrollSpeed;
}
stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}
function ToggleAnimate()
{
if (!ANIMATE.checked) {
RefreshStaticMenu();
SaveCookie("ANIMATE", "true", 300);
}
else {
clearTimeout(stmnTimer);
STATICMENU.style.top = stmnGAP1;
SaveCookie("ANIMATE", "false", 300);
}
}
function InitializeStaticMenu()
{
if (ReadCookie("ANIMATE") == "false") {
ANIMATE.checked = true;
STATICMENU.style.top = document.body.scrollTop + stmnGAP1;
}
else {
ANIMATE.checked = false;
STATICMENU.style.top = document.body.scrollTop + stmnBASE;
RefreshStaticMenu();
}
}
-->
</script>
<style type="text/css">
body,td,tr,table{font-size:9pt; font-family:굴림;color:#444444;letter-spacing:-1px}
body
{scrollbar-3dlight-color:#FFFFFF;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-shadow-color:#444444}
A:link {font-family:굴림;font-size:9pt;color:#444444;text-decoration:none;}
A:visited {font-family:굴림;font-size:9pt;color:#444444;text-decoration:none;}
A:active {font-family:굴림;font-size:9pt;color:#444444;text-decoration:none;}
A:hover {font-family:굴림;font-size:9pt;color:#7A7A7A;text-decoration:none;}
.tahoma {font-family:tahoma; font-size:8pt; color:#FFFFFF;letter-spacing:0px}
</style>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table align="center" border="1" cellpadding="0" cellspacing="0" width="799" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="795">
<table cellpadding="0" cellspacing="0" border="0" width="797">
<tr>
<td width="797" align="center" colspan="3">
<a href="http://www.jibangse.com/"><img src="http://www.jibangse.com/images/head.jpg" width="799" height="100" border="0"></a></td>
</tr>
<tr>
<td width="797" height="25" align="right" colspan="3" bgcolor=#000000>
<p align="right" style="line-height:100%; margin-top:0; margin-bottom:0;"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jigongji"><img src="http://www.jibangse.com/images/title_1.jpg" width="50" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jisosik"><img src="http://www.jibangse.com/images/title_2.jpg" width="62" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><img src="http://www.jibangse.com/images/title_3.jpg" width="74" height="20" border="0"><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jilawex"><img src="http://www.jibangse.com/images/title_12.jpg" width="63" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jinews"><img src="http://www.jibangse.com/images/title_4.jpg" width="63" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jijagepan"><img src="http://www.jibangse.com/images/title_5.jpg" width="64" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jiqna"><img src="http://www.jibangse.com/images/title_6.jpg" width="62" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=gallery"><img src="http://www.jibangse.com/images/title_7.jpg" width="38" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jipds"><img src="http://www.jibangse.com/images/title_8.jpg" width="38" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jivote"><img src="http://www.jibangse.com/images/title_9.jpg" width="63" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jiguest"><img src="http://www.jibangse.com/images/title_10.jpg" width="38" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jilink"><img src="http://www.jibangse.com/images/title_11.jpg" width="63" height="20" border="0">
</td>
</tr>
<tr>
<td width="159" align="center" valign=top height="172">
<table align="center" cellpadding="0" cellspacing="0" width="150">
<tr><td height="202"><div id="STATICMENU" style="position:absolute; z-index:100; width:200px;">
<table border="0" width="148" cellpadding="0" cellspacing="0">
<table style=border-collapse:collapse; cellspacing=0 border="0" width="148">
<tr>
<td height="168" align=center width="146">
<? print_outlogin("nzeo", 1, 10) ?>
<p> <input id=ANIMATE type=checkbox onclick=ToggleAnimate(); checked>메뉴이동 기능 끄기</p>
</td>
<p> </tr>
</table>
</div></td></tr>
<tr>
<td></td>
</tr>
</table>
</td>
<td width="1" align="center" bgcolor=#000000 height="172">
</td>
<td width="637" align="center" height="172">
<table cellpadding="0" cellspacing="0" width="95%">
<tr><td height=15 colspan="3"> </td></tr>
<tr>
<td width="585" colspan="3">
<? print_bbs("default/default_notice", "공지사항", "jigongji", 3, 36)?>
</td>
</tr>
<tr><td height=15 colspan="3"></td></tr>
<tr>
<td width="265">
<? print_bbs("nzeo/tika", "지방세새소식", "jisosik", 5, 34)?>
</td>
<td width="30">
</td>
<td width="265">
<? print_bbs("nzeo/tika", "세무뉴스", "jinews", 5, 34)?>
</td>
</tr>
<tr><td height=10 colspan="3"></td></tr>
<tr>
<td width="265">
<? print_bbs("nzeo/tika", "묻고답하기", "jiqna", 5, 34)?>
</td>
<td width="30">
</td>
<td width="265">
<? print_bbs("nzeo/tika", "자유게시판", "jijagepan", 5, 34)?>
</td>
</tr>
<tr><td height=15 colspan="3"> </td></tr>
<tr>
<td width="265">
<? print_bbs("nzeo/tika", "갤러리", "gallery", 5, 34)?>
</td>
<td width="30">
</td>
<td width="265">
<? print_bbs("nzeo/tika", "자료실", "jipds", 5, 34)?>
</td>
</tr>
<tr><td height=10 colspan="3"></td></tr>
</table>
</td>
</tr>
<tr>
<td width="797" height=22 align="center" colspan="3" bgcolor=#000000>
<p align="right"><A href="#top"><IMG src="http://www.jibangse.com/images/i_top.gif"
border=0></A>
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"><FONT color=white>Copyright(c) 2003 jibangse All rights
reserved<br>http://www.jibangse.com</FONT><BR><FONT color=white>Designed by 티카™</FONT></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p> </p>
</body>
</html>
그런데, 첨엔 해냈다라는 생각에 그냥 내버려 두었는데,
지금 보니 창 처음 열때 엉뚱하게 밑에 가 있고,
이동메뉴 끄기를 누르면 익스플로러 하단에 페이지 오류가 있습니다.
하며 처음 부분엔 잘 실행이 되지 않습니다...
고수분들의 도움 부탁드립니다.....
해당 페이지 : http://www.jibangse.com
↑ 메인페이지
쏘스...
<?
$_zb_level = 10;
$_zb_skin = "login";
$_zb_url = "http://www.jibangse.com/zb41pl3/";
$_zb_path = "/home1/jibangse/htdocs/zb41pl3/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<title>지방세닷컴</title>
<script language="javascript">
<!--
var stmnGAP1 = 140; // 페이지 헤더부분의 여백 (이보다 위로는 올라가지 않음)
var stmnGAP2 = 10; // 스크롤시 브라우저 상단과 약간 띄움. 필요없으면 0으로 세팅
var stmnBASE = 200; // 스크롤메뉴 초기 시작위치 (아무렇게나 해도 상관은 없지만 stmnGAP1과 약간 차이를 주는게 보기 좋음)
var stmnActivateSpeed = 200; // 움직임을 감지하는 속도 (숫자가 클수록 늦게 알아차림)
var stmnScrollSpeed = 10; // 스크롤되는 속도 (클수록 늦게 움직임)
var stmnTimer;
function ReadCookie(name)
{
var label = name + "=";
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0;
while (i < cLen) {
var j = i + labelLen;
if (document.cookie.substring(i, j) == label) {
var cEnd = document.cookie.indexOf(";", j);
if (cEnd == -1) cEnd = document.cookie.length;
return unescape(document.cookie.substring(j, cEnd));
}
i++;
}
return "";
}
function SaveCookie(name, value, expire)
{
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}
function RefreshStaticMenu()
{
var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
stmnStartPoint = parseInt(STATICMENU.style.top, 10);
stmnEndPoint = document.body.scrollTop + stmnGAP2;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
stmnRefreshTimer = stmnActivateSpeed;
if ( stmnStartPoint != stmnEndPoint ) {
stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
stmnRefreshTimer = stmnScrollSpeed;
}
stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}
function ToggleAnimate()
{
if (!ANIMATE.checked) {
RefreshStaticMenu();
SaveCookie("ANIMATE", "true", 300);
}
else {
clearTimeout(stmnTimer);
STATICMENU.style.top = stmnGAP1;
SaveCookie("ANIMATE", "false", 300);
}
}
function InitializeStaticMenu()
{
if (ReadCookie("ANIMATE") == "false") {
ANIMATE.checked = true;
STATICMENU.style.top = document.body.scrollTop + stmnGAP1;
}
else {
ANIMATE.checked = false;
STATICMENU.style.top = document.body.scrollTop + stmnBASE;
RefreshStaticMenu();
}
}
-->
</script>
<style type="text/css">
body,td,tr,table{font-size:9pt; font-family:굴림;color:#444444;letter-spacing:-1px}
body
{scrollbar-3dlight-color:#FFFFFF;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-shadow-color:#444444}
A:link {font-family:굴림;font-size:9pt;color:#444444;text-decoration:none;}
A:visited {font-family:굴림;font-size:9pt;color:#444444;text-decoration:none;}
A:active {font-family:굴림;font-size:9pt;color:#444444;text-decoration:none;}
A:hover {font-family:굴림;font-size:9pt;color:#7A7A7A;text-decoration:none;}
.tahoma {font-family:tahoma; font-size:8pt; color:#FFFFFF;letter-spacing:0px}
</style>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table align="center" border="1" cellpadding="0" cellspacing="0" width="799" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="795">
<table cellpadding="0" cellspacing="0" border="0" width="797">
<tr>
<td width="797" align="center" colspan="3">
<a href="http://www.jibangse.com/"><img src="http://www.jibangse.com/images/head.jpg" width="799" height="100" border="0"></a></td>
</tr>
<tr>
<td width="797" height="25" align="right" colspan="3" bgcolor=#000000>
<p align="right" style="line-height:100%; margin-top:0; margin-bottom:0;"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jigongji"><img src="http://www.jibangse.com/images/title_1.jpg" width="50" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jisosik"><img src="http://www.jibangse.com/images/title_2.jpg" width="62" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><img src="http://www.jibangse.com/images/title_3.jpg" width="74" height="20" border="0"><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jilawex"><img src="http://www.jibangse.com/images/title_12.jpg" width="63" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jinews"><img src="http://www.jibangse.com/images/title_4.jpg" width="63" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jijagepan"><img src="http://www.jibangse.com/images/title_5.jpg" width="64" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jiqna"><img src="http://www.jibangse.com/images/title_6.jpg" width="62" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=gallery"><img src="http://www.jibangse.com/images/title_7.jpg" width="38" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jipds"><img src="http://www.jibangse.com/images/title_8.jpg" width="38" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jivote"><img src="http://www.jibangse.com/images/title_9.jpg" width="63" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jiguest"><img src="http://www.jibangse.com/images/title_10.jpg" width="38" height="20" border="0"></a><img src="http://www.jibangse.com/images/title_edge.jpg" width="5" height="20" border="0"><a href="http://www.jibangse.com/zb41pl3/zboard.php?id=jilink"><img src="http://www.jibangse.com/images/title_11.jpg" width="63" height="20" border="0">
</td>
</tr>
<tr>
<td width="159" align="center" valign=top height="172">
<table align="center" cellpadding="0" cellspacing="0" width="150">
<tr><td height="202"><div id="STATICMENU" style="position:absolute; z-index:100; width:200px;">
<table border="0" width="148" cellpadding="0" cellspacing="0">
<table style=border-collapse:collapse; cellspacing=0 border="0" width="148">
<tr>
<td height="168" align=center width="146">
<? print_outlogin("nzeo", 1, 10) ?>
<p> <input id=ANIMATE type=checkbox onclick=ToggleAnimate(); checked>메뉴이동 기능 끄기</p>
</td>
<p> </tr>
</table>
</div></td></tr>
<tr>
<td></td>
</tr>
</table>
</td>
<td width="1" align="center" bgcolor=#000000 height="172">
</td>
<td width="637" align="center" height="172">
<table cellpadding="0" cellspacing="0" width="95%">
<tr><td height=15 colspan="3"> </td></tr>
<tr>
<td width="585" colspan="3">
<? print_bbs("default/default_notice", "공지사항", "jigongji", 3, 36)?>
</td>
</tr>
<tr><td height=15 colspan="3"></td></tr>
<tr>
<td width="265">
<? print_bbs("nzeo/tika", "지방세새소식", "jisosik", 5, 34)?>
</td>
<td width="30">
</td>
<td width="265">
<? print_bbs("nzeo/tika", "세무뉴스", "jinews", 5, 34)?>
</td>
</tr>
<tr><td height=10 colspan="3"></td></tr>
<tr>
<td width="265">
<? print_bbs("nzeo/tika", "묻고답하기", "jiqna", 5, 34)?>
</td>
<td width="30">
</td>
<td width="265">
<? print_bbs("nzeo/tika", "자유게시판", "jijagepan", 5, 34)?>
</td>
</tr>
<tr><td height=15 colspan="3"> </td></tr>
<tr>
<td width="265">
<? print_bbs("nzeo/tika", "갤러리", "gallery", 5, 34)?>
</td>
<td width="30">
</td>
<td width="265">
<? print_bbs("nzeo/tika", "자료실", "jipds", 5, 34)?>
</td>
</tr>
<tr><td height=10 colspan="3"></td></tr>
</table>
</td>
</tr>
<tr>
<td width="797" height=22 align="center" colspan="3" bgcolor=#000000>
<p align="right"><A href="#top"><IMG src="http://www.jibangse.com/images/i_top.gif"
border=0></A>
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"><FONT color=white>Copyright(c) 2003 jibangse All rights
reserved<br>http://www.jibangse.com</FONT><BR><FONT color=white>Designed by 티카™</FONT></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p> </p>
</body>
</html>
메뉴이동기능에 체크를 지우니까 제대로 작동이 되는데...
<input id=ANIMATE type=checkbox onclick=ToggleAnimate(); checked>메뉴이동 기능 끄기</p> 이 부분을
<input id=ANIMATE type=checkbox onclick=ToggleAnimate();>메뉴이동 기능 끄기</p>
이렇게 checked를 빼고 해보시죠..