double menus [solved] / css styling - new

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tmony
Beginner
Beginner
Posts: 3
Joined: Fri Mar 17, 2006 6:32 am

double menus [solved] / css styling - new

Post by tmony »

i have searched and searched and either i am missing it or something, but have not found an answer/solution.

i want to use the milonic menu, but am having a problem. the menu itself appears twice on the page...

in firefox, it appears once in the top-left, and also in my table (where i want it);

in IE they appear right on top of each other...

the link is, http://www.epsilonlambda.net/index2.htm

as of right now, i am just testing it. thanks in advance for any help.

- t
Last edited by tmony on Sun Mar 19, 2006 1:29 am, edited 1 time in total.
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

this is the main menu

Code: Select all

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
overflow="scroll";
:
:
}
it is, as you wanted, placed in a correct way using relative positioning, into your table. But you missed to remove it from the menu_data.js file,
that is why its appearing twice.

Another issue:
The syntax

orientation="verticle"; is not correct. must be vertical

You will say "but it works", that is correct too, because by default it is vertical, so you can take this "orientation=..."; out completely.

Michael
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

another issue, "home" changing to "Milonic"

please see FAQ, first question/answer

http://milonic.com/menufaq.php



Michael
tmony
Beginner
Beginner
Posts: 3
Joined: Fri Mar 17, 2006 6:32 am

Post by tmony »

what exactly needs to be removed from the menu_data.js file? im confused...

and i didnt ask anything about why there is a milonic link. that answer is already posted a million times on this site so its not relevant to this post.

- t
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

remove from the menu_data.js file the code

Code: Select all

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
overflow="scroll";
style=menuStyle;
aI("status=Back To Home Page;text=Home;url=http://milonic.com/;");
aI("showmenu=Samples;text=Menu Samples;");
aI("showmenu=Milonic;text=Milonic;");
aI("showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=My Milonic;text=My Milonic;");
}
You have the main menu in the table <td> cell, so why is this one still in the menu_data ?

It is very clear published
<HTML>
<HEAD>HEAD Contents
<BODY>
<SCRIPT>milonic_src.js
<SCRIPT>mmenudom.js or mmenuns4.js
<SCRIPT>menu_data.js (for submenus only)
<TABLE>
<TR>
<TD>
<SCRIPT>Relative Main Menu Definition
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
see http://milonic.com/tablemenu.php

and it was explained two million times in this forum


Michael
tmony
Beginner
Beginner
Posts: 3
Joined: Fri Mar 17, 2006 6:32 am

Post by tmony »

ok, thanks for the help, that works great...

however, i have a new problem. i wanted to custom design the colors including text colors and backgrounds but when i changed the

offbgcolor="#AE070E";

it only works on the first menu item (Home) and none of the others. however, i did some extensive searching and came across this edit:

onclass=menuon;offclass=menuoff

which you add to the " aI(onclass=menuon;offclass=menuoff;text=...... "

that in which you then add the classes to a stylesheet, which i did, and it gives me the background color i want, but the color only appears where the text is. it does not expand and fill the entire cell like it does in the HOME cell.

if this is not explained correctly, you can see it HERE
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

read this

http://milonic.com/cssbasedmenus.php
http://support.milonic.com/beginners/css_styling/

http://milonic.com/styleproperties.php
padding Sets the Menu Item Padding for any global menu style. Padding is the amount of white space between the text or other object and the menu item border. Padding values are in pixels.............
Example: padding=3;

Michael
Post Reply