Buttons that indicate where you sit

Post your questions and problem reports here.
Post Reply
gervanveen
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Buttons that indicate where you sit

Post by gervanveen »

Hello
sorry for my english

I make the menu on a Web page, to use them on multiple pages I read it with php include. The advantage is that if there are pages written in come or removed a page but I need to update the entire site.

But what I can not do with that, if you're on a page then I am the enclosed button appears when mouse over so you can see what page you are.

Is there a possibility.

greeting
Ger
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Post by Aivars »

You can try this:

1) Do not use javascript file (remove <script> tag that Easy Button & Menu Maker generates).

2) Add class "expanded" to those li items that you want to define as active, e.g. <li class="topitem spaced_li expanded">.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Post by Aivars »

Version 3.06 allows using special class "active" for li elements to mark active menu section. This works with both css-only and javascript-assisted menus.

e.g. <li class="topitem spaced_li active">
Blumentals Software Programmer
gervanveen
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Post by gervanveen »

When I look at the website I see version 3 How can I see the version 3.06 and how can I tell which version I have. For me, version 3.0
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Post by Aivars »

The website doesn't display minor version numbers. Currently there is version 3.06 on the website.
Blumentals Software Programmer
gervanveen
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Post by gervanveen »

Aivars wrote:Version 3.06 allows using special class "active" for li elements to mark active menu section. This works with both css-only and javascript-assisted menus.

e.g. <li class="topitem spaced_li active">
I tried this but it does not work, I use a menu with buttons and no css.
I have version 3.06
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Post by Aivars »

Sorry, I forgot to mention that class active currently works with CSS, not image-based menus. You can edit the CSS file manually though to make it work.

1. Look for lines like these (should be near the end of the file):
#mbmcpebul_table.css_menu a:hover div.buttonimg_30, #mbmcpebul_table a.itemhot div.buttonimg_30 {
background-position: 0 -30px;
}

2. Modify (copy & paste the selector and add li.active in 2 places) and remove :hover and .itemhot from the copy:
#mbmcpebul_table.css_menu a:hover div.buttonimg_30, #mbmcpebul_table a.itemhot div.buttonimg_30, #mbmcpebul_table.css_menu li.active a div.buttonimg_30, #mbmcpebul_table li.active a div.buttonimg_30 {
background-position: 0 -30px;
}

Or you can send me your CSS file and I'll modify it for you.
Blumentals Software Programmer
gervanveen
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Post by gervanveen »

I chose the option with css, with itemhot.
See this site http://cupcake-couture.nl

Thanks for any help
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Post by Aivars »

What a sugary sweet page! Now make those small cupcake images clickable so we can see huge pictures of all of that deliciousness :)
Blumentals Software Programmer
gervanveen
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Post by gervanveen »

Aivars wrote:What a sugary sweet page! Now make those small cupcake images clickable so we can see huge pictures of all of that deliciousness :)
This site I made for my daughter and she wanted the website clearly was sweet, so your commentary confirmed that I have succeeded anyway.
Clicking on the pictures I've made ​​a nice effect, you're right, the pictures are very small.

thanks for your comments and help

Ger
Post Reply