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

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

<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,520
17년 전 조회 1,505
17년 전 조회 1,599
17년 전 조회 1,384
17년 전 조회 1,432
17년 전 조회 1,465
17년 전 조회 1,539
17년 전 조회 1,545
17년 전 조회 1,588
17년 전 조회 1,538
17년 전 조회 1,870
17년 전 조회 3,185
17년 전 조회 3,595
17년 전 조회 1,686
17년 전 조회 1,780
17년 전 조회 1,576
17년 전 조회 2,341
17년 전 조회 3,273
17년 전 조회 1,607
17년 전 조회 1,570
17년 전 조회 1,604
17년 전 조회 1,472
17년 전 조회 1,665
17년 전 조회 1,718
17년 전 조회 1,527
17년 전 조회 2,799
17년 전 조회 1,550
17년 전 조회 1,806
17년 전 조회 1,700
17년 전 조회 2,015
17년 전 조회 2,017
17년 전 조회 2,020
17년 전 조회 2,086
17년 전 조회 1,760
17년 전 조회 1,816
17년 전 조회 1,745
17년 전 조회 2,086
17년 전 조회 2,009
17년 전 조회 1,784
17년 전 조회 1,985
17년 전 조회 1,634
17년 전 조회 1,866
17년 전 조회 2,199
17년 전 조회 3,028
17년 전 조회 2,240
17년 전 조회 1,620
17년 전 조회 2,203
17년 전 조회 2,643
17년 전 조회 1,795
17년 전 조회 2,540
17년 전 조회 2,008
17년 전 조회 1,707
17년 전 조회 1,530
17년 전 조회 2,214
17년 전 조회 3,145
17년 전 조회 2,747
17년 전 조회 1,748
17년 전 조회 3,140
17년 전 조회 2,659
17년 전 조회 2,998
17년 전 조회 3,010
17년 전 조회 2,798
17년 전 조회 2,607
17년 전 조회 1,967
17년 전 조회 2,695
17년 전 조회 4,223
17년 전 조회 2,060
17년 전 조회 4,154
17년 전 조회 2,064
17년 전 조회 1,960
17년 전 조회 2,318
17년 전 조회 2,734
17년 전 조회 1,673
17년 전 조회 2,026
17년 전 조회 2,585
17년 전 조회 2,071
17년 전 조회 2,015
17년 전 조회 1,803
17년 전 조회 1,631
17년 전 조회 1,615
17년 전 조회 1,406
17년 전 조회 1,402
17년 전 조회 1,420
17년 전 조회 1,429
17년 전 조회 1,815
17년 전 조회 1,936
18년 전 조회 2,072
18년 전 조회 3,200
18년 전 조회 2,352
18년 전 조회 2,007
18년 전 조회 2,355
18년 전 조회 2,081
18년 전 조회 3,610
18년 전 조회 1,773
18년 전 조회 1,890
18년 전 조회 1,591
18년 전 조회 2,446
18년 전 조회 3,376
18년 전 조회 2,514
18년 전 조회 1,961