½ºÅ©·Ñ¹Ù(scroll-bar) ÄÞÆ÷³ÙÆ®¸¦ Ŭ¸¯ÇÏ´Â °Í°ú °°Àº È¿°ú¸¦ À¯¹ß½ÃŲ´Ù.

Àμö/ÆĶó¸ÞÅÍ
sScrollAction
¼±ÅÃÀûÀÎ ¿ä¼ÒÀ̸ç, ´ÙÀ½ °ªµé°ú °°ÀÌ ¾î¶»°Ô °³Ã¼°¡ ½ºÅ©·ÑÇϴ°¡¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.
scrollbarDown µðÆúÆ®À̸ç, ÁöÁ¤µÈ À§Ä¡¿¡ ¾Æ·¡·Î ½ºÆ®·Ñ¹Ù È­»ì(Down scroll arrow)ÀÌ ÀÖ´Ù.
scrollbarHThumb ÁöÁ¤µÈ À§Ä¡¿¡ ¼öÆò ½ºÅ©·Ñ ¹Ú½º°¡ ÀÖ´Ù.
scrollbarLeft ÁöÁ¤µÈ À§Ä¡¿¡ ¿ÞÂÊÀ¸·Î ½ºÆ®·Ñ¹Ù È­»ì(Left scroll arrow)ÀÌ ÀÖ´Ù.
scrollbarPageDown ÁöÁ¤µÈ À§Ä¡¿¡ ÆäÀÌÁö³»¸² ¹ÙÀÇ ÃàÀÌ ÀÖ´Ù.
scrollbarPageLeft ÁöÁ¤µÈ À§Ä¡¿¡ ÆäÀÌÁö ¿ÞÂÊÀ¸·Î ¹ÙÀÇ ÃàÀÌ ÀÖ´Ù.
scrollbarPageRight ÁöÁ¤µÈ À§Ä¡¿¡ ÆäÀÌÁö ¿À¸¥ÂÊÀ¸·Î ¹ÙÀÇ ÃàÀÌ ÀÖ´Ù.
scrollbarPageUp ÁöÁ¤µÈ À§Ä¡¿¡ ÆäÀÌÁö À§ÂÊÀ¸·Î ¹ÙÀÇ ÃàÀÌ ÀÖ´Ù.
scrollbarRight ÁöÁ¤µÈ À§Ä¡¿¡ ¿À¸¥ÂÊÀ¸·Î ½ºÆ®·Ñ¹Ù È­»ì(Right scroll arrow)ÀÌ ÀÖ´Ù.
scrollbarUp ÁöÁ¤µÈ À§Ä¡¿¡ À§ÂÊÀ¸·Î ½ºÆ®·Ñ¹Ù È­»ì(Up scroll arrow)ÀÌ ÀÖ´Ù.
scrollbarVThumb ÁöÁ¤µÈ À§Ä¡¿¡ ¼öÁ÷ ½ºÅ©·Ñ ¹Ú½º°¡ ÀÖ´Ù.
down scrollbarDownÀ» ÂüÁ¶ÇÑ´Ù.
left scrollbarLeftÀ» ÂüÁ¶ÇÑ´Ù.
pageDown scrollbarPageDownÀ» ÂüÁ¶ÇÑ´Ù.
pageLeft scrollbarPageLeftÀ» ÂüÁ¶ÇÑ´Ù.
pageRight scrollbarPageRightÀ» ÂüÁ¶ÇÑ´Ù.
pageUp scrollbarPageUpÀ» ÂüÁ¶ÇÑ´Ù.
right scrollbarRightÀ» ÂüÁ¶ÇÑ´Ù.
up scrollbarUpÀ» ÂüÁ¶ÇÑ´Ù.
¹Ýȯ°ª

¹Ýȯ°ªÀº ¾ø´Ù.

Ư±â

CSS(Cascading Style Sheets)´Â overflow ½ºÅ¸ÀÏ ¼Ó¼ºÀ» ÅëÇÏ¿© ¸ðµç °³Ã¼¿¡¼­ ½ºÅ©·ÑÀ» Çã¿ëÇÑ´Ù.

¾î¶² ¿¤·¹¸àÆ®ÀÇ ³»¿ëÀÌ º¯°æµÇ¾î ½ºÅ©·Ñ¹Ù°¡ µð½ºÇ÷¹À̵Ǹé, doScroll ¸Þ¼­µå´Â ³»¿ëÀÌ ¾÷µ¥ÀÌÆ®µÇ´Â Áï½Ã ¹Ù¸£°Ô ÀÛ¿ëµÇÁö ¾ÊÀ» ¼ö ÀÖ´Ù.
ÀÌ·± °æ¿ì, ºê¶ó¿ìÀú°¡ ź·ÂÀûÀÎ º¯È­¸¦ ÀνÄÇÏ°í ½ºÅ©·ÑÀÌ Á¦´ë·Î µÇ±â À§ÇÏ¿© setTimeout ¸Þ¼­µå¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.

Àû¿ë
°³Ã¼scriptIE
ÂüÁ¶
componentFromPoint onscroll


doScroll ¸Þ¼­µå¸¦ »ç¿ëÇÏ¿© ´ÜÃ߸¦ Ŭ¸¯ÇÏ¿© ½ºÅ©·Ñ ½ÃŲ´Ù.

<SCRIPT>
function scrollDn(){
  taObj.doScroll('scrollbarDown');
}
function scrollUp(){
  taObj.doScroll('scrollbarUp');
}
function scrollPgDn(){
  taObj.doScroll('scrollbarPageDown');
}
function scrollPgUp(){
  taObj.doScroll('scrollbarPageUp');
}
</SCRIPT>

<BUTTON onclick="scrollDn()">scrollDown</BUTTON>
<BUTTON onclick="scrollUp()">scrollUp</BUTTON>
<BUTTON onclick="scrollPgDn()">scrollPageDown</BUTTON>
<BUTTON onclick="scrollPgUp()">scrollPageUp</BUTTON><BR>

<TEXTAREA id=taObj style="border:solid 1 blue;background:ffd;" cols=40 rows=4>

ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 1)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 2)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 3)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 4)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 5)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 6)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 7)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 8)
ÅؽºÆ®¿¡¸®¾ÆÀÇ ³»¿ëÀÌ ½ºÅ©·ÑµÈ´Ù.(ÁÙ 9)
</TEXTAREA>

timer:

doScroll ¸Þ¼­µå·Î setInterval ¸Þ¼­µå¸¦ ÀÌ¿ëÇÏ¿© 1Ãʸ¶´Ù ½ºÅ©·Ñ ½ÃŲ´Ù.

<SCRIPT>
var iTimer;
document.onload=makeTimer();
function makeTimer(){
  iTimer=setInterval('scrollIt()',1000);
}
function scrollIt(){
timer.innerText=new Date().toLocaleString();
  scrollObj.doScroll('down');
}
</SCRIPT>
timer: <SPAN id=timer></SPAN>
<DIV id=scrollObj style="border:solid 1 blue;width:400px;height:100px;overflow:scroll;padding-left:1em">
<SCRIPT>
for (i=1;i<20;i++){
  document.write('i='+i+', i*i='+i*i+', i*i*i='+i*i*i+'<BR>');
}
</SCRIPT>