Log in

View Full Version : Quick Help again ;) HTML



iNicks
24-02-2006, 04:44 PM
I just need the code for my site.... See on Habbox [or when it was not shutdown] how you click like "Habbox" and the submenu pops down and you click which page to go to. I need this code, I did have a site for the code, but lost it.

D3stroyer
24-02-2006, 04:50 PM
Hey,

It's not Html.
I would think it'd be easier to do in Javascript
Any tutorail site would have that kind of thing.
i would explain but i really can't be bothered to type it all.

-Daza

Steven.
24-02-2006, 04:53 PM
http://www.habboxforum.com/showthread.php?t=145697

;) See my post. ;P

Splinter
24-02-2006, 04:56 PM
Its really DHtml or Dynamic Html ... and easy way is to do this;


<html>
<head>
<style>
#menu1 {
display: none;
}
</style>
</head>
<body>
<div onClick="document.all.menu1.style.display = 'block'">Menu 1<br />
<span id="menu1">Home<br />About<br />Etc..</span>
</div>
</body>
</html>

iNicks
24-02-2006, 04:59 PM
http://www.habboxforum.com/showthread.php?t=145697

;) See my post. ;P

Thats the site i meant ;)

+rep

nets
24-02-2006, 07:45 PM
I've never tried to do this before, but I'm assuming that this will work (with browsers not suporting the latest CSS aswell).

<html>
<head>
<script type="text/javascript" language="javascript">
function display_menu(new_html, div_id) {
document.getElementById(div_id).innerHTML=new_html ;
}
</script>
</head>
<body>
<a href="#" onClick="display_menu('link<br />link', 'bob')">Show menu</a>
<div id="bob"> </div>
</body>
</html>

That's the first time I've ever written that code, so I've not tested it.

Iggy
24-02-2006, 07:55 PM
Gd advice

Billabong
24-02-2006, 08:08 PM
Ye its availible on www.dynamicdrive.com and so are many other menus

Want to hide these adverts? Register an account for free!