'scrollAmount' Example : Marquee « HTML « JavaScript DHTML






'scrollAmount' Example

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

    
      
      








Related examples in the same category

1.Marquee 'direction' Example
2.'behavior' Example
3.'trueSpeed' Example
4.'scrollDelay' Example
5.Marquee 'start()' Example
6.Marquee 'stop()' Example
7.The blink and marquee Tags
8.Controlling MARQUEE Object Properties