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 6 of 6

Thread: Style JS Alert

  1. #1
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default Style JS Alert

    Hello, me again!

    I was wondering, when you go to https://habbox.com/ and then type in the address bar;

    HTML Code:
    javascript:alert("Lee Rules")
    It isn't the default pop up window it's a styled yellow box. How is this done?

    Lee.

  2. #2
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:


  3. #3
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default

    Quote Originally Posted by Luke View Post
    Perfect thanks Luke.

    Secondly,

    On facebook when you get an inbox, the tab (where the favicon is) starts flashing how is this achieved?

  4. #4
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    I would imagine this is just an interval polling on the page constantly updating the title to make it appear to be changing dynamically.

    setInterval and then switching back and forth every so often or rotating characters to emulate "scrolling".

  5. #5
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    I would imagine this is just an interval polling on the page constantly updating the title to make it appear to be changing dynamically.

    setInterval and then switching back and forth every so often or rotating characters to emulate "scrolling".
    Thanks Caleb,

    yet another question when you make a layout, using HTML and CSS...

    When I use floateft; it means that if the div i'm floating is inside another div. The div it's inside of shoots up as if there's no content in it. How is this overcome?

  6. #6
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Since it's a floating element, the parent container technically has no height. After the floating div, place a div with this:

    Code:
    <div style="clear: both;"></div>
    Clears the div and sets the height below that.

    http://css-tricks.com/the-how-and-wh...earing-floats/

Posting Permissions

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