dhtml menu

They have: 5,633 posts

Joined: Jan 1970

i have a menu that is going to be shown on every page for on my site, but the submenus have too much room, and i cant find the way to reduce that, a page with the menu on it is here
http://www.doubleok.com/cgi-bin/join_page.pl

and the relevant .js file is here
http://www.doubleok.com/dhtml/Object.js

can anyone tell me how i can reduce the size of the submenus so that they grow when more items are added????

------------------
Join The Rest Of The Webmasters On The Net!!

Contact Me:
[email protected]

ICQ: 52790444

They have: 89 posts

Joined: Sep 1999

Use collapsable submenus.
Look here for an example.
http://dynamicdrive.com/dynamicindex1/navigate1.htm

They have: 5,633 posts

Joined: Jan 1970

i have the script already, i just dont know how to modify it so that the space under the items in the submenu is to big

------------------
Join The Rest Of The Webmasters On The Net!!

Contact Me:
[email protected]

ICQ: 52790444

They have: 231 posts

Joined: Feb 2000

I guess the submenu has a height specified for the layer.

Instead of using backgroundColors and padding values for the layer, write some html with a <table> to the layer. This way blank space will be left blank.

eg:

code:

<table cellpadding="3" cellspacing="0" border="0" bgcolor="#999999">
<tr>
<td bgcolor="#FFFFFF">Menu Item 1</td>
<td bgcolor="#FFFFFF">Menu Item 2</td>
</tr>
</table>[/code] 

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.