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

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

<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,444
17년 전 조회 1,429
17년 전 조회 1,519
17년 전 조회 1,310
17년 전 조회 1,352
17년 전 조회 1,389
17년 전 조회 1,461
17년 전 조회 1,467
17년 전 조회 1,504
17년 전 조회 1,460
17년 전 조회 1,790
17년 전 조회 3,108
17년 전 조회 3,511
17년 전 조회 1,603
17년 전 조회 1,700
17년 전 조회 1,505
17년 전 조회 2,274
17년 전 조회 3,192
17년 전 조회 1,536
17년 전 조회 1,495
17년 전 조회 1,519
17년 전 조회 1,397
17년 전 조회 1,590
17년 전 조회 1,642
17년 전 조회 1,447
17년 전 조회 2,716
17년 전 조회 1,475
17년 전 조회 1,729
17년 전 조회 1,617
17년 전 조회 1,923
17년 전 조회 1,937
17년 전 조회 1,956
17년 전 조회 2,015
17년 전 조회 1,680
17년 전 조회 1,737
17년 전 조회 1,665
17년 전 조회 2,002
17년 전 조회 1,925
17년 전 조회 1,701
17년 전 조회 1,904
17년 전 조회 1,553
17년 전 조회 1,790
17년 전 조회 2,111
17년 전 조회 2,948
17년 전 조회 2,159
17년 전 조회 1,548
17년 전 조회 2,121
17년 전 조회 2,565
17년 전 조회 1,711
17년 전 조회 2,456
17년 전 조회 1,914
17년 전 조회 1,621
17년 전 조회 1,458
17년 전 조회 2,131
17년 전 조회 3,054
17년 전 조회 2,662
17년 전 조회 1,676
17년 전 조회 3,059
17년 전 조회 2,574
17년 전 조회 2,914
17년 전 조회 2,931
17년 전 조회 2,710
17년 전 조회 2,526
17년 전 조회 1,884
17년 전 조회 2,618
17년 전 조회 4,134
17년 전 조회 1,973
17년 전 조회 4,068
17년 전 조회 1,992
17년 전 조회 1,880
17년 전 조회 2,235
17년 전 조회 2,653
17년 전 조회 1,590
17년 전 조회 1,945
17년 전 조회 2,505
17년 전 조회 1,991
17년 전 조회 1,934
17년 전 조회 1,718
17년 전 조회 1,555
17년 전 조회 1,517
17년 전 조회 1,329
17년 전 조회 1,321
17년 전 조회 1,346
17년 전 조회 1,356
17년 전 조회 1,747
17년 전 조회 1,855
17년 전 조회 1,992
17년 전 조회 3,119
17년 전 조회 2,267
17년 전 조회 1,926
17년 전 조회 2,272
17년 전 조회 1,988
17년 전 조회 3,525
17년 전 조회 1,697
17년 전 조회 1,820
17년 전 조회 1,517
17년 전 조회 2,356
17년 전 조회 3,292
17년 전 조회 2,439
17년 전 조회 1,893