JavaScript Reference/Javascript Properties/scrollAmount

Материал из Web эксперт
Перейти к: навигация, поиск

"scrollAmount" Example

    
<html>
<body>
<script language="JavaScript">
function function1(){
    document.all.myMarquee.scrollAmount = 2;
}
</script>
<marquee id="myMarquee" bgcolor="cyan">www.wbex.ru</marquee>
<input type="button" name="S2" value="scrollAmount = 2" onClick="function1();">
</body>
</html>



"scrollAmount" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<marquee>                                                     |
+----------------+--------------------------------------------------------------+



"scrollAmount" Syntax and Note

Note:
Read and write property. 
Specifies the number of pixels <marquee> text shifts each time redrawn. 
The default value is 6. 
The smaller, the smoother.
    
Syntax:
    
document.all.marqueeID.scrollAmount = value