The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Icon navbar with dropdown menus and submenus
Hi all, first off I posted this template edit https://vborg.vbsupport.ru/showthread.php?t=262376
Basically this is the effect I've got up to now. And here is the code I used. HTML Code:
<!-- Navbar Icon Links --> <div align="center"> <table class="body" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr align="center"> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> <td class="vbmenu_control"> <li class="popupmenu"><a href="Catergory Link Goes Here"><center><img src="Image Link Goes Here" alt="Alt Description Goes Here"></center></a><p><center><a href="javascript://" class="popupctrl" accesskey="6"><b>Catergory Name Goes Here</b></center></p></a> <ul class="popupbody popuphover"> {vb:raw template_hook.navbar_community_menu_start} <li><a href="Link 1">Forum Name 1</a></li> <li><a href="Link 2">Forum Name 2</a></li> <li><a href="Link 3">Forum Name 3</a></li></td> </tr> </table> </div> <!-- / Navbar Icon Links --> The first problem is I'm using tables the old way and I really wanted to get this up to the XHTML standard. So after a bit of reading I added this to the additional.css template. HTML Code:
/* ***** table for icon navbar with menus ***** */ .table { width:100%; } th { padding:20px; } HTML Code:
<!-- Navbar Icon Links With Menus--> <div class="table" align="center"> <tr> <th><img src="images/misc/home.png"></th> <th><img src="images/misc/vip.png"></th> <th><img src="images/misc/mp3.png"></th> <th><img src="images/misc/mic.png"></th> <th><img src="images/misc/euro.png"></th> <th><img src="images/misc/tv.png"></th> <th><img src="images/misc/console.png"></th> <th><img src="images/misc/ebook.png"></th> <th><img src="images/misc/mobile.png"></th> <th><img src="images/misc/apple.png"></th> <th><img src="images/misc/pc.png"></th> </tr> </div> <!-- / Navbar Icon Links With Menus--> Currently with the above code in this is how it looks, compared to what I've already done. The second problem is how to add submenus to the current dropdown menus, to look something like this. I posted in this thread https://vborg.vbsupport.ru/showthrea...wpost&t=228338 as the code I've originally used has been pulled from the navbar template. RobbieZ has offered to help a little with this but I'd really like to learn the theory behind all this, I've learned loads in the past 18 months but feel like I'm just at the tip of the iceberg with coding as there are so many different languages to learn. I've been looking at DHTML menus because Lynne kindly pointed me in that direction and I've also been reading up on Javascript but theirs that much info out there it's hard to know what is relevant to my needs. I was looking at this http://www.dynamicdrive.com/dynamici...menu/index.htm but I've got to be honest the amount of CSS and Javascript is blowing my mind, I was hoping to replace some of the CSS classes such as body backgrounds and hover backgrounds with the VB stylevars, to make the menus universal for all skins, but like I say it's all going a bit over my head and I'm sure there must be a more simplistic way of going about it all. Anyway thanks for reading, hopefully some of you kind people can share your knowledge and help out on this project of mine. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|