Rolling message on button







Put this between your BODY-tags:
<form name="form2">
<input type="submit" name="banner" VALUE="Submit">
<br>
</form>
<script language="JavaScript">
var id,pause=0,position=0;
function banner() {
// variables declaration
var i,k,msg=" Her can you write what ever you want... ";
// increase msg
k=(60/msg.length)+1;
for(i=0;i<=k;i++) msg+=" "+msg;
// show it to the window
document.form2.banner.value=msg.substring(position,position+50);
// set new position
if(position++==msg.length) position=0;
// repeat at entered speed
id=setTimeout("banner()",200);
}
// end -->
banner();
</script>

Free JavaScripts provided
by Winfolinx.com



Back