Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:45

Transparent Back?

Poster: yadin __at__
Dated: Thursday January 24 2002 - 22:36:28 GMT

(reposted submission from the past)

Is there a way to have no Off Back Color so that the menu is transparent and the page background would show instead?

Re: Transparent Back?

Poster: Moon
Dated: Friday April 5 2002 - 15:08:35 BST

I'm working on it,

I'll let you know.


Re: Transparent Back?

Poster: ton __at__
Dated: Friday April 5 2002 - 18:44:09 BST

It works fine with mine !

I have just modified a fiew thing in mmenu.js :
1 - kill all # linked with color definition : (not with urls links!)
2 - use "transparent" as color where needed
3 - add a # to all hexa colors in menu_arrays.js

That's all !

Andy ! I suggest you to include this in your next release, it's very simple but efficient, it also allows the use of named colors... if you want !

fr Bill.

Re: Transparent Back?

Poster: brian __at__
Dated: Saturday April 6 2002 - 4:25:45 BST

fr Bill,

Ummm... I'm a lover not a coder... could you explain that in layman's terms? One look at the mmenu.js and I start trembling and curl up in the fetal position.


Re: Transparent Back?

Poster: Martin __at__
Dated: Saturday April 6 2002 - 14:32:42 BST

And well you should if you're not a coder :) I can grasp the basics of javascript but I'm not all that savy and the mmenu strikes terror and confusion in me as well. If you are brave enough to try this however, and I do suggest you make a backup copy in case all hell breaks loose, it's not to terrible.
Search the file for any # signs. When you find one see if it is used with a color definition like"#" and replace it with "transparent". Then make sure all your color variables in your array file have a # in front of them ("#66ffff", not "66ffff",).
With any luck you won't kill the code and by Bill's testimony it will work. I haven't tested this myself, and as Andy says he's working on it and I think we're looking at the next release for implementation if you want to skip it for now.

Re: Transparent Back?

Poster: webmaster __at__ janusfoundation
Dated: Saturday April 6 2002 - 15:21:04 BST

Hi there !

I've post my customized mmenu.js to chris...

If you need it too, just post me your mail-adress...

fr Bill

Re: Transparent Back?

Poster: Andy
Dated: Sunday April 7 2002 - 2:20:47 BST

What about having an image as a background? And is there any way to make the links underlined? Finally, would it be possible to make it so that the menu appears on the page wherever I put <script src="menu_array.js">? This way, if I edit my page, I don't have to go into menu_array.js to reposition the menu by guessing how many pixels down it should be....

Portland, USA

Re: Transparent Back?

Poster: Ewok __at__
Dated: Sunday April 7 2002 - 3:37:01 BST

Thanks a lot! I had started to make the changes myself, but something wasn't quite kosher and it wasn't working. I added the code, tweaked it a little and it's working like a dream!

Thanks for taking the time to help me out fr Bill...


Re: Transparent Back?

Poster: gaffcam __at__
Dated: Sunday April 7 2002 - 17:51:56 BST

Hi Mitch !

Of course there is a way to do what you need ! This menu tool is full of lovely functions and behaviors...

Thanks to Andy ;-))

Well you can link the menu to a simple anchor, for example :

Re: Transparent Back?

Poster: cyberandi __at__
Dated: Sunday April 7 2002 - 18:01:21 BST

D'oh.... just tested the nav in Netscape 4.08... doesn't work. :(

Story of my life.


Re: Transparent Back?

Poster: Andy
Dated: Sunday April 7 2002 - 18:12:39 BST

Does this work with the newest version of the menu, 3.3.18? There aren't that many "#" symbols and the only one that seems related to color is the function cHexColor. I've tried to replace that with the word transparent as outlined above, but the menu quits working. I'd appreciate any help. I'd like just the main menu transparent but not the pulldowns. The reason is that the main menu is on top of a graphic with a gradient and it would be great to see the gradient through the menu.


Re: Transparent Back?

Poster: gustav.hammerlindl __at__
Dated: Sunday April 7 2002 - 20:35:04 BST

Actually one simple way of doing this should be to set the effect in the menu array to one that has transparency. That is something like
;Alpha(opacity=80); in the effect string.

Re: Transparent Back?

Poster: sandrag __at__
Dated: Sunday April 7 2002 - 23:34:58 BST

Thanks, that works, but it also has the rather undesirable effect of making the text opaque as well. Essentially, my nice "bright" text takes on some of the dimmer background and doesn't stand out like I would like. I also cannot be sure that all of my viewers will be using IE 5.5 . Is there any other way?


Re: Transparent Back?

Poster: cyberandi __at__
Dated: Monday April 8 2002 - 1:33:12 BST

Other than hacking out the mmenu.js in some way there is currently no way of doing this. It is on the list for future enhancements.

Re: Transparent Back?

Poster: sandrag __at__
Dated: Monday April 8 2002 - 5:08:20 BST

I made transparent back by putting "" for the on/off background in the style it works for ie 5 pc but the mac is displaying a big green box right across the page. (behind the menu)

can anyone else see this with a Mac coz Yadin can't and my client can on 3 machines (mac ie 5)

would appreciate if anyone caould have a look..or if anyone has idea how to acheive this.



Re: Transparent Back?

Poster: amirdht __at__
Dated: Monday April 8 2002 - 7:34:31 BST


Would you mind sending me your edited file for making the background transparent?