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

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

<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,325
17년 전 조회 1,302
17년 전 조회 1,408
17년 전 조회 1,188
17년 전 조회 1,232
17년 전 조회 1,271
17년 전 조회 1,338
17년 전 조회 1,356
17년 전 조회 1,381
17년 전 조회 1,339
17년 전 조회 1,664
17년 전 조회 2,985
17년 전 조회 3,385
17년 전 조회 1,475
17년 전 조회 1,574
17년 전 조회 1,383
17년 전 조회 2,136
17년 전 조회 3,057
17년 전 조회 1,401
17년 전 조회 1,393
17년 전 조회 1,391
17년 전 조회 1,258
17년 전 조회 1,447
17년 전 조회 1,502
17년 전 조회 1,321
17년 전 조회 2,594
17년 전 조회 1,348
17년 전 조회 1,609
17년 전 조회 1,488
17년 전 조회 1,797
17년 전 조회 1,809
17년 전 조회 1,827
17년 전 조회 1,887
17년 전 조회 1,552
17년 전 조회 1,628
17년 전 조회 1,536
17년 전 조회 1,882
17년 전 조회 1,790
17년 전 조회 1,589
17년 전 조회 1,774
17년 전 조회 1,426
17년 전 조회 1,667
17년 전 조회 1,980
17년 전 조회 2,814
17년 전 조회 2,022
17년 전 조회 1,428
17년 전 조회 1,982
17년 전 조회 2,439
17년 전 조회 1,594
17년 전 조회 2,354
17년 전 조회 1,781
17년 전 조회 1,492
17년 전 조회 1,345
17년 전 조회 2,013
17년 전 조회 2,915
17년 전 조회 2,535
17년 전 조회 1,548
17년 전 조회 2,901
17년 전 조회 2,432
17년 전 조회 2,786
17년 전 조회 2,799
17년 전 조회 2,573
17년 전 조회 2,390
17년 전 조회 1,744
17년 전 조회 2,483
17년 전 조회 3,977
17년 전 조회 1,848
17년 전 조회 3,944
17년 전 조회 1,866
17년 전 조회 1,761
17년 전 조회 2,099
17년 전 조회 2,499
17년 전 조회 1,459
17년 전 조회 1,799
17년 전 조회 2,364
17년 전 조회 1,841
17년 전 조회 1,776
17년 전 조회 1,568
17년 전 조회 1,414
17년 전 조회 1,370
17년 전 조회 1,180
17년 전 조회 1,175
17년 전 조회 1,197
17년 전 조회 1,208
17년 전 조회 1,621
17년 전 조회 1,703
17년 전 조회 1,841
17년 전 조회 2,978
17년 전 조회 2,122
17년 전 조회 1,792
17년 전 조회 2,129
17년 전 조회 1,845
17년 전 조회 3,376
17년 전 조회 1,557
17년 전 조회 1,677
17년 전 조회 1,396
17년 전 조회 2,210
17년 전 조회 3,152
17년 전 조회 2,295
17년 전 조회 1,753