Results 1 to 6 of 6

Thread: HELP [+REP]

  1. #1
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default HELP [+REP]

    How does Habbox do that flashing text thingy

    Look at this guys profile.

    Thanks

    +REP
    xox
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  2. #2
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Quote Originally Posted by RemelKiid View Post
    How does Habbox do that flashing text thingy

    Look at this guys profile.

    Thanks

    +REP
    xox
    Javascript.
    Say you had like, <div id='loltest'>Username</div>, set a base font colour for #loltest. You could then put each letter of 'Username' into separate <span>s, cycle through the <span>s using one of many possible methods that I can't be bothered to type, set a slightly lighter font colour for the selected <span>, wait for a few milliseconds, remove the font colour, repeat for the following spans.
    That's the way I'd do it anyway, not sure if it's the best way.
    I'm not too confident with my javascript skillz, so I won't write the actual code for it, but you should be able to work it out if you understand the logic. If not, let me know and I'll attempt it.

  3. #3
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    Sadly - I can't code in Javascript - could you give it a go for me?
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  4. #4
    Join Date
    Nov 2007
    Location
    UK, Wales.
    Posts
    735
    Tokens
    1,906
    Habbo
    Kronics

    Latest Awards:

    Default

    If you want to learn how to do Javascript, this should be usefull

    Click here.
    Interested to join the Help Desk? Well what are you waiting for,
    check the jobs section on Habbox!

    ][ Habbox Live ][ Habboxforum ][ Habbox ][

    PM Kronics


  5. #5

    Thumbs up I know..

    This is the code the vars color and speed, are the speed in seconds and the name of the collour or the HEX.
    Click here for working example.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Glow</title>
    <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> 
    <script type="text/javascript">
    var speed=2;//seconds
    var color="#ce0000";//color of glow
    //anything with the id "glow" will have this effect
    function glow(){$(document).ready(function(){$('#glow').glow({glowColor: color,glow : true,sparkle : true});});}$(document).ready(function(){$('#glow').glow({glowColor: '#ce0000',glow : true,sparkle : true});});var int=speed*1000;setInterval(glow, int);
    </script>
    </head>
    <body>
    <p id="glow">Glowing text</p>
    </body>
    </html>
    Last edited by badboyxlr; 21-03-2011 at 06:39 PM.

  6. #6
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    Thanks +REP /closed.
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

Posting Permissions

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