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

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
우측 퀵메뉴가 컴퓨터 윈도우에 따라 다른 위치에 있어 질문입니다.

QA

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

본문

고수님들 알려 주시길 부탁합니다.

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

아래 소스는 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>

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 124,540
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT