화면 » Api

scroll

Description

화면을 원하는 위치로 스크롤할 수 있는 API이다.

Parameters

Parameters Type Description
nXAmount short 이동할 x 좌표
nYAmount short 이동할 y 좌표

Return Value

Type Description
void 없음

Remark

* 화면의 높이가 지정된 사이즈보다 높아서 스크롤이 생길 시에 스크롤의 위치를 지정한다.

Example

function btn_scroll_on_mouseup() { screen.scroll(0, -10); /* 위와 같은 방법으로 스크립트를 작성하면 화면의 스크롤이 현재 내 위치에서 10만큼씩 올라간다 반대로 내려가게 하려면 scroll(0, 10) 이렇게 구현하면 가능하다 */ }

See Also

scrollpospagenext
scrollpospageprev
scrollpostofirst
scrollpostolast

Viewer Ver.

9.1.1.1

Update Date

20110415