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

trouble getting menu to appear after upgrade from ver 3 to 5


Poster: UrbanDog
Dated: Monday August 25 2003 - 5:06:52 BST

Hi There;
I've spent the better part of this evening trying to troubleshoot my menu appearing on the pages of my site (in development on my computer using http://localhost/urbandog.info). I've read all posts in the forum regarding sitepath and object expected and believe I've worked my way to the correct paths. I no longer have any javascript errors when I call the page from the server, but the menu does not appear. I've pasted in the code from my menu_data.js file for debugging, if someone would be so kind - thanks in advance:


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.



////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect="Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
effect="Shadow(color='#777777', Direction=135, Strength=5)"
}
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=10;
_subOffsetLeft=10;


with(style1=new mm_style()){
offcolor="#330000";
offbgcolor="#ffffff";
oncolor="#ffffff";
onbgcolor="#779577";
bordercolor="#330000";
borderstyle="solid";
bordercolor="black";
fontsize=10;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=4;
high3dcolor="#66ffff";
low3dcolor="#000099";
pagecolor="#ffffff";
pagebgcolor="#779577";
headercolor="#ffffff";
headerbgcolor="#000099";
}

with(milonic=new menuname("mainmenu")){
top=107;
left=305;
itemwidth=12;
borderwidth=1;
style=style1;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home&nbsp;;url=http://localhost/urbandog.info/home/;;status=Back to the home page;separatorsize=1")
aI("text=Articles&nbsp;;url=http://localhost/urbandog.info¬Event&nbsp;Calendar&nbsp;¬http://localhost/urbandog.info;url=Classifieds&nbsp;;status=http://www.urbandog.info/phpClassifieds/index.php")
aI("text=UrbanDog.Info Classifieds;url=1;url=Dog&nbsp;Resources&nbsp;;status=http://localhost/urbandog.info¬Forums&nbsp;¬show-menu=other¬¬¬1¬Photo&nbsp;Gallery&nbsp;¬show-menu=other¬¬¬1¬UrbanDog&nbsp;Gear&nbsp;¬show-menu=other")
aI("url=1;")
}

with(milonic=new menuname("Other")){
itemwidth=10;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Menu Authors Site;url=http://www.milonic.co.uk/menu;;status=Milonic DHTML Menu Site;separatorsize=1")
}



drawMenus();


Poster: John
Dated: Monday August 25 2003 - 15:31:30 BST

Please post a valid URL (you have a 'localhost' posted) so we can see what's happening and also look at your code and calls. I know you posted it here, but I'm seeing some invalid characters mixed in and I'm not sure if it's because you didn't use code mode or if there really is a problem with the code.

Also, I think I'm seeing a mixture of v3 and v5 code in your posting.


Poster: Hergio
Dated: Monday August 25 2003 - 16:29:55 BST

Yeah Urban Dog, get us a URL. But frankly, I think you're problem is you are trying to edit your old v3 file into the v5. What you SHOULD do is, download a complete example of the version 5 menu and get that working. Then see how its menu declarations are made and use that to make your items using your old information. Or better yet, use the ver3 to ver5 converter and then copy that entire file over the menu_data.js file you downloaded with the example and start from there. You're getting yourself confused, start fresh because the menus are too different to try and port it over.

Thanks


Poster: UrbanDog
Dated: Tuesday August 26 2003 - 0:48:54 BST

Thanks Guys - did what you suggested with a clean install and it's working.

Cheers;

Urbandog


Poster: John
Dated: Tuesday August 26 2003 - 15:22:22 BST

Glad to hear it! Shortcuts do usually bomb... :oops: