Marquee 'direction' Example : Marquee « HTML « JavaScript DHTML






Marquee 'direction' Example

    
<html>
<body>
<script language="JavaScript">
    function function1(){
        document.all.myMarquee.direction = "up";
    }
    function function2(){
        document.all.myMarquee.direction = "left";
    }
    function function3(){
        document.all.myMarquee.direction = "right";
    }
    function function4(){
        document.all.myMarquee.direction = "down";
    }
</script>
<marquee id="myMarquee" bgcolor="cyan">SCROLLING MARQUEE</marquee>
<button onclick="function1();">Up</button>
<button onclick="function2();">Left</button>
<button onclick="function3();">Right</button>
<button onclick="function4();">Down</button>
</body>
</html>

    
      
      








Related examples in the same category

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