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