This script allow you to quickly blink the background. With a click of a button, the background changes from white to blue and back several times to return to white.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. * * * * Please direct all inquiries to saqib at mycplus.com * *******************************************************/ <!-- TWO STEPS TO INSTALL BLINKER: 1. Paste designated code into HEAD of your HTML document 2. Add the second script to the BODY of your HTML document --> <!-- STEP ONE: Paste this code into HEAD of your document --> <head> <script LANGUAGE="JavaScript"> <!--Total Java Scripts 99 - Next Step Software--> <!-- Begin function blinkOn(){ theWin.document.bgColor = "0000ff" nTimes++ JSCTimeOutID = window.setTimeout("blinkOff()",50); } function blinkOff(){ theWin.document.bgColor = "FFFFFF" if (nTimes < 3) JSCTimeOutID = window.setTimeout("blinkOn()",50); else theWin.history.go(0) } function blinkit(aWin) { nTimes = 0 theWin = aWin JSCTimeOutID = window.setTimeout("blinkOn()",50); } // End --> </script> <!-- STEP TWO: Add this form to the body of the HTML document --> <body> <center> <form> <input TYPE="BUTTON" VALUE="Blink" onClick="blinkit(self)"> </form> <!-- Script Size: 1.01 KB --> |