JavaScript Reference/Javascript Properties/scrollAmount — различия между версиями

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

Текущая версия на 08:21, 26 мая 2010

"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