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: Saturday July 14 2012 - 06:07:42

Menu Arrays loaded between script tags

Poster: wmswartz
Dated: Thursday September 26 2002 - 19:02:25 BST


I ran this by Andy, and he said this would work, however I can't seem to make it work.

To test this out, I took then entire menu_array.js file and loaded it into menu.htm between script tags like this ( see below - abbreviated) I didn't modify the file at all, just copied and pasted between the script tags.. And ... No Menu.
I then deleted the stuff in between the script tags, and re-inserted the reference to menu_array.js and everything worked fine. Tried this on both IE 6, and Mozilla 1.0 both have the same behavior.

<script language=javascript>
// Example of how I loaded the data between the script tags
menunum=0;menus=new Array();
timegap=500         // The time delay for menus to remain visible

style1=[   // style1 is an array of properties. You


works fine

Poster: wmswartz
Dated: Monday September 30 2002 - 20:37:35 BST

Not sure what was causing this, but it works fine.

Also, if anyone is interested, I am just about done with a DotNet control that will read an XML file and create the Milonic Menu. It does have a limitation in that I validate numbers. This would cause a problem where you would want to insert a script instead of a number.

This could be very powerful in that the next step would be to have the menu created from a database, and dynamically change based upon users, and or page content.

If anyone wants this when I get done, email me at wmswartz __at__

I am also spending a little time documenting the Style and Array items as I go through my debugging process.