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

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

<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,316
17년 전 조회 1,289
17년 전 조회 1,401
17년 전 조회 1,175
17년 전 조회 1,221
17년 전 조회 1,260
17년 전 조회 1,330
17년 전 조회 1,349
17년 전 조회 1,374
17년 전 조회 1,333
17년 전 조회 1,652
17년 전 조회 2,977
17년 전 조회 3,378
17년 전 조회 1,470
17년 전 조회 1,568
17년 전 조회 1,378
17년 전 조회 2,131
17년 전 조회 3,052
17년 전 조회 1,396
17년 전 조회 1,385
17년 전 조회 1,385
17년 전 조회 1,251
17년 전 조회 1,441
17년 전 조회 1,500
17년 전 조회 1,312
17년 전 조회 2,591
17년 전 조회 1,342
17년 전 조회 1,602
17년 전 조회 1,483
17년 전 조회 1,789
17년 전 조회 1,806
17년 전 조회 1,823
17년 전 조회 1,880
17년 전 조회 1,540
17년 전 조회 1,618
17년 전 조회 1,533
17년 전 조회 1,871
17년 전 조회 1,779
17년 전 조회 1,579
17년 전 조회 1,761
17년 전 조회 1,421
17년 전 조회 1,655
17년 전 조회 1,972
17년 전 조회 2,806
17년 전 조회 2,015
17년 전 조회 1,418
17년 전 조회 1,974
17년 전 조회 2,432
17년 전 조회 1,590
17년 전 조회 2,343
17년 전 조회 1,774
17년 전 조회 1,485
17년 전 조회 1,336
17년 전 조회 2,009
17년 전 조회 2,909
17년 전 조회 2,527
17년 전 조회 1,542
17년 전 조회 2,897
17년 전 조회 2,430
17년 전 조회 2,780
17년 전 조회 2,794
17년 전 조회 2,565
17년 전 조회 2,387
17년 전 조회 1,736
17년 전 조회 2,475
17년 전 조회 3,970
17년 전 조회 1,846
17년 전 조회 3,933
17년 전 조회 1,860
17년 전 조회 1,754
17년 전 조회 2,093
17년 전 조회 2,492
17년 전 조회 1,445
17년 전 조회 1,794
17년 전 조회 2,358
17년 전 조회 1,835
17년 전 조회 1,771
17년 전 조회 1,562
17년 전 조회 1,413
17년 전 조회 1,363
17년 전 조회 1,170
17년 전 조회 1,168
17년 전 조회 1,194
17년 전 조회 1,199
17년 전 조회 1,617
17년 전 조회 1,696
17년 전 조회 1,835
17년 전 조회 2,973
17년 전 조회 2,112
17년 전 조회 1,784
17년 전 조회 2,117
17년 전 조회 1,836
17년 전 조회 3,367
17년 전 조회 1,552
17년 전 조회 1,673
17년 전 조회 1,387
17년 전 조회 2,199
17년 전 조회 3,147
17년 전 조회 2,288
17년 전 조회 1,746