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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:52

Do Milonic Menus do this?


Poster: ShoTaker
Dated: Monday December 8 2003 - 19:51:54 GMT

Hello everyone. I was wondering if the Milonic Menu system does what I have mocked up on the link below.

Basically, what I'm trying to do is create a drop down layer that encompasses more of the screen. It would also contain form fields, etc. The menu would drop down when someone puts their mouse over the navigation option, and go away onMouseout of the layer.

Image


Poster: RichGags
Dated: Monday December 8 2003 - 21:56:51 GMT

Wow, that would be nice. Hopefully it does do that.


Poster: kevin3442
Dated: Monday December 15 2003 - 21:05:46 GMT

Have you tried generating the html that you would use in your popdown layer, then putting it in the text= parameter of an aI() menu item definition?

Kevin

Re: Do Milonic Menus do this?


Poster: squills
Dated: Monday December 22 2003 - 10:59:25 GMT

Did anyone find out if this worked? Too lazy to try it out myself! ;)


Poster: Andy
Dated: Monday December 22 2003 - 11:02:20 GMT

From the above I'm seeing a tabbed like system, like what MS Windows has.

Is this what you are looking for?

Cheers
Andy


Poster: squills
Dated: Monday December 22 2003 - 11:03:51 GMT

Yes, I guess so. It could be a great shortcut for me if it worked.


Poster: pez
Dated: Tuesday December 30 2003 - 1:04:41 GMT

You can do above as long as all quotation marks are escaped and all code is on one line...Just tried it with a form for submitting email with links and radio buttons
Also remove the URL link for the menu item otherwise as soon as a user clicks on menu ?

aI("text=Add your html jscript here;url=http://www.getridofthis.com;status=Contact Page;");


aI("text=<table><tr><td class=\"can-use-stylesheets\">Enter Email</td><td><form...lots of fancy stuff...></td></tr></table>;;status=Contact Page;");

works fine

MY QUESTION
I'm actually trying to change the menu colour according to a cookie set by a user.. Can do this with the rest of the site through css style sheet with php.
But can't find a way to change milonic menu... dont want to have to create separate menu-data.js files would prefer to read from a css style sheet.
Apart from doing it like the above can this be done another way??
Can I call menu colours etc from a css style sheet?
How?
Thanxs


Poster: kevin3442
Dated: Tuesday December 30 2003 - 19:49:33 GMT

pez wrote:
MY QUESTION
I'm actually trying to change the menu colour according to a cookie set by a user.. Can do this with the rest of the site through css style sheet with php.
But can't find a way to change milonic menu... dont want to have to create separate menu-data.js files would prefer to read from a css style sheet.
Apart from doing it like the above can this be done another way??
Can I call menu colours etc from a css style sheet?
How?

You could use the offclass and onclass properties. These can be defineed as either menu style properties or as individual menu item properties (overriding the menu style setting if present). The general idea is to define the styles in your .css style sheet, like so:
Code:
.menuOff
{
  style definitions
}

.menuOn
{
  style definitions
}

Then use them like so:

Used in a menu style definition:
Code:
with(mainMenu=new mm_style()){
.
.
.
offclass="menuOff";
onclass="menuOn";
.
.
.
}

Used in a menu item definition
Code:
aI("text=Item Text;url=whatever.htm;offclass=menuOff;onclass=menuOn;");

You may still want to set the basic menu style properties in the menu style definition, like offbgcolor and onbgcolor, etc., because NS4 will not be able to use the offclass and onclass properties. Although, to be honest, I don't know if offclass/onclass take precedence over the menu's internal style settings or vice versa; you might want to test this if you care about NS4.

A third property, pageclass, will let you specify styles for a "current page" highlight in the menu.

Now that you know the names of the properties (offclass, onclass, pageclass), you can find a lot more discussion about them using the forum's searach function.

Hope that helps,

Kevin


Poster: Hergio
Dated: Saturday January 3 2004 - 18:01:07 GMT

Using javascript you can pull up cookie's values and then based on that you can set variables (whether it be class names or styles like colors and what not) and then in your menu definitions you would put that javascript variable that you set based on the cookie value in.

And regarding the big tabbed interface. I know this menu has ALOT of functionality over and above just a hierarchial menu. It utilizes alot of good things. But you may be better of coding this yourself. I would create a big DIV in your code with all of the stuff you want in it (you dont have to escape things, it can all be straight HTML). And then set this DIV's visible property to hidden and position is as you like. You would then create a javascript function to show/hide the div. And the links at the top of the page would have their onMouseOver show the DIV. And the DIV itself would have a onMouseOut function to hide itself. The menu is really doing all this too but creating it all with javascript. To put ALL that stuff into the aI call and make sure its escaped correctly and is on one line can be error prone, but as the person above mention, it CAN be done.