Author Topic: current menu item CSS  (Read 2387 times)

Offline shadowness

  • Posts: 18
current menu item CSS
« on: January 18, 2008, 11:09:01 AM »
hello everyone,

i've got a question... i can't figure it out the solution to my problem.

my layout has a Tab menu powered with CSS and showmenu2... every time a link is clicked it shows a new page... and i would like to "mark" that menu item with css!

I mean... imagine a tab system... once you click on your choice... that link is highlighted to show which tab you are seeing. Thats what i want to do...

My menu:

show_menu2(1, SM2_ROOT+1, SM2_START);

The way i highlight:

<li class="current_page_item"> LINK </li>

I found some info on http://code.jellycan.com/sm2test/ by i'm kind lost.... :)

I would be very thankfull if you can help me!

Thanks :)

Offline Bennie_wijs

  • Posts: 229
  • Gender: Male
  • I believe what I want to Believe.
    • www.www.motortreffen.net
Re: current menu item CSS
« Reply #1 on: January 18, 2008, 01:32:27 PM »
Code is:
Code: [Select]
<LI class=menu-current>
This is the class that showmenu2 set for current menu item
I believe what I want to Believe

Offline shadowness

  • Posts: 18
Re: current menu item CSS
« Reply #2 on: January 18, 2008, 03:51:35 PM »
hummm... and for example, how can i apply a <b> tag to current menu title??? i mean, click on "about us", after the page loads i would like a <b> tag in the menu...

the way i show the menu is: show_menu2(1, SM2_ROOT+1, SM2_START);

The code goes like this???


show_menu2(1, SM2_ROOT+1, SM2_START, ' <LI class=menu-current>[a][menu_title]</a>', '</li>');

ty

Offline shadowness

  • Posts: 18
Re: current menu item CSS
« Reply #3 on: January 18, 2008, 03:57:30 PM »
oh!!!!!!!!! ok.... i figure it out!!!!!!!!!!! :) it's working now many many many thanks! :)

 

postern-length