»
EnglishFrenchVietnamese

Print - Flashing Text button - JavaScriptBank.com

Full version: jsB@nk » Form » Button » Flashing Text button
URL: https://www.javascriptbank.com/flashing-text-button.html

Flashing Text button © JavaScriptBank.comText of button will flash when visitors move mouse on it.

Full version: jsB@nk » Form » Button » Flashing Text button
URL: https://www.javascriptbank.com/flashing-text-button.html



JavaScript
<script language="javascript"><!--This script was created by Aaron Connelly--><!--For non-comercial use only -- other please contact at [email protected]><!--Must stay intact for use-->function swaper(){//You Can set the colors to whatever you wantvar swap = new Array(3)swap[0]="yellow"swap[1]="red"swap[2]="blue"swap[3]="green"swap[4]="black"swap[5]="yellow"swap[6]="purple"swap[7]="pink"//If you change the add anymore colors be sure to adjust the random amount.//Example: I have 7 colors so -- 6 + 1 = 7. If I had 10 colors -- 9 + 1var i =Math.floor(Math.random() * 6) + 1//Don't edit belowdocument.flash.button1.style.color=swap[i]TextID=setTimeout("swaper()",50)}function stop(){clearTimeout(TextID)}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name="flash"><input type="button" name="button1" value="Flashing button" onMouseOver="swaper()" onMouseOut="stop()"></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->