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:49
Transparent menu item
Poster: JP
Dated: Wednesday January 7 2004 - 22:43:30 GMT
Hi!
How can I turn just one item in my menu as transparent and not all of it?
Thanks.
Poster: Ruth
Dated: Thursday January 8 2004 - 0:09:50 GMT
Well, all I can think of is that you make that item out of an image with a transparent background.
Ruth
Already done but...
Poster: JP
Dated: Thursday January 8 2004 - 14:32:45 GMT
I had already done that but the background for that menu item is white so the transparent don't occur. How can I have all the items of my menu in white and one of it transparent? It's simple, no? Can Milonic menu do this?
Poster: pretty
Dated: Friday January 9 2004 - 11:20:18 GMT
to put a menu transparent u may use a tip
as color for backgroup put any link to any image truth or not doesn't matter, it will make it be transparent.
by the way to have only one item transparent u will have to set 3 menu one with only 1 item and a style transparent and the two other with one style white... and justconfigurate it to be settled each other in a menu
Poster: Ruth
Dated: Friday January 9 2004 - 18:15:27 GMT
I'm not sure what you are trying to do, make an item invisible or make that particular item show the page bgcolor. Assuming the latter, I tried this and it worked in Netscape, Opera and ie [5 which is what I have] To make one item transparent, so that it takes on the color of the page:
In the style you define, define the main menu as transparent in both offbgcolor and onbgcolor.
Code:
with(menuStyle=new mm_style()){
onbgcolor="transparent";
oncolor="#ffffff";
offbgcolor="transparent";
offcolor="#515151";
etc.
onbgcolor="transparent";
oncolor="#ffffff";
offbgcolor="transparent";
offcolor="#515151";
etc.
That will make the whole menu transparent and the bgcolor will look like the color of the page, then in the actual menu data that defines each item give each item the on/offbgcolor you wish the menu to be, leaving that out of the item you want transparent.
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=Menu Samples;showmenu=Samples;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=Links;showmenu=Links;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=My Milonic;showmenu=My Milonic;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
}
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=Menu Samples;showmenu=Samples;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=Links;showmenu=Links;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
aI("text=My Milonic;showmenu=My Milonic;offbgcolor=#DCE9F0;onbgcolor=#4F8EB6;");
}
In the above all the menu items but the 3rd Miloinc;showmenu=Milonic will be a light blue in the off mouse and dark blue in the on mouse.
If you do this remember to define a separate style for submenus otherwise every item in every submenu will be transparent.
I did try to put the offbgcolor=transparent;onbgcolor=transparent; in a single menu item, but couldn't get it to work that way.