Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:12:22 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: current menu item CSS  (Read 666 times)
shadowness

Offline Offline

Posts: 18


« 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.... Smiley

I would be very thankfull if you can help me!

Thanks Smiley
Logged
Bennie_wijs

Offline Offline

Posts: 230



WWW
« Reply #1 on: January 18, 2008, 01:32:27 PM »

Code is:
Code:
<LI class=menu-current>

This is the class that showmenu2 set for current menu item
Logged

I believe what I want to Believe
shadowness

Offline Offline

Posts: 18


« 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
Logged
shadowness

Offline Offline

Posts: 18


« Reply #3 on: January 18, 2008, 03:57:30 PM »

oh!!!!!!!!! ok.... i figure it out!!!!!!!!!!! Smiley it's working now many many many thanks! Smiley
Logged
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!