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

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

<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,579
17년 전 조회 1,569
17년 전 조회 1,658
17년 전 조회 1,456
17년 전 조회 1,495
17년 전 조회 1,528
17년 전 조회 1,615
17년 전 조회 1,615
17년 전 조회 1,663
17년 전 조회 1,588
17년 전 조회 1,938
17년 전 조회 3,256
17년 전 조회 3,659
17년 전 조회 1,754
17년 전 조회 1,847
17년 전 조회 1,638
17년 전 조회 2,406
17년 전 조회 3,337
17년 전 조회 1,670
17년 전 조회 1,652
17년 전 조회 1,686
17년 전 조회 1,540
17년 전 조회 1,727
17년 전 조회 1,786
17년 전 조회 1,603
17년 전 조회 2,868
17년 전 조회 1,623
17년 전 조회 1,881
17년 전 조회 1,770
17년 전 조회 2,092
17년 전 조회 2,093
17년 전 조회 2,101
17년 전 조회 2,170
17년 전 조회 1,847
17년 전 조회 1,896
17년 전 조회 1,815
17년 전 조회 2,154
17년 전 조회 2,084
17년 전 조회 1,864
17년 전 조회 2,064
17년 전 조회 1,712
17년 전 조회 1,946
17년 전 조회 2,272
17년 전 조회 3,088
17년 전 조회 2,312
17년 전 조회 1,699
17년 전 조회 2,282
17년 전 조회 2,719
17년 전 조회 1,862
17년 전 조회 2,625
17년 전 조회 2,090
17년 전 조회 1,786
17년 전 조회 1,616
17년 전 조회 2,290
17년 전 조회 3,228
17년 전 조회 2,817
17년 전 조회 1,832
17년 전 조회 3,222
17년 전 조회 2,736
17년 전 조회 3,085
17년 전 조회 3,082
17년 전 조회 2,873
17년 전 조회 2,688
17년 전 조회 2,049
17년 전 조회 2,778
17년 전 조회 4,302
17년 전 조회 2,141
18년 전 조회 4,244
18년 전 조회 2,148
18년 전 조회 2,043
18년 전 조회 2,405
18년 전 조회 2,807
18년 전 조회 1,762
18년 전 조회 2,113
18년 전 조회 2,666
18년 전 조회 2,158
18년 전 조회 2,095
18년 전 조회 1,890
18년 전 조회 1,716
18년 전 조회 1,695
18년 전 조회 1,482
18년 전 조회 1,500
18년 전 조회 1,502
18년 전 조회 1,508
18년 전 조회 1,912
18년 전 조회 2,028
18년 전 조회 2,151
18년 전 조회 3,297
18년 전 조회 2,445
18년 전 조회 2,094
18년 전 조회 2,449
18년 전 조회 2,173
18년 전 조회 3,703
18년 전 조회 1,855
18년 전 조회 1,988
18년 전 조회 1,693
18년 전 조회 2,543
18년 전 조회 3,463
18년 전 조회 2,589
18년 전 조회 2,061