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:44

separatorheight not work with doctype

Poster: Sigi
Dated: Wednesday May 18 2005 - 6:58:03 BST


I have a Problem with separatorheight und Doctype this not work when I set the

<html xmlns="" xml:lang="en" lang="de">



I have this tested with the sample menu_sample1_ver5_723

-------------------------------------------- index.htm ------------------------------

<title>Milonic DHTML/JavaScript Menu Sample Page</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<style type="text/css">

.backG {
border-bottom:#538c4d 2px solid;



Milonic DHTML Website Navigation Menu Version 5.0+
Copyright 2005 (c) Milonic Solutions Limited (UK). All Rights Reserved.
Please visit for more information.

Although this software may have been freely downloaded, you must obtain a license before using it in any production environment.
The free use of this menu is only available for Non-Profit, Educational & Personal Web Sites who have obtained a license to use.

Free, Commercial and Corporate Licenses are available from our website.
You also need to include a link back to if you use the free license.

All Copyright notices MUST remain in place at ALL times.
This includes the first three lines of this notice on every page that uses the menu.
If you cannot comply with all of the above requirements, please contact us to arrange a license waiver.

<!-- ***** This is the section of code you need to paste into your web page *****-->
<script type="text/javascript" src="milonic_src.js"></script>
<a class=milonic href="">JavaScript DHTML Popup Menus From</a>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
<script type="text/javascript" src="menu_data.js"></script>


Links to other menu demos are:
<li><a href=extras/listbased/index.htm>DHTML Menu based on HTML Lists</a></li>
<li><a href=extras/frames/index.htm>Frames based menu for version 5.0</a></li>
<li><a href=extras/php/index.php>Menu built using PHP - You'll need PHP for this</a></li>
<li><a href=extras/xml/index.php>Menu built using XML - You'll need PHP for this</a></li>



Please note that users of Microsoft Windows XP with <b>Service Pack 2</b> 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

For instructions on removing the forced popup message, please visit <a href=></a>

For information on menu properties, please see <a href=></a> <br>
For information on menu item properties, please see <a href=></a> <br>
For information on style properties, please see <a href=></a> <br>
Installation instructions - <a href=install.txt>install.txt</a><br>
How to build menus - <a href=howtobuild.txt>howtobuild.txt</a><br>
Read Me - <a href=readme.txt>readme.txt</a><br>
License Details - <a href=license.txt>license.txt</a><br>
<table cellSpacing=0 cellPadding=13 border=0 style="border:1px solid #aaaaaa">
<td class=backG align=center>
<b>Plain Text Horizontal Style DHTML Menu Bar</td>

<td class=form1>
The <b><i>Plain Text Horizontal Style DHTML Menu Bar</i></b> is probably the most common of
all the Milonic DHTML/JavaScript menus and is one that probably will be used the most
<p>The <b><i>Plain Text Horizontal Style DHTML Menu Bar </i></b>is added to the web page completely independent of all other HTML objects and
can be positioned on the page in a number of ways. This menu
consists solely of text with only the addition of a small arrow image
to denote that a sub menu is available.</p>
<p>Absolute positioning for this menu is achieved by setting a Top & Left
value in the data file. This will position the menu in exactly
the same location on all web browsers. </p>
If you need to position the menu relative to other HTML objects or
relative to page dimensions, you can use one of the many menu
positioning techniques that are built into the Milonic DHTML Menu.
You can also declare the main menus position as <b>"relative"</b>
with the <b>"position"</b> parameter. All of the
parameters for menus must be entered after the menus <b><i>
with(milonic=new menuname("menuname")){ </i></b>declaration and
before any menu items have been declared. For more details on menu
properties, please visit the menu properties page here: <a class=link href="">Menu Properties Quick Reference</a>
<p>The "screenposition" parameter will set the menu to one of 3 vertical
and/or one of 3 horizontal positions. <i><b>left, center, right</b></i>
or <b><i>top, middle, bottom </i></b>as can be seen in the<i><b> </b></i>
<a class="link" href="">Menu Positioning With Offsets</a> sample
menu. You can also combine
a horizontal position with a vertical position. for example
<i><b>screenposition="center;middle";</b></i> will position the menu in the center of your
page and keep it there, even if the user resizes the browser window. Please note the use of semi colons to separate the 2
properties. Additional tweaking of the position can be achieved by
using offsets. These are declared for the top & left properties. All
offsets must be enclosed inside quotes and the syntax is <b><i>
left="offset=-100";</i> </b>or<b> <i>top="offset=200";</i></b> an
example of a menu that has a screen position of center with a left
offset is as follows:<p><b><i>with(milonic=new menuname("Main
aI("showmenu=Samples;text=Menu Samples;");<br>
order to set the position of the menu to relative, you will need to
declare a position of "relative" within the menu parameter area with
<i><b>position="relative";</b></i> This will allow you to
embed the menu inside a table cell or within the natural flow of the
document. Please note that table based menus will need to have the
sub menus built outside the table cell to allow for 100% browser
compatibility. Internet Explorer for the Apple Mac will have trouble
unless the steps found here
<a class=link href="">tablemenu.php</a> are
not adhered to.<p>Samples of even more positioning can be found on the following
menu samples <a class=link href="">Attached to a Table Cell</a> and <a class=link href="">Positioned with Offsets</a></td>



--------------------- menu_data.js ---------------------------

with(menuStyle=new mm_style()){
fontfamily="Verdana, Tahoma, Arial";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";


with(milonic=new menuname("Main Menu")){
aI("status=Back To Home Page;text=Home;url=;");
aI("showmenu=Samples;text=Menu Samples;");
aI("showmenu=MyMilonic;text=My Milonic;");

with(milonic=new menuname("Samples")){
aI("text=Plain Text Horizontal Style DHTML Menu Bar;url=;")
aI("text=Vertical Plain Text Menu;url=;onfunction=showtip('Another common sample This time, the sub<br>menus are opened from a vertical main menu') ;")
aI("text=All Horizontal Menus;url=;onfunction=showtip('If space is limited, this menu sample shows how<br>to open sub-menus in a horizontal orientation') ;")
aI("text=Using The Popup Menu Function Positioned by Images;url=;onfunction=showtip('The popup function can also open menus<br>based on mouse action but also positioned<br>relative to an image') ;")
aI("text=Classic XP Style Menu;url=;")
aI("text=XP Style;url=;")
aI("text=XP Taskbar Style Menu;url=;")
aI("text=Office XP Style Menu;url=;")
aI("text=Office 2003 Style Menu;url=;")
aI("text=Apple Mac Style Menu;url=;")
aI("text=Amazon Style Tab Menu;url=;")
aI("text=Milonic Home Menu;url=;")
aI("text=Windows 98 Style Menu;url=;onfunction=showtip('The Microfost Windows 98 3D look & feel can be<br>acheived by adding high and low 3D colors to<br>your menu styles') ;")
aI("text=Multiple Styles Menu;url=;onfunction=showtip('Demonstrating how to declare properties using different<br>menu styles. Separate styles can be declared for each<br>menu ora style can be used globally for every menu') ;")
aI("text=Multi Colored Menu Items;url=;")
aI("text=Multi Colored Menus Using Styles;url=;onfunction=showtip('') ;")
aI("text=Multi Tab;url=;")
aI("text=Tab Top;url=;")
aI("text=Multi Columns;url=;")
aI("text=100% Width Span Menu;url=;onfunction=showtip('Spanning the menu to 100% of the browser width<br>will allow for the menu to become a page separator') ;")
aI("text=Follow Scrolling Style Menu;url=;onfunction=showtip('Keeping the menu available at all times no matter<br>where your user has scrolled to, can be acheived by<br>setting the followscroll property for your main menu') ;")
aI("text=Menu Positioning With Offsets;url=;onfunction=showtip('Setting the position of menus using screenposition<br>is a handy way of ensuring that your menus will<br>always be centered or positioned exactly how<br>you need') ;")
aI("text=Table Based (Relative) Menus;url=;onfunction=showtip('Positioning menus relative to your web pages<br>flow can be acheived by setting the menu style<br>property position to relative') ;")
aI("text=Opening Windows and Frames with the Menu;url=;onfunction=showtip('Opening links in other windows or other frames<br>is easy by using the target menu item property.') ;")
aI("text=Menus Over Form Selects, Flash and Java Applets;url=;onfunction=showtip('Older browsers have a problem with form objects<br>and other HTML objects that naturally sit higher in<br>the browser layer hiding the menu.<br>The workaround fr this is to use DIV hiding') ;")
aI("text=Activating Functions on Mouseover;url=;onfunction=showtip('onfunction, offfunction and clickfunction are<br>built in features that allow you to add<br>custom JavaScript to several menu events') ;")
aI("text=Drag Drop Menus;url=;onfunction=showtip('By setting your menus type to be <b>draggable</b><br>this will allow for your users to move<br>main menus by drag and drop') ;")
aI("text=Menus with Header Type Items;url=;onfunction=showtip('If you need to separate blocks of menu items within<br>a single menu, Headers are a handy way of<br>segragating your menu items') ;")
aI("text=Right To Left Openstyle;url=;")
aI("text=Up Openstyle Featuring Headers;url=;")
aI("text=DHTML Menus and Tooltips;url=;onfunction=showtip('Tooltips are a handy way of adding more information<br>informing the user how to navigate your website or<br>use your application incorporating the menu') ;")
aI("text=Unlimited Level Menus Example;url=;")
aI("text=Context Right Click Menu;url=;onfunction=showtip('Context menus are easily configured with the<br>Milonic DHTML Menu. No special requirements are needed<br>Except for a small custom JavaScript module') ;")
aI("text=Menus built entirely from images;url=;onfunction=showtip('If you prefer to build your menus completely<br>from images this is easily possible, let<br>the menu take care of your images.') ;")
aI("text=Static Images Sample;url=;onfunction=showtip('Inserting images inside menus is made easy<br>with the use of the image property for menu items') ;")
aI("text=Rollover Swap Images Sample;url=;onfunction=showtip('Swaping images on mouse over can be acheived<br>by setting the image and onimage properties<br>for your menu items') ;")
aI("text=Background Item Images;url=;onfunction=showtip('Each menu item can have its own background image.<br>Text can be overlaid meaning you only need to build<br>and download one image') ;")
aI("text=Background Image Buttons;url=;")
aI("text=Menu Background Images;url=;")
aI("text=Creating Texture with Menu Background Images;url=;onfunction=showtip('Adding a background image to your menus can<br> vastly improve the apperance of otherwise dull<br>backgrounds.') ;")
aI("text=Static Background Item Images;url=;")
aI("text=Vertical Static Background Item Images;url=;")
aI("text=World Map Sample;url=;")
aI("text=US Map Sample;url=;")
aI("text=Image Map Sample;url=;onfunction=showtip('Image maps can be used to open menus using the popup<br>function based on the HTML object AREA') ;")
aI("text=Rounded Edges Imperial Style;url=;onfunction=showtip('Including rounded edges to menus') ;")
aI("text=3D Gradient Block;url=;")
aI("text=Start Button Menu;url=;")


with(milonic=new menuname("Milonic")){
aI("text=Product Purchasing Page;url=;");
aI("text=Contact Us;url=;");
aI("text=Newsletter Subscription;url=;");
aI("text=Discussion Forum;url=;");
aI("text=Software License Agreement;url=;");
aI("text=Privacy Policy;url=;");

with(milonic=new menuname("Partners")){
aI("status=(aq) Web Server Hosting & Services;text=(aq) Web Hosting;url=;");
aI("text=SMS 2 Email;url=;");

with(milonic=new menuname("Links")){
aI("status=Apache Web Server, the basis of Milonic's Web Site;text=Apache Web Server;url=;");
aI("status=MySQL, Milonic's Prefered Choice of Database Server;text=MySQL Database Server;url=;");
aI("status=PHP - Web Server Scripting as used by Milonic;text=PHP - Development;url=;");
aI("status=PHP Based Web Forum, Milonic's Recommended Forum Software;text=phpBB Web Forum System;url=;");
aI("showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;text=Anti Spam Tools;");

with(milonic=new menuname("Anti Spam")){
aI("text=Spam Cop;url=;");
aI("text=Mime Defang;url=;");
aI("text=Spam Assassin;url=;");

with(milonic=new menuname("MyMilonic")){
aI("text=Make Support Request;url=;");
aI("text=View Support Requests;url=;");
aI("text=Your Details;url=;");


thanks sigi

Poster: John
Dated: Wednesday May 18 2005 - 15:36:56 BST

You say you have a problem, but you don't say exactly what that problem is. What is happening or not happening?

Also, please always use the [code][/code] tags when posting code.

Poster: Andy
Dated: Tuesday May 31 2005 - 13:20:49 BST


Should see a fix for this in version 5.275 due out soon.

Pre release is already available at

hope this helps,