우측 퀵메뉴가 컴퓨터 윈도우에 따라 다른 위치에 있어 질문입니다.
고수님들 알려 주시길 부탁합니다.
우측 퀵메뉴가 컴퓨터 윈도우에 따라 다른 위치에 있고...위 아래로 따라 다니지 않고..뭐가 문제인지 알수가 없어서 도움을 청합니다.
아래 소스는 scroll파일입니다.
<SCRIPT LANGUAGE="JavaScript">
function CheckUIElements() {
var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
var wndWidth = parseInt(document.body.clientWidth);
yMenu1From = parseInt (qLayer.style.top, 10);
yMenu1To = document.body.scrollTop + 140; // 위쪽 위치
timeoutNextCheck = 500;
if ( yMenu1From != yMenu1To ) {
yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
if ( yMenu1To < yMenu1From )
yOffset = -yOffset;
qLayer.style.top = parseInt (qLayer.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
qLayer.style.left = (document.body.clientWidth/2)+500; //중심으로 부터의 수평거리
setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function MovePosition() {
var wndWidth = parseInt(document.body.clientWidth);
// 페에지 로딩시 포지션
qLayer.style.top = 170;
qLayer.style.left = (document.body.clientWidth/2)+500; //중심으로 부터의 수평거리
qLayer.style.visibility = "visible";
// initializing UI update timer
CheckUIElements();
return true;
}
</SCRIPT>
<!---- 레이어디자인부분 ------>
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
<div style="position:absolute;top:170px;left:expression( (document.body.clientWidth/2)+475);z-index:1;" id="qLayer" name="qLayer">
<table width="90" border='0' cellspacing='0' cellpadding='0'>
<tr>
</td>
</tr>
<tr><td width='90' height='5' align='center'></td></tr>
<tr><td align='center'> <script src="<a href="http://ggdaelimapt.co.kr/img/quick_01.js">" target="_blank" rel="noopener noreferrer">http://ggdaelimapt.co.kr/img/quick_01.js"></a>
</script></td></tr>
<tr><td width='72' height='5' align='center'></td></tr>
</table>
</div>
<script language='JavaScript'>MovePosition();</script>
우측 퀵메뉴가 컴퓨터 윈도우에 따라 다른 위치에 있고...위 아래로 따라 다니지 않고..뭐가 문제인지 알수가 없어서 도움을 청합니다.
아래 소스는 scroll파일입니다.
<SCRIPT LANGUAGE="JavaScript">
function CheckUIElements() {
var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
var wndWidth = parseInt(document.body.clientWidth);
yMenu1From = parseInt (qLayer.style.top, 10);
yMenu1To = document.body.scrollTop + 140; // 위쪽 위치
timeoutNextCheck = 500;
if ( yMenu1From != yMenu1To ) {
yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
if ( yMenu1To < yMenu1From )
yOffset = -yOffset;
qLayer.style.top = parseInt (qLayer.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
qLayer.style.left = (document.body.clientWidth/2)+500; //중심으로 부터의 수평거리
setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function MovePosition() {
var wndWidth = parseInt(document.body.clientWidth);
// 페에지 로딩시 포지션
qLayer.style.top = 170;
qLayer.style.left = (document.body.clientWidth/2)+500; //중심으로 부터의 수평거리
qLayer.style.visibility = "visible";
// initializing UI update timer
CheckUIElements();
return true;
}
</SCRIPT>
<!---- 레이어디자인부분 ------>
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
<div style="position:absolute;top:170px;left:expression( (document.body.clientWidth/2)+475);z-index:1;" id="qLayer" name="qLayer">
<table width="90" border='0' cellspacing='0' cellpadding='0'>
<tr>
</td>
</tr>
<tr><td width='90' height='5' align='center'></td></tr>
<tr><td align='center'> <script src="<a href="http://ggdaelimapt.co.kr/img/quick_01.js">" target="_blank" rel="noopener noreferrer">http://ggdaelimapt.co.kr/img/quick_01.js"></a>
</script></td></tr>
<tr><td width='72' height='5' align='center'></td></tr>
</table>
</div>
<script language='JavaScript'>MovePosition();</script>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
9년 전
오래된 답변입니다 재질문은 상단 Q & A 통합되었으므로 다시 질문을 하시기 바랍니다~
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
채택
채택
답변대기
채택
답변대기
답변대기
채택
채택
답변대기
답변대기
채택
채택
답변대기
채택
답변대기
채택
답변대기
채택