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

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

<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,518
17년 전 조회 1,504
17년 전 조회 1,597
17년 전 조회 1,379
17년 전 조회 1,429
17년 전 조회 1,465
17년 전 조회 1,535
17년 전 조회 1,543
17년 전 조회 1,586
17년 전 조회 1,536
17년 전 조회 1,869
17년 전 조회 3,184
17년 전 조회 3,594
17년 전 조회 1,685
17년 전 조회 1,778
17년 전 조회 1,574
17년 전 조회 2,339
17년 전 조회 3,271
17년 전 조회 1,606
17년 전 조회 1,568
17년 전 조회 1,603
17년 전 조회 1,469
17년 전 조회 1,664
17년 전 조회 1,715
17년 전 조회 1,525
17년 전 조회 2,798
17년 전 조회 1,547
17년 전 조회 1,804
17년 전 조회 1,699
17년 전 조회 2,011
17년 전 조회 2,016
17년 전 조회 2,017
17년 전 조회 2,086
17년 전 조회 1,759
17년 전 조회 1,811
17년 전 조회 1,743
17년 전 조회 2,083
17년 전 조회 2,005
17년 전 조회 1,783
17년 전 조회 1,980
17년 전 조회 1,632
17년 전 조회 1,865
17년 전 조회 2,192
17년 전 조회 3,024
17년 전 조회 2,239
17년 전 조회 1,616
17년 전 조회 2,201
17년 전 조회 2,642
17년 전 조회 1,793
17년 전 조회 2,533
17년 전 조회 2,008
17년 전 조회 1,704
17년 전 조회 1,528
17년 전 조회 2,208
17년 전 조회 3,140
17년 전 조회 2,744
17년 전 조회 1,744
17년 전 조회 3,139
17년 전 조회 2,655
17년 전 조회 2,996
17년 전 조회 3,008
17년 전 조회 2,791
17년 전 조회 2,606
17년 전 조회 1,964
17년 전 조회 2,692
17년 전 조회 4,221
17년 전 조회 2,057
17년 전 조회 4,146
17년 전 조회 2,064
17년 전 조회 1,959
17년 전 조회 2,317
17년 전 조회 2,733
17년 전 조회 1,670
17년 전 조회 2,023
17년 전 조회 2,582
17년 전 조회 2,071
17년 전 조회 2,013
17년 전 조회 1,803
17년 전 조회 1,628
17년 전 조회 1,612
17년 전 조회 1,406
17년 전 조회 1,398
17년 전 조회 1,419
17년 전 조회 1,427
17년 전 조회 1,813
17년 전 조회 1,934
18년 전 조회 2,069
18년 전 조회 3,197
18년 전 조회 2,349
18년 전 조회 2,004
18년 전 조회 2,353
18년 전 조회 2,080
18년 전 조회 3,605
18년 전 조회 1,771
18년 전 조회 1,887
18년 전 조회 1,589
18년 전 조회 2,443
18년 전 조회 3,375
18년 전 조회 2,514
18년 전 조회 1,959