<html> <body> <script language="JavaScript"> function function1(){ document.all.myM.scrolldelay = 20; } </script> <marquee id="myM" bgcolor="cyan">Sample Text</marquee> <input type="button" value="truespeed" onClick="function1();"> </body> </html>