<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>
|