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

standard menu not working


Poster: kgp43
Dated: Saturday January 10 2004 - 16:53:12 GMT

Hi all,

I just downloaded this menu, created a empty html page with the code and uploaded the additional 4 files. I get a blank page, any suggestions?


---------------
HTML page
---------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#CCCCCC">
<p>1231 </p>
<p>
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
</p>
<p>123 </p>
</body>
</html>


Poster: Ruth
Dated: Saturday January 10 2004 - 17:16:26 GMT

The page looks fine, so giving the test url you are using would be of great help so that anyone checking can see what's happening.

Ruth


Poster: kgp43
Dated: Saturday January 10 2004 - 17:19:08 GMT

sure

http://www.fedtm.com/testing/menu2.htm


Poster: bobwill
Dated: Saturday January 10 2004 - 18:12:19 GMT

It appears that you files in are a sub-directory "testing"

You did not address where the "js" files are located. I assume they also are in "testing".

Should be:

<SCRIPT language=JavaScript src="/testing/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/testing/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/testing/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/testing/menu_data.js" type=text/javascript></SCRIPT>


Poster: Ruth
Dated: Saturday January 10 2004 - 18:16:24 GMT

For some reason the menu_data.js file doesn't have the actual main horizontal menu, it's only got all the submenus listed so of course nothing shows. This part is missing
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}

Without the main menu which is alwayvisible=1 nothing will show.
Ruth


Poster: kgp43
Dated: Saturday January 10 2004 - 18:20:21 GMT

bobwill wrote:
It appears that you files in are a sub-directory "testing"

You did not address where the "js" files are located. I assume they also are in "testing".

Should be:

<SCRIPT language=JavaScript src="/testing/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/testing/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/testing/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/testing/menu_data.js" type=text/javascript></SCRIPT>



Still the same problem - nothing showing


Poster: kgp43
Dated: Saturday January 10 2004 - 18:21:00 GMT

innkeeper9 wrote:
For some reason the menu_data.js file doesn't have the actual main horizontal menu, it's only got all the submenus listed so of course nothing shows. This part is missing
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}

Without the main menu which is alwayvisible=1 nothing will show.
Ruth


Where should I add it?
I have just downloaded the file, and did not even open it.


Poster: kgp43
Dated: Saturday January 10 2004 - 18:24:07 GMT

I added it second on the page, still same problem.


Poster: bobwill
Dated: Saturday January 10 2004 - 18:25:40 GMT

Since you are just testing, do another download of a sample file and take the "menu_data.js" and upload it to replace your exisitng.

Then you will see where things are suppose to fit.


Poster: kgp43
Dated: Saturday January 10 2004 - 18:30:19 GMT

that worked :P
weird.

Nb. I used example 9, so there must be a error in the file.


Poster: Ruth
Dated: Saturday January 10 2004 - 18:30:46 GMT

It's first on the page, meaning it's before the style definitions. It goes after this part.
Code:
with(menuStyle=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
etc. 
after the full section of this menu style definition and before the
Code:
with(milonic=new menuname("Samples")){
style=menuStyle;
overflow="scroll";
etc.


Poster: kgp43
Dated: Saturday January 10 2004 - 18:34:03 GMT

innkeeper9 wrote:
It's first on the page, meaning it's before the style definitions. It goes after this part.
Code:
with(menuStyle=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
etc. 
after the full section of this menu style definition and before the
Code:
with(milonic=new menuname("Samples")){
style=menuStyle;
overflow="scroll";
etc.


That worked too :)


Poster: kevin3442
Dated: Monday January 12 2004 - 20:34:27 GMT

kgp43 wrote:
...Nb. I used example 9, so there must be a error in the file.


Just to clarify... Sample 9 is the "table bound" example. In that example, and that one only, the js code for the Main Menu appears in the table in menu.htm, rather than in the menu_data.js file. So it was just a matter of luck (bad in this case) that the sample you tried didn't have the main menu defined in menu_data.js!

Kevin