Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 1 of 1
  1. #1

    Lightbulb Text "glow" effect jQuery

    Ok, so for this tutorial you will need these 3 scripts (just past the code below into your html file).
    HTML Code:
    <script type="text/javascript" src="http://www.aidantaylor.net/javascript/jquery-1.5.js"></script> 
    <script type="text/javascript" src="http://www.aidantaylor.net/javascript/glow.js"></script> 
    <script type="text/javascript" src="http://www.aidantaylor.net/javascript/jquery.color.js"></script>
    They will give us the base for the jQuery we are going to use.
    The next step is the jQuery whitch will alow every element with the id of glow, to glow..
    HTML Code:
    <script type="text/javascript">
    var color="#ce0000";//color of glow
    function glow(){
    //jQuery
      $(document).ready(function(){
        $('#glow').glow({//.glow is given by the scripts above.
          glowColor: color,//collour of glow in HEX or the name of the color, e.g. black
          glow: true,
          sparkle: true//optional
        });
      });
    }
    </script>
    Next, we need to repeat this function over non stop.
    HTML Code:
    <script type="text/javascript">
    var speed=2;//seconds
    var int=speed*1000;//put speed into milliseconds 
    setInterval(glow, int);//repeat the function "glow" on elements with #glow
    </script>
    Finlay put out an element with the #glow id.
    HTML Code:
    <div id="glow">This is glowing text</div>
    Click here for working example.

    Last edited by badboyxlr; 21-03-2011 at 06:58 PM.

Posting Permissions

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