Transparent menu item

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
JP
Beginner
Beginner
Posts: 2
Joined: Thu Dec 04, 2003 11:43 pm
Location: Quebec, Canada

Transparent menu item

Post by JP »

Hi!

How can I turn just one item in my menu as transparent and not all of it?

Thanks.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Well, all I can think of is that you make that item out of an image with a transparent background.

Ruth
User avatar
JP
Beginner
Beginner
Posts: 2
Joined: Thu Dec 04, 2003 11:43 pm
Location: Quebec, Canada

Already done but...

Post by JP »

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?
pretty
Advanced
Advanced
Posts: 11
Joined: Tue Jan 06, 2004 12:27 pm

Post by pretty »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

with(menuStyle=new mm_style()){
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: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://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.
Post Reply