MyBB Community Forums

Full Version: Top Links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have modified my Top Links navigation bar to include several more links, however, I have run out of room and want to include more Toungue !! How can I add a drop down menu(s) to my header template so that when something is clicked more items show beneath it? I just need the code for the template and where to put the code.

Thanks.
(2009-07-26, 04:28 PM)chris5858 Wrote: [ -> ]Hi,

I have modified my Top Links navigation bar to include several more links, however, I have run out of room and want to include more Toungue !! How can I add a drop down menu(s) to my header template so that when something is clicked more items show beneath it? I just need the code for the template and where to put the code.

Thanks.

After you have fixed your internal database error, you need to go to this page.

http://mybestoftheweb.xtreemhost.com/for.../templates

You need to select the template you are currently using, then click 'Header Templates' and then 'header'. You can then edit the HTML here.
(2009-07-26, 05:13 PM)Cluber Wrote: [ -> ]
(2009-07-26, 04:28 PM)chris5858 Wrote: [ -> ]Hi,

I have modified my Top Links navigation bar to include several more links, however, I have run out of room and want to include more Toungue !! How can I add a drop down menu(s) to my header template so that when something is clicked more items show beneath it? I just need the code for the template and where to put the code.

Thanks.

After you have fixed your internal database error, you need to go to this page.

http://mybestoftheweb.xtreemhost.com/for.../templates

You need to select the template you are currently using, then click 'Header Templates' and then 'header'. You can then edit the HTML here.

  1. My forums are not at that website
  2. I don't know the code to add. I do know where to edit it, though.
So your asking the HTML for a dropdown box?
<form name="nav">
<select name="links" onChange="javascript:window.location=document.nav.links.value;">
<option value="http://www.google.com">Link1</option>
<option value="http://www.yahoo.com">Link2</option>
</select>
</form>

something link that would work..
(2009-07-26, 06:09 PM)Cluber Wrote: [ -> ]So your asking the HTML for a dropdown box?
<form name="nav">
<select name="links" onChange="javascript:window.location=document.nav.links.value;">
<option value="http://www.google.com">Link1</option>
<option value="http://www.yahoo.com">Link2</option>
</select>
</form>

something link that would work..

  1. That code displayed the drop down, but it didn't work.
  2. I don't want it a dropdown menu like that. I want it so when you click on the link as you would any other link on the nav. bar, it shows more links below it.
You should add something like this then.

http://www.dynamicdrive.com/dynamicindex...uindex.htm
(2009-07-26, 06:48 PM)Cluber Wrote: [ -> ]You should add something like this then.

http://www.dynamicdrive.com/dynamicindex...uindex.htm

I added this code successfully, but for some reason, I cannot get it to use my links instead of the default examples. I edited the menucontents.js file, but it still does not show those links.
You need to look at step 2 on the link i provided. You should edit the links here as well as in the JavaScript.