最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

doScroll Method

Internet Development Index

Simulates a click on a scroll-bar component.

Syntax

object.doScroll( [sScrollAction])

Parameters

sScrollAction Optional. String爐hat specifies how the object scrolls, using one of the following values:
scrollbarDownDefault. Down scroll arrow is at the specified location.
scrollbarHThumbHorizontal scroll thumb or box is at the specified location.
scrollbarLeftLeft scroll arrow is at the specified location.
scrollbarPageDownPage-down scroll bar shaft is at the specified location.
scrollbarPageLeftPage-left scroll bar shaft is at the specified location.
scrollbarPageRightPage-right scroll bar shaft is at the specified location.
scrollbarPageUpPage-up scroll bar shaft is at the specified location.
scrollbarRightRight scroll arrow is at the specified location.
scrollbarUpUp scroll arrow is at the specified location.
scrollbarVThumbVertical scroll thumb or box is at the specified location.
downComposite reference to scrollbarDown.
leftComposite reference to scrollbarLeft.
pageDownComposite reference to scrollbarPageDown.
pageLeftComposite reference to scrollbarPageLeft.
pageRightComposite reference to scrollbarPageRight.
pageUpComposite reference to scrollbarPageUp.
rightComposite reference to scrollbarRight.
upComposite reference to scrollbarUp.

Return Value

No return value.

Remarks

Cascading Style Sheets (CSS) allow you to scroll on all objects through the overflow property.

When the content of an element changes and causes scroll bars to display, the doScroll method might not work correctly immediately following the content update. When this happens, you can use the setTimeout method to enable the browser to recognize the dynamic changes that affect scrolling.

Examples

This example uses the doScroll method to scroll down when a button is clicked.

<HEAD>
<SCRIPT>
function scrollBehavior()
{
document.body.doScroll("scrollbarPageRight");
}
function scrollBehavior1()
{
txtScrollMe.doScroll("scrollbarDown");
}
function scrollBehavior2()
{
txtScrollMe.doScroll("scrollbarPageDown");
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON
onclick="scrollBehavior()"
CLASS="colorIt"
>
Click to Scroll Page
</BUTTON>
<BR>
<HR>
<BUTTON
onclick="scrollBehavior1()"
ondblclick="scrollBehavior2()"
CLASS="colorIt">
Click to Scroll Text Area
</BUTTON><BR><BR>
<TEXTAREA ID=txtScrollMe CLASS="colorIt">
This text area scrolls down	when
the "Click to Scroll the Text
Area" button is clicked. The doScroll
method scrolls it as if the down
arrow component of the scroll bar
had been clicked. Double-click the
button to scroll down a whole page.
</BODY>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses the doScroll method to scroll down a text area in one-second intervals.

<HEAD>
<SCRIPT>
var iTimer;
function timeIt()
{
iTimer = setInterval("scrollIt()", 1000);
}
function scrollIt()
{
oScrollMe.doScroll("down");
}
</SCRIPT>
</HEAD>
<BODY onload="timeIt()">
<DIV ID=oScrollMe STYLE="width:200px;height:75px;overflow:scroll">
</DIV>
</BODY>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this method.

Applies To

BODY, CUSTOM, DIV, SPAN, TEXTAREA

See Also

componentFromPoint, onscroll
上犹县| 蓬安县| 大同市| 满洲里市| 鹤峰县| 广水市| 广灵县| 鄄城县| 滨州市| 和顺县| 丹东市| 双鸭山市| 黔西县| 兰溪市| 农安县| 陇南市| 上高县| 广丰县| 芮城县| 乌拉特后旗| 许昌市| 阿拉尔市| 南澳县| 文昌市| 福海县| 拉孜县| 太仆寺旗| 鄂伦春自治旗| 平远县| 陇川县| 盐池县| 广宗县| 桃江县| 泾源县| 黄浦区| 贵定县| 曲靖市| 怀宁县| 织金县| 哈密市| 抚顺市|