WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Menu problem!
Housy:
Hello :-)
On the picture above you see the menu and here is a little problem that i have. Actually i don't really even know where to start to be honest, because i want as well active menus, that means, when i'm on the page contact for example, button contact is coloured like home (see picture) and when i click on download, the same thing happens and so on. I was thinking to use the <ul> tag, but then i don't know how to continue, cause i have no idea, how should i slice those images and how to make active buttons.
Can someone please tell me how to deal with that problem, so everything would work perfectly?
Sorry about my english, i hope i explained as good as possible.
Thank you,
Housy
Argos:
--- Quote from: Housy on July 22, 2009, 08:31:21 PM ---I was thinking to use the <ul> tag, but then i don't know how to continue, cause i have no idea, how should i slice those images and how to make active buttons.
--- End quote ---
Well, I suggest looking for a WB template with graphic menu buttons, and see how it's done.
Housy:
--- Quote from: Argos on July 22, 2009, 09:42:16 PM ---
--- Quote from: Housy on July 22, 2009, 08:31:21 PM ---I was thinking to use the <ul> tag, but then i don't know how to continue, cause i have no idea, how should i slice those images and how to make active buttons.
--- End quote ---
Well, I suggest looking for a WB template with graphic menu buttons, and see how it's done.
--- End quote ---
Yes i did that, thank you and i found a piece of the code, which is:
<?php show_menu(1,0,-1,true,'<li>[a][menu_title][/a]</li>','','<ul>','</ul>','','class="current"'); ?>
Can you please explain me, how exactly that works? Because instead of
--- Code: ---[i]<li>[a][menu_title][/a]</li>[/i]
--- End code ---
i'd probably have something like
--- Code: ---<li>[a]<img>LEFT SIDE OF GRAY BUTTON[</img>[menu_title]<img>RIGHT SIDE OF GRAY BUTTON</img>[/a]</li>
--- End code ---
and in CSS i would define a like { background-image: url("gray_button_backgro und.png"); } and for the current page i'd just change gray images and background to red if you know what i mean.
P.S. --> I haven't seen any identical or that complicated menu in the WB templates section.
Thank you,
Housy
Argos:
It's not that easy. You'll probably have to work with conditional statements and show_menu2 (http://code.jellycan.com/show_menu2/). I can't help you. Figuring out this kind of stuff can take hours if not days. Try to find a template that does what you want as close as possible. Look for newest templates, that use show_menu2 instead of show_menu.
Housy:
--- Quote from: Argos on July 22, 2009, 10:07:33 PM ---It's not that easy. You'll probably have to work with conditional statements and show_menu2 (http://code.jellycan.com/show_menu2/). I can't help you. Figuring out this kind of stuff can take hours if not days. Try to find a template that does what you want as close as possible. Look for newest templates, that use show_menu2 instead of show_menu.
--- End quote ---
Thank you, i'll try to do that, but i'm not that good in code (PHP) :-( i'll atleast try and if there will be any problem, i'll be back :-D
Navigation
[0] Message Index
[#] Next page
Go to full version