Hallo, Gast!
AnmeldenRegistrieren

Drop-Down-Menü
#1
Hallo, ich hatte bis jetzt immer ein Dropdown Menü, doch jetzt möchte ich ein zweites hinzufügen doch wenn ich ein zweites hinzufüge geht nur noch das erste.
Also das was weiter vorne im Template steht.
So sieht das ganze aus:
Code:
<li><a href="{$mybb->settings['bburl']}/index.php">Forum</a></li>
  <li><a href="[color=#0000ff;]hello.php[/color]" id="[color=#ff0000;]example_menu[/color]">Server-Hosting</a></li>
<div id="[color=#ff0000;]example_menu[/color]_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/serverinfo.php" class="popup_item">INFO</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/serverhosting.php" class="popup_item">Server-Hosting</a></div>

</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("[color=#ff0000;]example_menu[/color]");
}
// -->
</script>
                <li><a href="{$mybb->settings['bburl']}/portal.php">Portal</a></li>



<li><a href="{$mybb->settings['bburl']}/memberlist.php" id="[color=#ff0000;]example_menu[/color]">Mitglieder</a></li>
<div id="[color=#ff0000;]example_menu[/color]_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/memberlist.php" class="popup_item">Mitgliederliste</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/showteam.php" class="popup_item">Foren-Team</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/online.php" class="popup_item">Wer ist online?</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/online.php?action=today" class="popup_item">Wer war heute alles online?</a></div>
</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("[color=#ff0000;]example_menu[/color]");
}
// -->
</script>
            
                
                                 <li><a  href="ts3server://85.214.231.102?port=5544">TeamSpeak</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
            </ul>
            <div id="search">
            <form action="{$mybb->settings['bburl']}/search.php" method="post">
Da gibt es einmal "Serverhosting":
Code:
<li><a href="[color=#0000ff;]hello.php[/color]" id="[color=#ff0000;]example_menu[/color]">Server-Hosting</a></li>
<div id="[color=#ff0000;]example_menu[/color]_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/serverinfo.php" class="popup_item">INFO</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/serverhosting.php" class="popup_item">Server-Hosting</a></div>

</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("[color=#ff0000;]example_menu[/color]");
}
// -->
</script>
Und einmal "Mitglieder":
Code:
<li><a href="{$mybb->settings['bburl']}/memberlist.php" id="[color=#ff0000;]example_menu[/color]">Mitglieder</a></li>
<div id="[color=#ff0000;]example_menu[/color]_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/memberlist.php" class="popup_item">Mitgliederliste</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/showteam.php" class="popup_item">Foren-Team</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/online.php" class="popup_item">Wer ist online?</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/online.php?action=today" class="popup_item">Wer war heute alles online?</a></div>
</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("[color=#ff0000;]example_menu[/color]");
}
// -->
</script>

Ich wollt Fragen was ich falsch mache bzw. ändern muss?
 
#2
Folge dieser Anweisung und Du erreichst was Du benötigst.

http://community.mybb.com/thread-82696.html
 
#3
Ahhh, ich muss verschiedene "ID's" nutzen Smile

Danke!!

MfG
 


Möglicherweise verwandte Themen…
Benötige Hilfe bei Drop-Down-Menü
Letzter Beitrag: 06.06.2009, 09:55