Javascript - 스크롤링 이벤트 발생시 스크롤 위치 상단으로 고정
목록  
제 목 스크롤링 이벤트 발생시 스크롤 위치 상단으로 고정
작성자 박세청 작성일 2009/09/16 15:52


<body onscroll="scrolltop();" >

 

<SCRIPT type="text/javascript" language="Javascript">
<!--

// You need to set 'stop_scroll = true' to disable scroll completely
// You can also set to true using a function to disable on an event

var stop_scroll = true;
function scrolltop(){
    if(stop_scroll ==true){
        scroll(0,0) ;
    }
}

문제점은 화면이 아래로 움직였다가 위로 스크롤링된다.





손님  For additional information or to get quotes for cheap term life insurance please call 1-888-314-4455. life quotes ysugy homeowners insurance >:-) (2009/10/23 05:24)
1
이전글 [펌] 익스플로러7에서 팝업주소표시줄 제거
다음글 [질문]자바스크립트 location 객체을 사용해서 링크 이동을 하는데 새창에 띄우고 싶어요

목록