Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    "Kind of Pop-up Button"

    Hi, i want to create this Login-Button:
    www.ogame.org
    Can you give me an idea how that works?
    Thank u, nvidia

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,458
    Thanks
    76
    Thanked 4,373 Times in 4,338 Posts
    It's just a <div> that is floated over the top of the rest of the page by (a) giving it an absolute position and (b) a z-index higher than the rest of the page.

    When you click on the button, it probably changes its style.display property from "none" to "block" (and also changes the text in the button).

    Not terribly hard; hardest part will be creating the pretty graphics to make it look good.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    nvidia (09-03-2010)

  • #3
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    it works, awesome =)


  •  

    Posting Permissions

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