우측 퀵메뉴가 컴퓨터 윈도우에 따라 다른 위치에 있어 질문입니다.

· 2013-07-19 (금) 11:45:36 · 440
고수님들 알려 주시길 부탁합니다.

우측 퀵메뉴가 컴퓨터 윈도우에 따라 다른 위치에 있고...위 아래로 따라 다니지 않고..뭐가 문제인지 알수가 없어서 도움을 청합니다.

아래 소스는 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="http://ggdaelimapt.co.kr/img/quick_01.js">
</script></td></tr>
<tr><td width='72' height='5' align='center'></td></tr>

</table>
</div>
<script language='JavaScript'>MovePosition();</script>
|
댓글을 작성하시려면 로그인이 필요합니다.

그누5 질답

1,039건

그누보드5 버전에 대한 질문을 할 수 있습니다.쪽지나 메일로 해결해 주겠다는 답변은 정상적인 답변으로 보기 어려우므로 신고해 주시기 바랍니다.

+
제목 글쓴이 날짜 조회
13-07-26 조회 365
13-07-25 조회 523
13-07-25 조회 378
13-07-25 조회 518
13-07-24 조회 426
13-07-24 조회 528
13-07-24 조회 453
13-07-23 조회 367
13-07-23 조회 460
13-07-23 조회 407
13-07-23 조회 418
13-07-23 조회 510
13-07-22 조회 674
13-07-22 조회 577
13-07-20 조회 863
13-07-19 조회 581
13-07-19 조회 539
13-07-19 조회 441
13-07-19 조회 372
13-07-19 조회 1,308