'start()' Example : start « Javascript Methods « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Methods » start 
'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">
    Sample Text
</marquee>
<input type="button" value="Start" onClick="function2();">
<input type="button" value="Stop" onClick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1.'start()' Syntax, Parameters and Note
2.'start()' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.