Marquee 'start()' Example : Marquee « HTML « JavaScript DHTML






Marquee 'start()' Example

    
<html>
<body>
<script language="JavaScript">
    function function1(){
        document.all.myMarquee.stop();
    }
    function function2(){
        document.all.myMarquee.start();
    }
</script>
<marquee align="left" id="myMarquee" bgcolor="red" width="300">
   www.java2s.com
</marquee>
<input type="button" value="Start" onClick="function2();">
<input type="button" value="Stop" onClick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

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