JavaScript Reference/Javascript Properties/scrollAmount

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

"scrollAmount" Example

   <source lang="javascript">
   

<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>


     </source>
   
  


"scrollAmount" is applied to

   <source lang="javascript">

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

     </source>
   
  


"scrollAmount" Syntax and Note

   <source lang="javascript">

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


     </source>