스크롤 바 위치 알아내기

object.scroll [ = sScroll ]  //스크롤을 사용할 수 있게,없게

sScroll String that specifies or receives one of the following values:
yes Default. Scroll bars are turned on.
no Scroll bars are turned off.
auto Scroll bars are shown when the page content exceeds the client area.

The property is read/write. The property has a default value of yes.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.


[ iWidth = ] object.scrollWidth  //객채의 스크롤 너비 , 읽기전용

iWidth Pointer to a nonnegative long integer that specifies the width, in pixels.

The property is read-only. The property has no default value.


[ iHeight = ] object.scrollHeight  //객채의 스크롤 높이, 읽기전용

iHeight Pointer to a nonnegative long integer that specifies the height, in pixels.

The property is read-only. The property has no default value.


object.scrollTop [ = iDistance ] //스크롤바 상당에서의 위치

iDistance Integer that specifies or receives the distance, in pixels.

The property is read/write. The property has a default value of 0.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

 

ex : window.document.body.scrollTop;

 


object.scrollLeft [ = iDistance ]  //스크롤바 왼쪽에서의 위치

iDistance Integer that specifies or receives the distance, in pixels.

The property is read/write. The property has a default value of 0.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.


object.scrolling [ = sScrolling ]  //스크롤을 사용할 수 있게,없게

sScrolling String that specifies or receives one of the following values.
auto Default. Browser determines whether scroll bars are necessary.
no Frame cannot be scrolled.
yes Frame can be scrolled.


댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
제목 작성자 날짜
공대여자
공대여자
mins01
mins
mins
mins
mins
mins
mins
mins
mins
mins
mins
mins
mins
mins
mins
mins