Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:10
double menus [solved] / css styling - new
Poster: tmony
Dated: Friday March 17 2006 - 5:52:01 GMT
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
Poster: Migru
Dated: Friday March 17 2006 - 7:13:00 GMT
Hi
this is the main menu
Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
overflow="scroll";
:
:
}
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
Poster: Migru
Dated: Friday March 17 2006 - 8:38:55 GMT
Hi
another issue, "home" changing to "Milonic"
please see FAQ, first question/answer
http://www.milonic.com/menufaq.php
Michael
Poster: tmony
Dated: Friday March 17 2006 - 12:21:21 GMT
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
Poster: Migru
Dated: Friday March 17 2006 - 12:26:46 GMT
remove from the menu_data.js file the code
Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
overflow="scroll";
style=menuStyle;
aI("status=Back To Home Page;text=Home;url=http://www.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;");
}
alwaysvisible=1;
overflow="scroll";
style=menuStyle;
aI("status=Back To Home Page;text=Home;url=http://www.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
Quote:
<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>
<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://www.milonic.com/tablemenu.php
and it was explained two million times in this forum
Michael
Poster: tmony
Dated: Sunday March 19 2006 - 0:36:03 GMT
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
Poster: Migru
Dated: Sunday March 19 2006 - 7:35:03 GMT
Hi
read this
http://www.milonic.com/cssbasedmenus.php
http://support.milonic.com/beginners/css_styling/
http://www.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