<script type="text/javascript" src="milonic_src.js"></script> <script type="text/javascript" src="mmenudom.js"></script> <noscript><a href=http://www.milonic.com/>JavaScript DHTML menu is only visible when JavaScript is enabled</a></noscript> <!-- The next file contains your menu data, links and menu structure etc --> <script type="text/javascript" src="menu_data.js"></script>
Please note that users of Microsoft Windows XP with Service Pack 2 will need to unblock this page in order to see the menu.
The reason for this is due to the fact that the menu has been written in JavaScript.
This feature is considered unsafe when used locally and Service Pack 2 now blocks this by default for your safety.
This only happens when you run the menu on a local machine, live use on the Internet will not be affected.
Milonic Solutions Ltd assure you that there is absolutely no danger of allowing content from the DHTML Menu provided it has been downloaded from www.milonic.com
For instructions on removing the forced popup message, please visit http://www.milonic.com/removelink.php
For information on menu properties, please see http://www.milonic.com/menuproperties.php
For information on menu item properties, please see http://www.milonic.com/itemproperties.php
For information on style properties, please see http://www.milonic.com/styleproperties.php
Installation instructions - install.html
How to build menus - howtobuild.html
Read Me - readme.html
License Details - license.html
Multiple Styles Menu |
The Multiple Styles Menu sample demonstrates the menus
flexibility when it comes to using different text, colors and styles. There
are very little restrictions when it comes to declaring these kind
of properties.
Style properties can be declared in a global style, menu or menu item
using the standard menu property pairs variablename="value";
declaration. If a property is not needed it can be removed from the data file completely; there is very little point declaring a variable if the default value is all that is required. This allows you to construct a menu data file using the minimum of bytes needed, assisting in a quicker download of the menu. It also helps make the data file easier to understand as it isn't full of redundant parameters. Note that the structure of the menu data file is as close to being Object Oriented as JavaScript will allow. JavaScript itself is not an Object Oriented language but is an Object Based language. So, from this sample you can see that each menu can have its own style if this is your requirement. Normally though, only one style is needed but there are instances where you may want the top level (horizontal) menu to have a different setup than your sub (vertical) menus. This can be achieved by declaring more than one style as you can see by the code below. Creating different styles is useful for changing many of the properties of a style completely, but what if you only wanted to change, say one or two parameters. The most efficient way of doing this is by creating a new style based on values from another style. The copyOf() function is the tool for this job. Here is an example: with(verticalStyle=new mm_style()){ The
above sample code, creates a global style that will be used for all
vertical submenus called, verticalStyle. If you wanted to use the
same style for your horizontal menu but you needed the submenu
indicator image changing, you could create a copy of the
verticalStyle with the copyOf() function giving your
new style a name of horizontalStyle. |