Results 1 to 1 of 1

Thread: Make that button glow!

  1. #1
    Join Date
    Jul 2008
    Posts
    40
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Unhappy Make that button glow!

    Yes we can make this button glow! Here's how we do it
    Code:
    <!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>
    Am sure you're familiar with this technique! Well am just reminding you up again about it... enjoy
    Last edited by ddadmin; 07-25-2008 at 09:48 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •