Yes we can make this button glow! Here's how we do it
Am sure you're familiar with this technique! Well am just reminding you up again about it... enjoyCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Make it glow</title> <script type="text/javascript"> <!--Hiding function makeMeGlow() { var myButton =document.getElementById('theButton'); myButton.style.background = "black"; myButton.style.color = "white"; myButton.value = "GLOW"; setTimeout('nowImGlowing()', 2000); } function nowImGlowing() { var myButton1 =document.getElementById('theButton'); myButton1.style.background = "gold"; myButton1.style.color = "black"; myButton1.value = "GLOWING"; setTimeout('makeMeGlow()', 2000); } // Done Hiding --> </script> </head> <body onLoad="makeMeGlow()"> <p><form> <input id="theButton" type="button" value="GLOW" /> </form></p> </body> </html>



Reply With Quote
Bookmarks