TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,143
  • Total Topics: 21,346
  • Online today: 1,074
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 418
  • Total: 419
  • @rjen

Drop Down Menu, How Do I?

Started by Reality12, April 10, 2007, 10:32:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bigdog

someone should make a "menu" package, that allows for the creation of a TP block.

It's frustrating that you can only have one "menu", but multiple menu blocks.  Each block only shows the same menu, over and over......no good.

It would also be nice if this menu block could also incorporate dropdowns/dropsides as it is in this theme.

Would be nice.

bigdog

this is what we developed (long ago, but figured I'd spread the wealth).

<div id="ttpddnav">
<ul id="ttpddmenu">
    <li><a href="http://www.texasteamplayers.com/index.php?action=forum">Forums</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?page=48">FAQ's</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?page=7">Contact Us</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?page=96">Advertising</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?topic=11316.0">Reserved Slots</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?topic=45.0">Clan Residency</a></li>
    <li><a href="http://www.cafepress.com/teamplayers" target="_blank">TTP: Gear</a></li>
    <li><a href="javascript:void()">TTP: Networking »</a>
    <ul>
        <li><a href="http://steamcommunity.com/groups/teamplayers" target="_blank">TTP: Steam</a></li>
        <li><a href="http://www.myspace.com/texasteamplayers" target="_blank">TTP: Myspace</a></li>
        <li><a href="http://www.facebook.com/group.php?gid=7799355658" target="_blank">TTP: Facebook</a></li>
    </ul>
    </li>
    <li><a href="http://www.texasteamplayers.com/index.php?page=83">Donations</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?action=tpmod;dl">Downloads</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?page=91">Game Servers</a></li>
    <li><a href="http://www.texasteamplayers.com/index.php?action=gallery">User Image Gallery</a></li>
    <li><a href="javascript:void()">Articles »</a>
    <ul>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=47">Off Topic</a></li>       
        <li><a href="http://www.texasteamplayers.com/index.php?cat=33">PC Gaming News</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=56">PC Hardware News</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=30">Game Reviews</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=102">Hardware Reviews</a></li>
    </ul>
    </li>
    <li>
    <h2>TTP Games</h2>
    </li>
    <li><a href="javascript:void()">Counter-Strike »</a>
    <ul>
        <li><a href="steam:%20%22-applaunch%20240%20-game%20cstrike%20+connect%2064.182.81.109:27015%22">Connect CSS</a></li>
        <li><a href="steam:%20%22-applaunch%20240%20-game%20cstrike%20+connect%2064.182.81.109:27018%22">Connect CSS: GG</a></li>
        <li><a href="steam:%20%22-applaunch%20240%20-game%20cstrike%20+connect%2064.182.81.109:27017%22">Connect CSS: Top5</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?board=4.0">CSS Forum</a></li>
        <li><a href="http://www.steampowered.com/v/index.php?area=news&AppId=240" target="_blank">CSS News</a></li>
        <li><a href="http://67.19.3.130/css_stats/index.php" target="_blank">Psychostats</a></li>
        <li><a href="http://67.19.3.130/gg_stats/index.php" target="_blank">Psychostats: GG</a></li>
        <li><a href="http://67.19.3.130/t5_stats/index.php" target="_blank">Psychostats: Top5</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=52">CSS Articles</a></li>
    </ul>
    </li>
    <li><a href="javascript:void()">Day of Defeat »</a>
    <ul>
        <li><a href="steam:%20%22-applaunch%20300%20-game%20dod%20+connect%2064.182.81.109:27016%22">Connect DoDS</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?board=18.0">DoDS Forum</a></li>
        <li><a href="http://www.steampowered.com/v/index.php?area=news&AppId=300" target="_blank">DoDS News</a></li>
        <li><a href="http://67.19.3.130/dods_stats/index.php" target="_blank">Psychostats</a></li>
    </ul>
    </li>
    <li><a href="javascript:void()">Battlefield 2 »</a>
    <ul>
        <li><a href="http://www.texasteamplayers.com/index.php?board=11.0">BF2 Forum</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?board=76.0">BF2: PR Forum</a></li>
        <li><a href="http://battlefield.ea.com/battlefield/bf2/battlefieldnews.aspx" target="_blank">BF2 News</a></li>
        <li><a href="http://battlefield.ea.com/battlefield/bf2/playersearch.aspx" target="_blank">BF2 Player Stats</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=50">BF2 Articles</a></li>
    </ul>
    </li>
    <li><a href="javascript:void()">Battlefield 2142 »</a>
    <ul>
        <li><a href="http://www.texasteamplayers.com/index.php?board=59.0">BF2142 Forum</a></li>
        <li><a href="http://battlefield.ea.com/battlefield/bf2142/battlefieldnews.aspx?Lang=us&PID=&SrchName=&Profiles=" target="_blank">2142 News</a></li>
        <li><a href="http://battlefield.ea.com/battlefield/bf2142/Leaderboards.aspx?Lang=us&PID=&SrchName=&Profiles=" target="_blank">2142 Player Stats</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=51">2142 Articles</a></li>
    </ul>
    </li>
    <li><a href="javascript:void()">ArmA:CO »</a>
    <ul>
        <li><a href="http://www.texasteamplayers.com/index.php?board=80.0">ArmA Forum</a></li>
        <li><a href="http://www.armedassault.com/us_index.html" target="_blank">ArmA News</a></li>
        <li><a href="teamspeak://72.233.44.146:9001/?password=C0mb@t">ArmA TeamSpeak</a></li>
    </ul>
    </li>
    <li><a href="javascript:void()">Team Fortress 2 »</a>
    <ul>
        <li><a href="steam:%20%22-applaunch%20440%20-game%20tf2%20+connect%2069.12.25.158:27015%22">Connect TF2</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?board=53.0">TF2 Forum</a></li>
        <li><a href="http://www.steampowered.com/v/index.php?area=news&AppId=440" target="_blank">TF2 News</a></li>
        <li><a href="http://67.19.3.130/tf2_stats/index.php" target="_blank">Psychostats</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=101">TF2 Articles</a></li>
    </ul>
    </li>
    <li><a href="javascript:void()">Call of Duty 4 »</a>
    <ul>
        <li><a href="http://www.texasteamplayers.com/index.php?board=109.0">CoD4 Forum</a></li>
        <li><a href="http://www.steampowered.com/v/index.php?area=news&AppId=7940" target="_blank">CoD4 News</a></li>
<li><a href="http://67.19.3.130/cod4_stats/index.php" target="_blank">UltraStats</a></li>
        <li><a href="http://www.texasteamplayers.com/index.php?cat=130">CoD4 Articles</a></li>
    </ul>
    </li>
</ul>
</div>


you'll have to make some changes to get the hovering to work in IE6, but for firefox and IE7, I think it works fine.  Feel free to use it.

Reality12

looking at that code, i think i have a general idea of how it will look, but do you have an example?

anyoldcard

Why don't you post the CSS? It would cut down on time. LOL.


Talliostro

#15
I really like this kind of menu, but can't get it to work.
So, my questions are:
Where do I add the code? I think it's a html Box, correct?
The problem atm is the javascript:void, because if I add the code to a html box and correct the links to my categories, the menu displays:
News>>
XY News
YZ news

Articles>>
Hobby
Models

and so on, so no mouseover effect like in your menu for the subcategories. Do I have to add something to the css file of my theme or what little aspect of coding am I missing here? ;)

IchBin

Its because you don't have the CSS that he is using. Either he'll have to post it, or you'll have to go to his site and view it to copy it.

bigdog

yup.  we had to make a special csshover and other changes to enable it.  I'd suggest just copying it off my site.  I don't have access to that file right now.

Crip

Lots of menus here to play with,
I used a few of  them.
http://cssmenumaker.com/index.php
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Talliostro

okay thanks alot guys, I will look over them tomorrow :)

This website is proudly hosted on Crocweb Cloud Website Hosting.