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

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

<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,327
17년 전 조회 1,305
17년 전 조회 1,415
17년 전 조회 1,191
17년 전 조회 1,238
17년 전 조회 1,273
17년 전 조회 1,341
17년 전 조회 1,365
17년 전 조회 1,384
17년 전 조회 1,343
17년 전 조회 1,670
17년 전 조회 2,991
17년 전 조회 3,391
17년 전 조회 1,479
17년 전 조회 1,579
17년 전 조회 1,389
17년 전 조회 2,141
17년 전 조회 3,060
17년 전 조회 1,408
17년 전 조회 1,395
17년 전 조회 1,396
17년 전 조회 1,260
17년 전 조회 1,451
17년 전 조회 1,507
17년 전 조회 1,322
17년 전 조회 2,598
17년 전 조회 1,349
17년 전 조회 1,610
17년 전 조회 1,491
17년 전 조회 1,801
17년 전 조회 1,814
17년 전 조회 1,830
17년 전 조회 1,893
17년 전 조회 1,554
17년 전 조회 1,635
17년 전 조회 1,539
17년 전 조회 1,886
17년 전 조회 1,792
17년 전 조회 1,593
17년 전 조회 1,775
17년 전 조회 1,433
17년 전 조회 1,670
17년 전 조회 1,984
17년 전 조회 2,817
17년 전 조회 2,028
17년 전 조회 1,434
17년 전 조회 1,985
17년 전 조회 2,448
17년 전 조회 1,598
17년 전 조회 2,362
17년 전 조회 1,785
17년 전 조회 1,498
17년 전 조회 1,348
17년 전 조회 2,017
17년 전 조회 2,918
17년 전 조회 2,535
17년 전 조회 1,553
17년 전 조회 2,904
17년 전 조회 2,437
17년 전 조회 2,788
17년 전 조회 2,803
17년 전 조회 2,576
17년 전 조회 2,397
17년 전 조회 1,750
17년 전 조회 2,487
17년 전 조회 3,980
17년 전 조회 1,853
17년 전 조회 3,949
17년 전 조회 1,872
17년 전 조회 1,766
17년 전 조회 2,100
17년 전 조회 2,503
17년 전 조회 1,465
17년 전 조회 1,801
17년 전 조회 2,374
17년 전 조회 1,844
17년 전 조회 1,781
17년 전 조회 1,575
17년 전 조회 1,418
17년 전 조회 1,376
17년 전 조회 1,183
17년 전 조회 1,178
17년 전 조회 1,199
17년 전 조회 1,211
17년 전 조회 1,627
17년 전 조회 1,709
17년 전 조회 1,851
17년 전 조회 2,980
17년 전 조회 2,128
17년 전 조회 1,800
17년 전 조회 2,136
17년 전 조회 1,850
17년 전 조회 3,386
17년 전 조회 1,563
17년 전 조회 1,684
17년 전 조회 1,402
17년 전 조회 2,216
17년 전 조회 3,158
17년 전 조회 2,302
17년 전 조회 1,759