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

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

<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,297
17년 전 조회 1,267
17년 전 조회 1,380
17년 전 조회 1,155
17년 전 조회 1,203
17년 전 조회 1,240
17년 전 조회 1,311
17년 전 조회 1,335
17년 전 조회 1,354
17년 전 조회 1,311
17년 전 조회 1,632
17년 전 조회 2,959
17년 전 조회 3,357
17년 전 조회 1,448
17년 전 조회 1,547
17년 전 조회 1,353
17년 전 조회 2,112
17년 전 조회 3,030
17년 전 조회 1,376
17년 전 조회 1,364
17년 전 조회 1,368
17년 전 조회 1,229
17년 전 조회 1,421
17년 전 조회 1,479
17년 전 조회 1,287
17년 전 조회 2,574
17년 전 조회 1,317
17년 전 조회 1,583
17년 전 조회 1,461
17년 전 조회 1,770
17년 전 조회 1,785
17년 전 조회 1,805
17년 전 조회 1,860
17년 전 조회 1,520
17년 전 조회 1,605
17년 전 조회 1,516
17년 전 조회 1,856
17년 전 조회 1,759
17년 전 조회 1,559
17년 전 조회 1,740
17년 전 조회 1,406
17년 전 조회 1,636
17년 전 조회 1,955
17년 전 조회 2,784
17년 전 조회 1,992
17년 전 조회 1,399
17년 전 조회 1,955
17년 전 조회 2,410
17년 전 조회 1,568
17년 전 조회 2,325
17년 전 조회 1,756
17년 전 조회 1,461
17년 전 조회 1,319
17년 전 조회 1,992
17년 전 조회 2,888
17년 전 조회 2,503
17년 전 조회 1,531
17년 전 조회 2,877
17년 전 조회 2,410
17년 전 조회 2,759
17년 전 조회 2,771
17년 전 조회 2,550
17년 전 조회 2,370
17년 전 조회 1,721
17년 전 조회 2,458
17년 전 조회 3,952
17년 전 조회 1,829
17년 전 조회 3,914
17년 전 조회 1,846
17년 전 조회 1,735
17년 전 조회 2,072
17년 전 조회 2,476
17년 전 조회 1,431
17년 전 조회 1,777
17년 전 조회 2,338
17년 전 조회 1,809
17년 전 조회 1,759
17년 전 조회 1,545
17년 전 조회 1,393
17년 전 조회 1,346
17년 전 조회 1,158
17년 전 조회 1,152
17년 전 조회 1,178
17년 전 조회 1,183
17년 전 조회 1,603
17년 전 조회 1,681
17년 전 조회 1,818
17년 전 조회 2,954
17년 전 조회 2,094
17년 전 조회 1,770
17년 전 조회 2,106
17년 전 조회 1,819
17년 전 조회 3,354
17년 전 조회 1,533
17년 전 조회 1,659
17년 전 조회 1,373
17년 전 조회 2,188
17년 전 조회 3,132
17년 전 조회 2,275
17년 전 조회 1,731
🐛 버그신고