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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Navigation +REP

  1. #1
    Join Date
    Jun 2008
    Posts
    72
    Tokens
    0

    Default Navigation +REP

    ive got my navigation but when you open the page it looks like this



    http://img128.imageshack.us/my.php?image=pic1vp6.png (check the link cos the pic won't open)

    i want it closed or only one open to start


    also i can open all of them at once and i only want one to be open at once

    Thread moved from 'Technical Problems' by Yoshimitsui (Super Moderator): Please post in the correct section in future.

    Fixed image by Meti (Forum Moderator)
    Last edited by Meti; 31-10-2008 at 02:22 PM.

  2. #2
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:

    Default

    I like it alot, can i see the coding for it as i might be able to help you out

  3. #3
    Join Date
    Jul 2004
    Location
    Scotland
    Posts
    17,702
    Tokens
    60,948
    Habbo
    Habbic

    Latest Awards:

    Default

    Should be in web designing.

    Edited by Meti (Forum Moderator): Please do not tell users that they have broken the forum rules, instead report the post using the report post button.
    Last edited by Meti; 31-10-2008 at 02:23 PM.

  4. #4
    Join Date
    Jun 2008
    Posts
    72
    Tokens
    0

    Default

    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    -->
    </style>
    </head>

    </tr><!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">
    <meta http-equiv="Content-Type" content="text/css; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    .menuOut {cursor:pointer; margin:7px; background-color:#0099cc; color:#000000; width:140px; border:1px solid #000000; padding:2px; text-align:center; font-weight:bold;}
    .menuOver {cursor:pointer; margin:7px; background-color:#000000; color:#0099cc; width:140px; border:1px solid #0099cc; padding:2px; text-align:center; font-weight:bold;}
    .submenu a:hover {color:#0000ff; text-decoration:none; font-weight:bold;}
    </style>
    <!--
    .style1 {color: #439DF8}
    .style2 {color: #439DF8}
    .style3 {color: #439DF8}
    -->
    </style>
    <head>
    <td width="200" valign="top"><table width="186" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="imgs/TestSpacer.PNG"></td>
    </tr>
    <tr>
    <td><img src="imgs/topnav.png" /></td>
    </tr>
    <tr>
    <td background="imgs/bgnav.png" class="boxes style1"><p><p align="center">

    </style>
    <script type="text/javascript">
    /*
    Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
    This script may be used and changed freely as long as this msg is intact
    Visit http://getElementById.com/ for more free scripts and tutorials.
    */
    function SwitchMenu(obj){
    if(document.getElementById){
    var el = document.getElementById(obj);
    var ar = document.getElementById("cont").getElementsByTagNa me("DIV");
    if(el.style.display == "none"){
    for (var i=0; i<ar.length; i++){
    ar[i].style.display = "none";
    }
    el.style.display = "block";
    }else{
    el.style.display = "none";
    }
    }
    }
    function ChangeClass(menu, newClass) {
    if (document.getElementById) {
    document.getElementById(menu).className = newClass;
    }
    }
    document.onselectstart = new Function("return false");
    </script>

    </head>
    <body>
    <p class="style1"><font face="Verdana" size="1">
    <body>




    <div id="cont"></div>

    <div id="masterdiv">
    <div id="menu6" >

    <div align="center"><img alt="" align="middle" src="../images/Navigation/Habbplanet.PNG" onmouseout="ChangeClass('menu1','menuOut')" onmouseover="ChangeClass('menu1','menuOver')" onClick="SwitchMenu('sub6')" width="197" height="20" /><br />
    <span class="submenu" id="sub6">
    <span class="style1"><a target="main" href="http://habbplanet.com">Homepage</a></span><br />
    <a target="main" href="#">Meet The Team</a><br />
    <a target="main" href="#">About Us</a><br />
    <a target="main" href="#">Disclaimer</a><br />
    <a href="#" target="main" class="style1">Contact Us</a></span></div>
    <div id="menu7" >

    <div align="center"><img alt="" src="../images/Navigation/Community.PNG" onClick="SwitchMenu('sub7')" width="197" height="20" /><br />
    <span class="submenu" id="sub7"><a target="main" href="#">Song Of The Week</a><br />
    <a target="main" href="#">Weekly Competiton </a><br />
    <a target="main" href="#">Weekly Poll </a><br />
    <a target="main" href="#">Weekly Newsie</a><br />
    <a target="main" href="#">Join The Group!</a><br />
    <a target="main" href="#">Status Signatures</a><br />
    <a target="main" href="#">Events Schedule</a><br />
    <a target="main" href="#">Habbo Imager</a><br />
    </span>


    <img alt="" src="../images/Navigation/radio.PNG" onClick="SwitchMenu('sub3')" width="197" height="20" /><br />
    <span class="submenu" id="sub3"><a target="main" href="#">Requests &amp; Shoutouts</a><br />

    <a target="_blank" href="#">Timetable</a><br />
    <a target="main" href="#">Regular Shows</a><br />
    <a target="main" href="#">DJ Applications</a> </span>
    <div align="center">
    <img alt="" align="middle" src="../images/Navigation/Goodies.PNG" onClick="SwitchMenu('sub9')" width="197" height="20" /><span class="submenu" id="sub9"><br />
    <a target="main" href="#">Habbo Imager </a><br />
    <a target="main" href="#">Display Pics </a><br />
    <a target="main" href="#">Backgrounds</a><br />
    <a target="main" href="#">Downloads</a><br /> </span>
    <img alt="" src="../images/Navigation/Guides.PNG" onClick="SwitchMenu('sub2')" width="197" height="20" /><br />
    <span class="submenu" id="sub2"><a target="main" href="#">Habbo Club Guide</a><br />
    <a target="main" href="#">Editing Your Habbo Look!</a><br />
    <a target="main" href="#">Habbo Games</a><br />
    <a target="main" href="#">Habbo X Guide </a><br />
    </span>
    <img alt="" src="../images/Navigation/Forum.PNG" onClick="SwitchMenu('sub1')" width="197" height="20" /><br />
    <span class="submenu" id="sub1"><a target="_blank" href="#">Visit Forum</a><br />
    <a target="main" href="#">Register Now!</a></span></div>
    </div></tr>

    <p><span class="style1"></head>
    </span>

    <body>
    </p>
    </body>
    </html>

    <body>
    </body>
    </html>

  5. #5
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:

    Default

    Mess about with images name, perhaps use png and not PNG try just using /IMAGE/DIRECTORY too? Just have a fiddle

  6. #6
    Join Date
    Jun 2008
    Posts
    72
    Tokens
    0

    Default

    that won't help, theres something wrong with the coding

  7. #7
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Firstly the <div id="content"> should be around the whole menu. Secondly the divs on the menu are completely messed up, you have 7 opening tags, but only 4 closing tags. You need to rewrite it so that each submenu is surrounded by one div.

    HTML Code:
    <div id="cont">
    
    <img alt="" align="middle" src="../images/Navigation/Habbplanet.PNG" onmouseout="ChangeClass('menu1','menuOut')" onmouseover="ChangeClass('menu1','menuOver')" onClick="SwitchMenu('sub6')" width="197" height="20" /><br />
    <div class="submenu" id="sub6" align="center">
    <span class="style1">
    <a target="main" href="http://habbplanet.com">Homepage</a>
    </span><br />
    <a target="main" href="#">Meet The Team</a><br />
    <a target="main" href="#">About Us</a><br />
    <a target="main" href="#">Disclaimer</a><br />
    <a href="#" target="main" class="style1">Contact Us</a>
    </div>
    
    
    <img alt="" src="../images/Navigation/Community.PNG" onClick="SwitchMenu('sub7')" width="197" height="20" /><br />
    <div class="submenu" id="sub7" align="center">
    <a target="main" href="#">Song Of The Week</a><br />
    <a target="main" href="#">Weekly Competiton </a><br />
    <a target="main" href="#">Weekly Poll </a><br />
    <a target="main" href="#">Weekly Newsie</a><br />
    <a target="main" href="#">Join The Group!</a><br />
    <a target="main" href="#">Status Signatures</a><br />
    <a target="main" href="#">Events Schedule</a><br />
    <a target="main" href="#">Habbo Imager</a><br />
    </div>
    
    
    <img alt="" src="../images/Navigation/radio.PNG" onClick="SwitchMenu('sub3')" width="197" height="20" /><br />
    <div class="submenu" id="sub3" align="center">
    <a target="main" href="#">Requests &amp; Shoutouts</a><br />
    <a target="_blank" href="#">Timetable</a><br />
    <a target="main" href="#">Regular Shows</a><br />
    <a target="main" href="#">DJ Applications</a>
    </div>
    
    
    
    <img alt="" align="middle" src="../images/Navigation/Goodies.PNG" onClick="SwitchMenu('sub9')" width="197" height="20" />
    <div class="submenu" id="sub9" align="center"><br />
    <a target="main" href="#">Habbo Imager </a><br />
    <a target="main" href="#">Display Pics </a><br />
    <a target="main" href="#">Backgrounds</a><br />
    <a target="main" href="#">Downloads</a><br />
    </div>
    
    
    <img alt="" src="../images/Navigation/Guides.PNG" onClick="SwitchMenu('sub2')" width="197" height="20" /><br />
    <div class="submenu" id="sub2" align="center">
    <a target="main" href="#">Habbo Club Guide</a><br />
    <a target="main" href="#">Editing Your Habbo Look!</a><br />
    <a target="main" href="#">Habbo Games</a><br />
    <a target="main" href="#">Habbo X Guide </a><br />
    </div>
    
    
    <img alt="" src="../images/Navigation/Forum.PNG" onClick="SwitchMenu('sub1')" width="197" height="20" /><br />
    <div class="submenu" id="sub1" align="center">
    <a target="_blank" href="#">Visit Forum</a><br />
    <a target="main" href="#">Register Now!</a>
    </div>
    
    </div>
    </body>
    </html>
    That should hopefully fix the menu. It looks like you've been using a bad html editor. You have html before the doctype and you have numerous body and head tags.

  8. #8
    Join Date
    Jun 2008
    Posts
    72
    Tokens
    0

    Default

    i have been mixing things around with dreamweaver

  9. #9
    Join Date
    Jun 2008
    Posts
    72
    Tokens
    0

    Default

    only one menu opens now when u click but when u first open the page they are all open but when u close them and try to open more than 1 only 1 is there which is what i want,

    i just want to figure out how to make them all closed when u first open the page

    Edited by Meti (Forum Moderator): Please do not double post, when you simply can edit your first post.
    Last edited by Meti; 31-10-2008 at 02:25 PM.

  10. #10
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by Kupen View Post
    only one menu opens now when u click but when u first open the page they are all open but when u close them and try to open more than 1 only 1 is there which is what i want,

    i just want to figure out how to make them all closed when u first open the page

    Edited by Meti (Forum Moderator): Please do not double post, when you simply can edit your first post.
    Sorry, forgot about that.

    Add
    HTML Code:
    .submenu
    {
    display: none;
    }
    under </style>

Page 1 of 2 12 LastLast

Posting Permissions

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