ChrisDJ Posted June 30, 2003 Posted June 30, 2003 I just added coolMenu to my site. It works well with one exception. The box that contains the menue is WAY too big. You can see what I mean here: http://www.rbbdirect.com/catalog Any ideas? Quote
ChrisDJ Posted June 30, 2003 Author Posted June 30, 2003 Another quick one: How do you kill the fade and just make the subcategories pop up? Quote
ChrisDJ Posted June 30, 2003 Author Posted June 30, 2003 Ok, so I have an idea... In coolmenu.php there are these lines of code: $categories = tep_get_categories(''); $height.= 2.65*count($categories); I believe these two lines of code set the height of the box. Additionally I believe that the code is counting main categories, and sub-categories, thus making the box too tall. Does this sound like a probable cause? I'm not a complete programming novice, but I don't know PHP syntax so a little help on some code to fix this problem would be helpful. Thanks! Quote
ChrisDJ Posted June 30, 2003 Author Posted June 30, 2003 Boy, I like talking to myself... I've instituted a temporary fix. I manually set the height of the box. However, I would really like to find a solution to the problem so I don't have to manually change the box size every time I add a category. Quote
ChrisDJ Posted June 30, 2003 Author Posted June 30, 2003 I figured it all out. Nevermind my constant rambling. :? Quote
loxly Posted June 30, 2003 Posted June 30, 2003 Can you share what you discovered through your ramblings? Others may need the same information. I think the box is still too tall, but the subcategories show up without the fade in. Quote [no external urls in signatures please, kthanks]
ChrisDJ Posted July 1, 2003 Author Posted July 1, 2003 To change the height I adjusted the multiplier in this snippet of code: $height.= 2.65*count($categories); from 2.65 to something smaller. In my browser it fits just about perfect now. Can I ask what browser you're looking at it in? To kill the fade I commented out these two lines of code: oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)" and oCMenu.level[' . $i . '].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)" Both are in coolmenu.php Quote
loxly Posted July 1, 2003 Posted July 1, 2003 I use IE most of the time. Quote [no external urls in signatures please, kthanks]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.