Buttons that indicate where you sit

Post your questions and problem reports here.

Buttons that indicate where you sit

Postby gervanveen » Sat Aug 18, 2012 5:10 pm

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
gervanveen
 
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Postby Aivars » Tue Aug 21, 2012 5:54 pm

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: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Postby Aivars » Thu Aug 23, 2012 3:22 pm

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Postby gervanveen » Fri Sep 28, 2012 7:12 pm

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
gervanveen
 
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Postby Aivars » Fri Sep 28, 2012 8:18 pm

The website doesn't display minor version numbers. Currently there is version 3.06 on the website.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Postby gervanveen » Sat Sep 29, 2012 7:14 pm

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
gervanveen
 
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Postby Aivars » Sun Sep 30, 2012 10:18 am

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Postby gervanveen » Mon Oct 01, 2012 12:35 am

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

Thanks for any help
gervanveen
 
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm

Re: Buttons that indicate where you sit

Postby Aivars » Mon Oct 01, 2012 1:10 am

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Buttons that indicate where you sit

Postby gervanveen » Mon Oct 01, 2012 11:49 pm

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
gervanveen
 
Posts: 9
Joined: Sat Aug 18, 2012 4:51 pm


Return to Easy Button & Menu Maker Support

Who is online

Users browsing this forum: No registered users and 8 guests

cron