Zen Cart Logo
Forums / Addon Sideboxes / Support for CSS Flyout Menu

Support for CSS Flyout Menu

Views: 180,521

Results 281 to 300 of 755
29 Apr 2009, 9:48 PM
#281
ethical avatar

ethical

New Zenner

Join Date:
Mar 2009
Posts:
57
Plugin Contributions:
0

Support for CSS Flyout Menu

thanks for your reply and your right, I did make that work now thanks. I still have 1 minor issue.

  1. Any sub menu item that has a further submenu displays the background color that is the same as the top level background, (on your site its grey, on mine white)
    my question here is how can I set a different color for any submenu item that has a further submenu?

also Do you have a suggestion on a style editor?

thanks so much!

29 Apr 2009, 11:07 PM
#282
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Support for CSS Flyout Menu

ethical:

hey get em thanks. I decided to work with the new code that ckosloff posted and it works a lot better. I am just curious to know what code i need to add/edit to:

set a different hover and background colour for the submenu items then those that I have set for the top level menu items.

the menu is live at the moment http://mypumpkindoodle.com/store

thanks

John

Here is a menu that's designed right off your site, so everything but the colors are the same, except with the added scroll in your level 4 menu since it was soooooooooo long.
The colors have been "mapped" out. Each level's color is shown as a color (red, green, blue, etc) instead of being hex colors.

Anyone else who uses this for a reference to change background colors, KEEP IN MIND: This was NOT customized for your site!!! This is just a color "map" for you. In THIS css, the only level that will scroll is level 4, but if you need another level to scroll, leave everything the same except the 2 level numbers, and the desired height of your scrolling box. In other words, if you need level 3 to scroll, it would look like this:

div#nav-cat ul.level2 li.submenu:hover ul.level3 { height: 200px;overflow: scroll;}[code]
This (above) tells your menu to scroll level 3 when you hover on level 2.

Any questions?

[code]
body {  
         behavior: url(includes/csshover.htc);
} /* WinIE behavior call */
div#nav-cat {
     margin-top: 0em;
     background-color: #ffffff;
     width: 100%;
     margin-left: auto;
     margin-right: auto;
     font-weight: bold;
     font-size: 1.3em;
}
div#nav-cat ul {
     margin: 0em; 
     padding: 0em; 
     width: 100%;  
     z-index: 1000;
     line-height: 14px;
     border: none;
}

div#nav-cat ul.level2 {background-color: #ffffff;}
div#nav-cat ul.level3 {background-color: #ffffff;}
div#nav-cat ul.level4 {background-color: #ffffff;}
div#nav-cat ul.level5 {background-color: #ffffff;}
div#nav-cat ul.level6 {background-color: #ffffff;}

div#nav-cat li {
     z-index: 1; 
     position: relative;
     list-style: none; 
     margin: 0;
     margin-top: 0; /* change it to whatever space you want to put space between buttons*/
     border-bottom: 1px solid black; /* <---this line may help or hinder IE menu shifting issues. */
     background-color: pink; /*Sets background of Menu items that DOES NOT have sub-menu's SYSTEM WIDE!!! */
    
}
div#nav-cat li li {
    margin-left: 0em;/* This puts space between menu and sub-menu, reccomend to leave at 0 unless you have over-lapping problems. */
    background-color: salmon; /* sets the background of submenu ,WITHOUT submenus, when menu is HOVERED */
} 
div#nav-cat li:hover {background-color: green;} /* sets the HOVER background of any MENU item that DOES NOT have submenu items */
div#nav-cat li.submenu {background-color: blue;} /* sets the background of any menu item that DOES have submenu items */
div#nav-cat li.submenu:hover {background-color: red;} /*sets the HOVER background of any menu item that DOES have submenu items */



div#nav-cat li a {background-color: transparent; /*<---This will set the background color of the WHOLE MENU, EVERY LEVEL, SYSTEM WIDE!!! If you want different colors, DON'T CHANGE THIS!!! */
    display: block;
    padding: 0.25em 0 0.3em 0em;
    text-decoration: none; 
    width: 100%;
    color: white; /* sets the font color of the menu, SYSTEM WIDE!! In order to over-ride the font colors for the menu, and have different 
    colors for each level, such as font color changing when you hover, you need to remove any MENU colors  referred to in your
    stylesheet.css, as they over-ride this stylesheet! (includes/templates/YOUR_TEMPLATE/css/stylesheet.css) */
}

div#nav-cat ul ul {
    position: absolute; top: 0; left: 100%;
    display: none; z-index: 1000;
}

