묻고답하기
제로보드 4에서 xe로 바꾸는데 quick menu가 안되요 ㅠㅠ
2011.01.05 19:52
제로보드4 쓰다가 xe로 바꾸고있어요
제로보드4로 만든건 제가 아니라 다른분인데 저는 잘몰라서 그냥 제로보드4 소스 복사했어요
스크롤내리면 이동하는 것을 퀵 메뉴 ( quick menu ) 라고 하나요?
어쨋든
퀵메뉴가 스크롤을내려도 안따라내려오네요 ~
소스올릴께요
안되는 부분 체크할테니 해결좀 해주세요 ㅠㅠ
<html>
<head>
<title> Club S Fitness & Golf </title>
<meta http-equiv="Content-Type" content="text/html;charset=euc-kr">
<link rel="stylesheet" href="/html/clubs.css" type="text/css">
<script language="javascript" src="../embed.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src="a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src="x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc="x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="javascript">
var _scroll_topmargin=304;
var _scroll_ing_topmargin=20;
var _scroll_activate_speed=300;
var _scroll_ing_activate_speed=10;
var _divMenuID = "divMenu";
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenu.top;
yMenuTo = windows.pageYOffset+_scroll_ing_topmargin;
} else if (isDOM) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop)+_scroll_ing_topmargin;
}
if(yMenuTo<_scroll_topmargin) yMenuTo = _scroll_topmargin;
timeoutNextCheck = _scroll_activate_speed;
if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10);
if (yMenuTo < yMenuFrom) yOffset = -yOffset;
if (isNS4) divMenu.top += yOffset;
else if (isDOM) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
timeoutNextCheck = _scroll_ing_activate_speed;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}
function moveInit() {
if (isNS4) {
var divMenu = document[_divMenuID];
divMenu.top = top.pageYOffset + _scroll_topmargin;
divMenu.visibility = "visible";
moveRightEdge();
} else if (isDOM) {
var divMenu = getRef(_divMenuID);
divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + _scroll_topmargin;
divMenu.style.visibility = "visible";
moveRightEdge();
}
}
</script>
<body onload="moveInit()","MM_preloadImages('../image/submenu_01_01_on.gif','../image/submenu_01_02_on.gif','../image/submenu_01_03_on.gif','../image/submenu_01_04_on.gif','../image/submenu_01_05_on.gif')" onContextmenu="return false" onSelectstart = "return false">
여기부터가 quickmenu 관련이에요
<div id="divMenu" style="position:absolute; left:947px; top:113px; width:56px; height:275px; z-index:1">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/image/quickmenu.gif usemap="#quick"></td>
<map name="quick">
<area shape="rect" coords="4,27,53,92" href="/html/clubs_map.htm">
<area shape="rect" coords="4,92,53,145" href="/html/clubs_tour.htm">
<area shape="rect" coords="4,145,53,200" href="/html/coupon.htm">
<area shape="rect" coords="4,200,53,262" href="/html/program_schedule.htm">
</map>
</tr>
</table>
</div>
안되는 곳은여기까지입니다
---> 원래 스크롤 내리면 같이 내려와야 하는데 안되네요 확인 하실때
<table width="942px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="padding:9px 0px 15px 7px"><a href="http://www.clubssports.co.kr/"><img src="../image/logo.gif" width="147px" height="99px" border="0"></a></td>
<td width="746px" align="right" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" valign="bottom" style="padding:26px 0px 9px 0px"><img src="../image/utility.gif" width="359px" height="14px" border="0" usemap="#Map"></td>
</tr>
<tr>
<td align="right">
<script language="javascript">ShowFlash('../image/topmenu.swf', 746, 65)</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="0,0,43,17" href="http://www.clubssports.co.kr/">
<area shape="rect" coords="43,0,135,17" href="/bbs/zboard.php?id=news">
<area shape="rect" coords="135,0,229,17" href="/html/program_schedule.htm">
<area shape="rect" coords="229,0,291,17" href="/html/sitemap.htm">
<area shape="rect" coords="291,0,365,17" href="mailto:--------@naver.com">
</map>