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

menu does not display - help please!


Poster: mrwhitehat __at__ hotmail.com
Dated: Wednesday June 1 2005 - 17:28:41 BST

Could someone tell me what kind of idiotic thing I did with this script that it will not work:
http://www.wichitavocations.com/steward ... /test.html

Note: This is a test page with code from another page I am working on. if I can get this page to work, then I can figure out the problem.

Thanks!


Poster: Ruth
Dated: Wednesday June 1 2005 - 17:42:37 BST

Hi,

The first thing I'd check is the paths. Try using absolute paths or upload the menu files to the same directory where you have your test page to work on it. I never seem to get relative paths correct :? so I gave up and always use absolute full paths now. That doesn't teach me to use relative paths but it sure gets rid of frustation of things not loading ;)

Ruth


Poster: mrwhitehat __at__ hotmail.com
Dated: Wednesday June 1 2005 - 17:48:53 BST

Ruth,
I know what you mean about relative paths.
While you were posting I was doing exactly what you suggested.
no change.

I have another menu in the same directory workign perfectly. (you helped me with it a couple days ago - thank you).

here is the code for this menu:

HTML
------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<script type="text/javascript" src="milonic_src.js"></script>
<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>
<script language="JavaScript" type="text/javascript" src="steward_submenus.js">
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><script language="JavaScript" src="steward_main_menu.js" type="text/javascript"></script></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

JAVA

steward_main_menu.js
-----------------------------------------------------------------------------------
with(milonic=new menuname("Stewardship Main Menu")){
alwaysvisible=1;
orientation="horizontal";
style=AllImagesStyle;
position="relative";
aI("image=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b1.gif;overimage=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b1_over.gif;showmenu=stewardship");
aI("image=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b2.gif;overimage=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b2_over.gif;showmenu=development;");
aI("image=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b3.gif;overimage=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b3_over.gif;showmenu=programs;");
aI("image=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b4.gif;overimage=/stewardship_development/new_test_design/sub_menu/stewardship_dev_sub_b4_over.gif;showmenu=contactus;");
}
drawMenus();


steward_submenus.js
-----------------------------------------------------------------------------------

menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=5;
_subOffsetLeft=10;

with(AllImagesStyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
fontstyle="normal";
fontweight="normal";
padding=3;
subimage="images/page_contents/black_down_arrow.gif";
subimageposition=-20;
}

with(menuStyle1=new mm_style()){
borderstyle="solid";
bordercolor="#ffffff";
borderwidth=0;
itemwidth=145;
itemheight=15;
fontfamily="Arial, Helvetica, sans-serif";
fontsize="11";
fontstyle="normal";
fontweight="normal";
offcolor="#000000";
oncolor="#330099";
offbgcolor="#d0eef7";
onbgcolor="#f6f8f9";
padding=2;
separatorcolor="#ffffff";
separatorsize="0";
}

with(milonic=new menuname("stewardship")){
style=menuStyle1;
aI("text=About Stewardship");
aI("text=Contact Stewardship;");
aI("text=Parish Stewardship;");
aI("text=Pillars of Stewardship;");
aI("text=Services and Materials;");
aI("text=Mission Statement;");
aI("text=2005 Theme;");
aI("text=United Catholic Stewardship;");
aI("text=Stewardship Staff;");
}

with(milonic=new menuname("development")){
style=menuStyle1;
aI("text=About Development");
aI("text=Contact Development;");
aI("text=The Endowment Program;");
aI("text=Other Diocesan Endowments;");
aI("text=Planned Giving Newlestters;");
aI("text=Estate Planning;");
aI("text=Opportunities for Giving;");
aI("text=Charitable Gift Annuity;");
}

with(milonic=new menuname("programs")){
style=menuStyle1;
aI("text=The Endowment Program");
aI("text=Other Diocesan Endowments;");
aI("text=Estate Planning;");
aI("text=Charitiable Gift Annuity;");
aI("text=Heart of the City;");
aI("text=Priest Retirement and Education;");
aI("text=Parish Stewardship;");
}

with(milonic=new menuname("contactus")){
style=menuStyle1;
aI("text=Contact Development");
aI("text=Contact Stewardship;");
}

drawMenus();



THANKS!

Sorry, typo


Poster: mrwhitehat __at__ hotmail.com
Dated: Wednesday June 1 2005 - 18:12:49 BST

Forgot a semi-colon

My bad!


Poster: Ruth
Dated: Wednesday June 1 2005 - 21:14:52 BST

OK, you're just trying to confuse me right??? :? I just went to your link and the menu shows up pretty as a picture. So, is there some other issue?

Ruth