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

Thread: What to do...

  1. #1

    Default What to do...

    Hi,

    I have a layout, which features this code (as a base).

    Code:
    <div id="main_header"></div>
    <div id="main_title">title</div>
    <div id="main_middle">
    content
    </div>
    <div id="main_bottom"></div>
    But, I'm stuck for ideas - how would I made it so when the navigation is clicked the information changes? Would I need to make separate pages with the code repeated and iframe them in?

    Any ideas are appreciated, thanks.
    James.

  2. #2
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:


  3. #3
    Join Date
    Dec 2006
    Posts
    468
    Tokens
    0

    Default

    James I will Help you, ill speak to you laters.


  4. #4
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    You could add an iFrame in the middle bit, use Dynamic Drive or google.

    Your links would then be
    <a href="LINK" target="iframe_name">Contact Us whatever</a>

    And the page that is in the href="" would open into the target iframe ;P
    Hope I helped! Ill have a look around for some codes
    Back for a while

  5. #5

    Default

    Quote Originally Posted by Obulus View Post
    You could add an iFrame in the middle bit, use Dynamic Drive or google.

    Your links would then be
    <a href="LINK" target="iframe_name">Contact Us whatever</a>

    And the page that is in the href="" would open into the target iframe ;P
    Hope I helped! Ill have a look around for some codes
    Done it with Javascript. On onclick called a function.. don't have the exact code but it simply changed the display of the inactive divs to
    Code:
    display: none;
    ... wasn't too hard!

  6. #6
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    =]! Glad you sorted it!
    Back for a while

  7. #7
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    For others reference:

    I am guessing you used a code a little like this?
    HTML Code:
    function toggle_visibility(id) {
         var e = document.getElementById(id);
         if(e.style.display == 'none')
              e.style.display = 'block';
         else
              e.style.display = 'none';
    }
    and it is called like this
    HTML Code:
    <div id="foo">Wow, this is rly rly cool m8</div>
    <a href="#" onclick="toggle_visibility('foo');">click!
    [/html]

Posting Permissions

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