Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:15:23 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: How to change menu coding?  (Read 1039 times)
mantisinc

Offline Offline

Posts: 4


« on: December 07, 2007, 08:28:38 PM »

Hi Guys,

I was wondering how to change the actual source of the menu? Or, even if I need to?
I've seen some fantastic menus, and here is one I would like to impliment:

http://www.dynamicdrive.com/style/csslibrary/item/inverted-shift-down-menu-ii/

However, when I apply the style to the current menu I have, it just looks all screwy.

Any idea how I would apply a style such as that to the WB menus, or would I have to change the source to adapt to that particular menu style/format?

Thanks in advance!
Logged
marathoner

Offline Offline

Posts: 495


« Reply #1 on: December 08, 2007, 02:20:31 AM »

The example that you show is a relatively simple CSS menu. It centers around a class called "invertedshiftdown2" and the list elements within that wrapper. You didn't provide any additional info such as a URL or template so I have no idea what CSS classes you are currently using.

You could probably alter the output of your menu (the specifics will depend on if your are using show_menu2 or not) but it's probably easier to look at the output of your current menu and simply rename the "invertedshiftdown2" to whatever you need.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #2 on: December 08, 2007, 07:21:54 AM »

Hello,

Two ways how to solve this:

1.) As marathoner suggest look at the source code of your generated menu and change the css from dynamic drive to use the classes of your actually menu.

2.) Adapt the menu call of WB to generate the classes you need for the menu of dynamic drive. Depend on wich menu you use you can find the parameters here:

http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php#anker3
http://code.jellycan.com/sm2test/

Matthias
Logged
mantisinc

Offline Offline

Posts: 4


« Reply #3 on: December 08, 2007, 04:09:02 PM »

Hi Guys,
Thanks for your help. I didn't realise you could specify the actual html in the menu string.
I'm currently using "<li>[a][menu_title]</a></li>"
How would I set the styling for the "current" class on the li?
For example in the original script, we have:

<li><a href="http://www.dynamicdrive.com/new.htm" title="New">New</a></li>
<li class="current"><a href="http://www.dynamicdrive.com/revised.htm" title="Revised">Revised</a></li>


With the "current" class displaying a different style.
How would I impliment this into the menu?

Thanks again!
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #4 on: December 08, 2007, 09:31:34 PM »

by applying the class name to $current_class ... please read the links Matthias posted ... it's explained there.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!