퀵메뉴 무한 스크롤 안되게 하는 법좀 가르쳐주세요~~

그누 스킨중에 홈페이지 가운데 정렬에도 퀵메뉴 잡아주는 소스가 있길레 사용 하려하는데요..
이소스를 사용해보니 약간의 문제(?)가 있어서요...
위치도 거의 딱 잡아주는데 문제는 처음 시작위치와 스크롤될때의 퀵메뉴위치를 잡아주는게 없어서인지 낮은 해상도에서는 홈페이지 아래로 무한 스크롤이 가능하더라고요....
무한 스크롤 안되게 하는 법좀 가르쳐주세요~~

<SCRIPT language=javascript>
//사용함수
function ResetRemocon(){

var DivMovingLayerYFrom, DivMovingLayerYTo, OffsetY, ResetTime;

ResetTime = 50;

if (DivMovingLayerRule == 'center'){
//해상도 기준, 가운데 에서 x만큼 떨어진 곳에 위치

if (navigator.userAgent.toLowerCase().indexOf("gecko") > -1) {

if (document.body.clientWidth < ContentsWidth + 10) {

DivMovingLayer.style.left = parseInt (ContentsWidth / 2, 10) + DivMovingLayerX + 10 + "px";
}
else {

DivMovingLayer.style.left = (DivMovingLayerX + (document.body.clientWidth / 2)) + "px";
}
}
else{

if (document.body.clientWidth < ContentsWidth) {

DivMovingLayer.style.left = parseInt (ContentsWidth / 2, 10) + DivMovingLayerX + "px";
}
else {

DivMovingLayer.style.left = (DivMovingLayerX + (document.body.clientWidth / 2)) + "px";
}
}
}
else if (DivMovingLayerRule == 'left'){
//해상도와 무관, 왼쪽 에서 x만큼 떨어진 곳에 위치

DivMovingLayer.style.left = (DivMovingLayerX) + "px";
}

DivMovingLayerYFrom = parseInt (DivMovingLayer.style.top, 10);
DivMovingLayerYTo = DivMovingLayerY + document.body.scrollTop + 1;

if ( DivMovingLayerYFrom != DivMovingLayerYTo ) {

OffsetY = Math.ceil( Math.abs( DivMovingLayerYTo - DivMovingLayerYFrom ) / 20 );

if ( DivMovingLayerYTo < DivMovingLayerYFrom )
OffsetY = -OffsetY;

DivMovingLayer.style.top = (DivMovingLayerYFrom + OffsetY) + "px";

ResetTime = 10;
}

setTimeout ("ResetRemocon()", ResetTime);
}

function SetRemocon() {

DivMovingLayer.style.display = "block";

DivMovingLayer.style.top = (DivMovingLayerY + document.body.scrollTop + 1) + "px";

ResetRemocon();
return true;
}

function NoneRemocon() {

DivMovingLayer.style.display = "none";
selectBoxVisible();
}

//레이어 디자인부분
document.write("<div id=DivMovingLayer style='position:absolute;left:0px;top:360px; z-index:8;display:none;'>");
document.write("<tr><td align='center'><img src='/2008/images/sub/quick.gif' border='0'></td></tr>");
document.write("</table>");
document.write("</div>");

if (typeof document.body == "undefined")
document.body = document.getElementsByTagName("BODY")[0];

var DivMovingLayer = document.getElementById("DivMovingLayer");

//환경설정
var ContentsWidth = 955;//움직이는 레이어를 제외한 콘텐츠 너비, 가운데 정렬에만 해당, 전체 테이블중 제일큰 테이블 너비
var DivMovingLayerX =387;//레이어가 위치할 레프트 값
var DivMovingLayerY = 360;//레어가 위치할 탑 값
var DivMovingLayerRule = 'center';//center -->가운데 정렬을 기준으로 x만큼, left --> 레프트 정렬을 기준으로 x만큼

//레이어 보이기
//SetRemocon();
window.onload=SetRemocon;

</SCRIPT>
|

댓글 1개

아이프레임 스크롤 없게 맹글어서 속에 넣어 버리세요..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 1,292
17년 전 조회 1,259
17년 전 조회 1,376
17년 전 조회 1,151
17년 전 조회 1,201
17년 전 조회 1,235
17년 전 조회 1,305
17년 전 조회 1,330
17년 전 조회 1,347
17년 전 조회 1,307
17년 전 조회 1,627
17년 전 조회 2,955
17년 전 조회 3,353
17년 전 조회 1,444
17년 전 조회 1,541
17년 전 조회 1,350
17년 전 조회 2,110
17년 전 조회 3,027
17년 전 조회 1,371
17년 전 조회 1,360
17년 전 조회 1,361
17년 전 조회 1,226
17년 전 조회 1,416
17년 전 조회 1,474
17년 전 조회 1,282
17년 전 조회 2,568
17년 전 조회 1,313
17년 전 조회 1,577
17년 전 조회 1,458
17년 전 조회 1,767
17년 전 조회 1,783
17년 전 조회 1,801
17년 전 조회 1,856
17년 전 조회 1,515
17년 전 조회 1,601
17년 전 조회 1,511
17년 전 조회 1,854
17년 전 조회 1,757
17년 전 조회 1,554
17년 전 조회 1,736
17년 전 조회 1,401
17년 전 조회 1,630
17년 전 조회 1,949
17년 전 조회 2,781
17년 전 조회 1,987
17년 전 조회 1,396
17년 전 조회 1,950
17년 전 조회 2,407
17년 전 조회 1,567
17년 전 조회 2,322
17년 전 조회 1,753
17년 전 조회 1,456
17년 전 조회 1,317
17년 전 조회 1,990
17년 전 조회 2,885
17년 전 조회 2,498
17년 전 조회 1,524
17년 전 조회 2,873
17년 전 조회 2,407
17년 전 조회 2,754
17년 전 조회 2,768
17년 전 조회 2,546
17년 전 조회 2,366
17년 전 조회 1,717
17년 전 조회 2,454
17년 전 조회 3,945
17년 전 조회 1,824
17년 전 조회 3,909
17년 전 조회 1,840
17년 전 조회 1,728
17년 전 조회 2,068
17년 전 조회 2,473
17년 전 조회 1,426
17년 전 조회 1,772
17년 전 조회 2,334
17년 전 조회 1,803
17년 전 조회 1,756
17년 전 조회 1,539
17년 전 조회 1,387
17년 전 조회 1,342
17년 전 조회 1,156
17년 전 조회 1,148
17년 전 조회 1,173
17년 전 조회 1,179
17년 전 조회 1,598
17년 전 조회 1,674
17년 전 조회 1,816
17년 전 조회 2,951
17년 전 조회 2,090
17년 전 조회 1,765
17년 전 조회 2,101
17년 전 조회 1,813
17년 전 조회 3,349
17년 전 조회 1,527
17년 전 조회 1,655
17년 전 조회 1,367
17년 전 조회 2,184
17년 전 조회 3,130
17년 전 조회 2,271
17년 전 조회 1,729
🐛 버그신고