div#nav-cat ul.level1 li.submenu:hover ul.level2, 
div#nav-cat ul.level2 li.submenu:hover ul.level3,
div#nav-cat ul.level3 li.submenu:hover ul.level4,
div#nav-cat ul.level4 li.submenu:hover ul.level5,
div#nav-cat ul.level5 li.submenu:hover ul.level6 {
        display:block;
}
div#nav-cat ul.level3 li.submenu:hover ul.level4 { height: 200px;overflow: scroll;}
```Hope this helps everyone "map" out their colors.
And also resolve the life-long question of "How can I get my menu to scroll, because it's so long.".
29 Apr 2009, 11:55 PM
#283
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Get Em Fast:

Here is a menu that's designed right off your site
Get em Fast, it's a blessing that you are back, because the issue of submenus overlapping has dogged many users, I could never articulate an answer within the menu with images (maybe there isn't any...).
The comments in your CSS are what users need, I'm not much good at that because I just use the settings I find.
So, why don't you rewrite the mod, with comments et al.
I know, I know, when you have the time.

30 Apr 2009, 12:11 AM
#284
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Support for CSS Flyout Menu

ckosloff:

Get em Fast, it's a blessing that you are back, because the issue of submenus overlapping has dogged many users, I could never articulate an answer within the menu with images (maybe there isn't any...).
The comments in your CSS are what users need, I'm not much good at that because I just use the settings I find.
So, why don't you rewrite the mod, with comments et al.
I know, I know, when you have the time.

Yea, that was a quick edit. I've thought for a ling time that I should "map" out those pesky little colors so the average user could change them with a little more ease. And the scrolling thing was something that you AND I worked on a long time ago, but couldn't ever get it quite right. We tried to limit the actual number of items displayed before it started scrolling.....Ha!! All we had to do was set the damn height on the box!! Go figure.
Now, just wait until somebody actually uses levels 5-∞.....:huh:

Also, I haven't checked to see if another level beyond the one that scrolls will even show up......(today's to-do list).

Back with an up-date (to this post) in a little bit.

Update to Menu: When I think it's PERFECTLY self-explanatory.

30 Apr 2009, 12:36 AM
#285
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Support for CSS Flyout Menu

ethical:

Do you have a suggestion on a style editor?

Sorry, I missed that question (good thing I go back and re-read posts, huh?), although a little irrelevant to this thread (hint: should have pm'd that one). Ckosloff is my thread security.....he'll get you for that.....:D

Everybody has their preference of editors, with some swearing by nothing but notepad to do ALL their coding. Myself, I like to see EVERYTHING in "action", so I use DevPHP for ALL of MY needs. When I go to somebody Else's site (like yours) to edit something (like your menu), then I use the Web Developer Add-on for FireFox, then save to a simple text file (with notepad or wordpad), then upload it to you or the forum.

You might also enjoy THIS THREAD.

30 Apr 2009, 12:50 AM
#286
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

I have already made my suggestion, more than once.
Here's an example:
http://www.zen-cart.com/forum/showpost.php?p=702796&postcount=254
It's what I use, but I don't like to suggest, because, yes, that might lead to off-topic discussions and then site security would kick in.

30 Apr 2009, 1:02 AM
#287
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

div#nav-cat li li {
    margin-left: 0em;/* This puts space between menu and sub-menu, reccomend to leave at 0 unless you have over-lapping problems. */
    background-color: salmon; /* sets the background of submenu ,WITHOUT submenus, when menu is HOVERED */
} 

Your comment is of course right, I just wanted to add that if you set margin-left to anything but 0, IE6 will have unexpected behaviors.
That browser has caused lots of grief, until I finally got it workable, not perfectly right.

30 Apr 2009, 1:26 AM
#288
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Support for CSS Flyout Menu

ckosloff:

div#nav-cat li li {
margin-left: 0em;/* This puts space between menu and sub-menu, reccomend to leave at 0 unless you have over-lapping problems. /
background-color: salmon; /
sets the background of submenu ,WITHOUT submenus, when menu is HOVERED */
}

> That browser has caused lots of grief, until I finally got it workable, not perfectly right.


Absolutely correct. Some browsers do treat this differently. When you get to the right side of the menu, just about to touch the sub-menu, the sub-menu will disappear! Sometimes you actually NEED to set a negative number on this (-0.1em;) which will overlap just a hair, but keep sub-menu in view.
Good catch. Thanks. I will also put that in comment section of css.
30 Apr 2009, 2:57 AM
#289
ethical avatar

ethical

New Zenner

Join Date:
Mar 2009
Posts:
57
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

thank you both for your help! great mod and great support. seems to be working well for me thanks again.

30 Apr 2009, 3:14 AM
#290
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Support for CSS Flyout Menu

ethical:

thank you both for your help! great mod and great support. seems to be working well for me thanks again.

Anytime, ethical. That's what this place is all about. We got great software for FREE, so helping each other with it, is just the "ethical" thing to do.

Yes...........the pun WAS intended :smartalec:

Oh........sorry for taking so long on the reply, but as you can see, I was working on something that answered several questions at once. And a new scroll feature that has NEVER been implemented into this script until now.

Enjoy, for now. Still working on it.

4 May 2009, 4:24 PM
#291
caralyn avatar

caralyn

New Zenner

Join Date:
Mar 2009
Posts:
52
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Absolutely correct. Some browsers do treat this differently. When you get to the right side of the menu, just about to touch the sub-menu, the sub-menu will disappear! Sometimes you actually NEED to set a negative number on this (-0.1em;) which will overlap just a hair, but keep sub-menu in view.
Good catch. Thanks. I will also put that in comment section of css

Hey I am having the same problem, it does apear to be margin related...one of the catagories is working fine, the others all disapear when you mouse over to the right on the css menu. Would that be found on the main stylesheet.css or on the stylesheet_catagories_menu.css? Maybe find the code on both?

I am using the Easy Flyout menu, 1.3.8. I finally figured out how to change the colors =) on my version5 site, the version5 site is not having this problem though. Could it be conflicting with Ez checkout? my real store is at realridertack org

4 May 2009, 5:33 PM
#292
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Caralyn:

I am using the Easy Flyout menu, 1.3.8. I finally figured out how to change the colors =) on my version5 site...
Please post your question in the appropriate thread.

4 May 2009, 7:39 PM
#293
caralyn avatar

caralyn

New Zenner

Join Date:
Mar 2009
Posts:
52
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

what is the apropriate thread for this? I though this was the support for css flyout menu
Thanks! Let me know

4 May 2009, 7:52 PM
#294
jfreak419 avatar

jfreak419

New Zenner

Join Date:
Apr 2009
Posts:
3
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Can SOMEONE PLEASE HELP ME...

its very simple but i cant seem to figure it out myself...

All i need is the submenu beside the categories i dont need the 3rd and 4th and 5th and 6th level

How can i go about only having a second level?

Please help my deadline is in a week.:smile:

4 May 2009, 8:38 PM
#295
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Caralyn:

what is the apropriate thread for this? I though this was the support for css flyout menu
Thanks! Let me know
Let me know what is Easy Flyout 1.3.8 and version5, then maybe we will be able to help.

4 May 2009, 9:49 PM
#296
caralyn avatar

caralyn

New Zenner

Join Date:
Mar 2009
Posts:
52
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Originally Posted by Get Em Fast
That sounds like a winner...

OK, quick and dirty.
This is exactly what I use on my site.
It works fine and cross-browser, and it has all the latest enhancements.
However, it is tailored to my use.
All the customizations I used are in the thread, so customization shouldn't be a problem.
Nevertheless, there is still a small glitch, and it comes from the navigation in categories_ul_generator.php (so I think).
It is the version I got from lankeeyankee, it fixes all the breadcrumbs navigation problems, but when you click on a master category, the sub-cats show duplicated: one for the text and the other one for the image you can input.
Inputting the image will not solve the problem, it still shows both.
Minor problem, though.
The image hovers if you have IH2 installed.
PS. Get 'em Fast: your review is welcome, feel free to use in upcoming version.
Forget the credit, I just want $$$ ;-)
Attached Files NewCSSFlyout.zip (9.6 KB, 10 views)

Recommended I try this one instead...parts of conervsaton in posts 255? to 264?

It is the NewCSSFlyout mentioned here.....

What controls the width of the column...I must have uncommented something.....

And thanks! realrider tack org

5 May 2009, 12:12 AM
#297
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

jfreak419:

its very simple but i cant seem to figure it out myself...
Don't you understand that this menu reads from the categories in the database?
If you only have a subcat, then it will only read that one.
You don't have a problem, only you imagine you do.

5 May 2009, 12:17 AM
#298
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

Caralyn:

Recommended I try this one instead.
What column?
Admin --> Configuration --> Layout settings.
Has nothing to do with this mod.
There is a support forum for that: page layout.
Last time I answer an unrelated question posted by you.

5 May 2009, 8:09 PM
#299
jfreak419 avatar

jfreak419

New Zenner

Join Date:
Apr 2009
Posts:
3
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

no see the thing is... i do have 3rd level subcategories but i dont want them to appear i only want the second level of categories to fly out... not the 3rd 4th 5th or 6th level.... so how do i go about doing that?

5 May 2009, 10:25 PM
#300
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Support for CSS Flyout Menu

jfreak419:

...not the 3rd 4th 5th or 6th level...
First time I see a request like this because, what would be the purpose of having subcats if you don't want them to show in the menu?
There are several solutions to this:

  1. Don't do subcats, just do EZ pages and link to them from the cat description.
  2. Hack the code of the menu, very difficult.
  3. Try hacking the CSS like display: none, but then how would you access the subcats?
    Looks more like a philosophical than a support question.