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

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

<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,303
17년 전 조회 1,272
17년 전 조회 1,386
17년 전 조회 1,161
17년 전 조회 1,205
17년 전 조회 1,246
17년 전 조회 1,317
17년 전 조회 1,338
17년 전 조회 1,358
17년 전 조회 1,314
17년 전 조회 1,637
17년 전 조회 2,966
17년 전 조회 3,364
17년 전 조회 1,454
17년 전 조회 1,550
17년 전 조회 1,360
17년 전 조회 2,117
17년 전 조회 3,033
17년 전 조회 1,381
17년 전 조회 1,370
17년 전 조회 1,372
17년 전 조회 1,232
17년 전 조회 1,425
17년 전 조회 1,485
17년 전 조회 1,293
17년 전 조회 2,579
17년 전 조회 1,323
17년 전 조회 1,587
17년 전 조회 1,467
17년 전 조회 1,775
17년 전 조회 1,791
17년 전 조회 1,812
17년 전 조회 1,865
17년 전 조회 1,525
17년 전 조회 1,609
17년 전 조회 1,520
17년 전 조회 1,858
17년 전 조회 1,766
17년 전 조회 1,564
17년 전 조회 1,745
17년 전 조회 1,408
17년 전 조회 1,641
17년 전 조회 1,959
17년 전 조회 2,793
17년 전 조회 2,000
17년 전 조회 1,406
17년 전 조회 1,962
17년 전 조회 2,417
17년 전 조회 1,576
17년 전 조회 2,332
17년 전 조회 1,761
17년 전 조회 1,465
17년 전 조회 1,324
17년 전 조회 1,998
17년 전 조회 2,894
17년 전 조회 2,510
17년 전 조회 1,533
17년 전 조회 2,881
17년 전 조회 2,416
17년 전 조회 2,763
17년 전 조회 2,779
17년 전 조회 2,555
17년 전 조회 2,374
17년 전 조회 1,725
17년 전 조회 2,466
17년 전 조회 3,958
17년 전 조회 1,834
17년 전 조회 3,918
17년 전 조회 1,850
17년 전 조회 1,741
17년 전 조회 2,078
17년 전 조회 2,478
17년 전 조회 1,435
17년 전 조회 1,782
17년 전 조회 2,342
17년 전 조회 1,816
17년 전 조회 1,763
17년 전 조회 1,548
17년 전 조회 1,395
17년 전 조회 1,349
17년 전 조회 1,161
17년 전 조회 1,156
17년 전 조회 1,181
17년 전 조회 1,186
17년 전 조회 1,608
17년 전 조회 1,685
17년 전 조회 1,824
17년 전 조회 2,957
17년 전 조회 2,101
17년 전 조회 1,773
17년 전 조회 2,110
17년 전 조회 1,823
17년 전 조회 3,360
17년 전 조회 1,537
17년 전 조회 1,665
17년 전 조회 1,379
17년 전 조회 2,192
17년 전 조회 3,137
17년 전 조회 2,279
17년 전 조회 1,737
🐛 버그신고