»
EnglishFrenchVietnamese

Print - Marqueeing Text in Button - JavaScriptBank.com

Full version: jsB@nk » Form » Button » Marqueeing Text in Button
URL: http://www.javascriptbank.com/marqueeing-text-in-button.html

Marqueeing Text in Button © JavaScriptBank.comBy using string manipulation and setTimeout, you can have the letters on a button 'scroll'. Run the code for an easy example.

Full version: jsB@nk » Form » Button » Marqueeing Text in Button
URL: http://www.javascriptbank.com/marqueeing-text-in-button.html



JavaScript
<SCRIPT language=javascript>function movebutton() {var ButtonCaption = buttonform.thing.value;ButtonCaption = ButtonCaption.substring(1, ButtonCaption.length) + ButtonCaption.substring(0,1);buttonform.thing.value = ButtonCaption;setTimeout('movebutton()', 200);}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=movebutton()><FORM name=buttonform><INPUT type=button value="Submit " name=thing></FORM></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->