Name
loop — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
Sets the number of times the element scrolls its content. After the
final scroll, the content remains in a fixed position. Constant
animation can sometimes be distracting to page visitors, so if you
have the MARQUEE
turn itself off after a few
scrolls, you may be doing your visitors a favor.
Example
document.all.banner.loop = 3
Value
Any positive integer if you want the scrolling to stop after that
number of times. Otherwise, set the value to -1
.
Default
-1
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.