Bgcolor gets stuck when clicked on

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Bgcolor gets stuck when clicked on

Post by Fredrik Johansson »

Hi!

I have 2 menus, one with sub menus and another without.

When at the one with submenus, every time when a new mainitem is clicked, the color changes to clickbgimage. Thats fine.
When a new mainitem is clicked the highligthed one changes back to offbgcolor. Thats fine too.
http://www.cool-engineering.se/milonic/sub/sub.htm

When at the one without submenus, every time when a new item is clicked, the color changes to clickbgimage. Thats fine.
When a new mainitem is clicked the highligthed one DOESNT change back to offbgcolor. :(
http://www.cool-engineering.se/milonic/nosub/nosub.htm

The singleMasterMenu=true in both files

Any ideas?
/Fredrik
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Must be a tricky one.

Post by Fredrik Johansson »

Hmm!

No answers. this must be real tricky to solve.
Maybe I just have to give up on this.

/Fred
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I've been checking it, but not getting anywhere yet. Try the newest version of the menu and see if that fixes the problem. In the meantime I'll keep at it.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Note the newest version is 5.757, just released a few hours ago.
John
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Post by Fredrik Johansson »

I have just uploaded v5.758 but there is no difference.

However. The problem above could perhaps be released since we have decided to use pictures instead of a one color background.
BUT, there is always a but. I am not all happy with the behavior right now. I would like to have the clicked menuitem with picture still loaded until I click on something else. Exakt the same behavior as in
http://www.cool-engineering.se/milonic/sub/sub.htm

Please compare it with the menu on the main site.
http://www.cool-engineering.se chose the topmenu option "Produkter och Tjänster" wich means Products and services.

I know it should work since in the collapsible tree menu example at Milonic it works in exactly that way.

Cheers
/Fredrik
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I must be lost here, I can't find a Milonic Menu on the main site, nor any coding for Milonic on that top_menu_sv page.


Ruth
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Post by Fredrik Johansson »

Hi!

There are 2 Milonic Menus on this site.
The first one shows up if you click on "Om Cool Engieneering" on the top menu. The path for this menu is:
./sv_files/index_om_sv_files/left_menu_om_sv.htm
./sv_files/index_om_sv_files/collapse_data.js

The second on shows if you click on "Produkter & Tjänster" on the top menu. The path for this menu is:
./sv_files/index_produkter_sv_files/left_menu_produkter_sv.htm and
./sv_files/index_produkter_sv_files/collapse_data.js

All the other menufiles are located at:
./menu

The top menu controls which Milonic menu that should be opened

Regards
/Fredrik
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Just to let you know that I have found the problem and I'm now working on a fix.
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Post by Fredrik Johansson »

That sounds great!

/Fredrik
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I'm not really sure I understand what you want. Do you want the image you see when you mouseover the menu to remain when you click on an item, so that image will be visible until you click on another item, and then it would go back to just text?

If that is the case, this is what you need to do. Create another image the same size as the left_menu_btn_2.jpg, but make it a gif and save it as transprarent, as an example, name it bg.gif, then code your file like this

Code: Select all

bgimage="bg.gif";
overbgimage="left_menu_btn_2.jpg";
clickbgimage="left_menu_btn_2.jpg";
This means when you first go there, you see the plain text, when you mouseover you see the left_menu_btn_2.jpg background and when you click you see that and it stays that until you click another item.

I think Andy was speaking about the click bgcolor problem.

Ruth
Last edited by Ruth on Mon Sep 11, 2006 12:05 pm, edited 1 time in total.
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Post by Fredrik Johansson »

Hi!
Your discription is exactly what I want.

But I have already tried this but I used a white button (also gif) instead of a transparent. However, I had to try with a transparent one as well but there is no difference.
As soon as I move the mouse (mouseout) from a particular button, the background is changed back to what is defined in bgimage. I dont have to click on something else for the background to change.
I have just tried this locally so the files on the server are not updated.

Andy (a teammember) wrote he had found something and was working on it earlier in this topic.

/Fredrik
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hello,

The image will not 'remain' with just mouseover. You would have to click the item to get the clickbgimage -which is the same as your mouseover bgimage - to remain until you clicked some other item.

I just tested in IE, FF and NN and it works, I mouseover and the silvery-blue bg appears, I mouse off and it goes back to text only, and I click and it changes to that silvery bg and stays that way until I click something else.

Ruth
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Post by Fredrik Johansson »

Hi!

I know I have to click on the button before clickimage becomes activated.
I must have explained me poorly. Sorry.

But the behavior that you have is exactly how I want it to appear.
I have tried this with both IE6 and Opera9 and the behavior is this:
Before starting = white,transparent button/no background OK
Mouseon = faded background OK
Click a button = still faded button OK
Mouseoff = white,transparent button/no background Not OK should still be activated
Click a new button = faded background OK

This is very strange. I hade to try another computer at the office just to make sure. ;)

But it looks as described above.

On the other hand, it is nice that it works for others as I want but sad I dont know why. :?

Fredrik
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I just went and downloaded your collapse_data.js file again. It's the same as you originally had.

Code: Select all

//bgimage="../../pics/menu/left_meny_btn_2.jpg";   //left_meny_btn_white.gif
overbgimage="../../pics/menu/left_menu_btn_2.jpg";
clickimage="../../pics/menu/left_menu_btn_2.jpg";
This is where you need to change and put in the new transparent image as bgimage, and then the rest as they are.

Ruth
Fredrik Johansson
Advanced
Advanced
Posts: 12
Joined: Wed Aug 23, 2006 4:47 pm

Post by Fredrik Johansson »

Hi!

I tried to tell you before that I have tried this locally on my HDD.
But now I have uploaded a changed file to the server as well.
I created a transparent file with the same size as the other file.

And this just doesn´t seem to work.
I still dont get the clickbackground to remain until I click on something else.

Fredrik
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Now, I have the same problem that you do. That is strange, it seems to work if all the files are in the same folder on my desktop. I wonder if it would work if you put the images in the folder with the data file? It seems strange since the clicksubimage seems to work fine.

Hopefully, Andy has narrowed the problem.

Ruth
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Just following this one up - I know I said I found the problem and would get a fix put together but cannot remember if I did or not.

Do I still need to do anything with this issue?

-- Andy
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Andy,

I don't have the files anymore, but when I checked at the site it seems to be working fine in the collapsible menu. http://www.cool-engineering.se/ Then click on the Produkter & Tjänster. The collapse menu appears at the left.

If he is talking about the top menu, as far as I can tell that is not a Milonic menu and so the program won't 'fix' that.

Ruth
rjmjr9
Advanced
Advanced
Posts: 20
Joined: Sat Oct 28, 2006 9:32 pm

This is still needed to be worked on

Post by rjmjr9 »

I need this behavior also. Has anything been done to fix this?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

We need a page to see what's going on with yours.

Ruth
Post Reply