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

v3 to v5 convert will not display


Poster: donbmjr
Dated: Friday October 24 2003 - 2:10:09 BST

Horizontal menu Ok, but the vertical on the left side of the test site will not appear. Tried removenig the horizontal with no luck.
ran through converter a second time and still will not appear

http://www.theinsidegroove.com/test/

Don


GrayOrange_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=50;
_subOffsetTop=-8;
_subOffsetLeft=1;


with(=new mm_style()){
offcolor="#ffffff";
offbgcolor="#4682B4";
oncolor="#ffffff";
onbgcolor="#000000";
fontsize="10";
fontstyle="normal";
fontweight="bold";
fontfamily="verdana,helvetica";
padding=5;
separatorcolor="#4682B4";
}

with(=new mm_style()){
offcolor="OpenWindows";
offbgcolor="125";
oncolor="14";
onbgcolor="137";
bordercolor="1";
borderstyle="solid";
bordercolor="black";
fontstyle=GrayOrange;
fontweight=1;
}

with(milonic=new menuname("Win1")){
itemwidth=160;
borderwidth=1;
style=GrayOrange;
aI("text=Winston Cup Standings;url=javascript:openNewWindow(\pop/standings.php4\¬746¬540¬\top=0;url=status=yes;status=resizable=yes;separatorsize=scrollbars=yes\)")
aI(";status=Rookie Standings;separatorsize=javascript:openNewWindow(\pop/rookie_stand.html\¬730¬545¬\top=0")
aI("text=status=yes;url=resizable=no;url=scrollbars=no\)")
aI("url=Manufacture;url= Standingsjavascript:openNewWindow(\pop/manuf_stand.html\¬365¬335¬\top=236;status=status=yes;separatorsize=resizable=no")
aI("text=scrollbars=no\);;separatorsize=Owner Standings")
aI("text=javascript:openNewWindow(\pop/owner_stand.html\¬642¬540¬\top=0;url=status=yes;url=resizable=yes;status=scrollbars=yes\)")
aI("")
}

with(milonic=new menuname("Win3")){
itemwidth=275;
borderwidth=1;
style=GrayOrange;
aI("text=Name the year and driver who lost the Championship on the last race of the season ?;url=javascript:openNewWindow(\misc/Q&A/Q&A1.html\¬455¬165¬\top=133;url=status=yes;status=resizable=no;separatorsize=scrollbars=no\)")
aI("")
}

with(milonic=new menuname("Win4")){
itemwidth=215;
borderwidth=1;
style=GrayOrange;
aI("text=By Mike Smith at lasvegassun.com;url=javascript:openNewWindow(\http://www.lasvegassun.com/sports/racing/images/091903.gif\¬400¬249¬\top=80;url=status=yes;status=resizable=yes;separatorsize=scrollbars=yes\)")
aI("")
}



drawMenus();

Re: v3 to v5 convert will not display


Poster: John
Dated: Friday October 24 2003 - 2:34:46 BST

donbmjr wrote:
GrayOrange_menuCloseDelay=500;

You've changed a menu variable name here. Can't do that.
donbmjr wrote:
with(=new mm_style()){

Where's the style name (2 places)?
donbmjr wrote:
aI("text=Winston Cup Standings;url=javascript:openNewWindow(\pop/standings.php4\¬746¬540¬\top=0;url=status=yes;status=resizable=yes;separatorsize=scrollbars=yes\)")

Are those funny characters correct (many places)? Also, no \.
donbmjr wrote:
aI("text=status=yes;url=resizable=no;url=scrollbars=no\)")

Invalid!
donbmjr wrote:
aI("url=Manufacture;url= Standingsjavascript:openNewWindow(\pop/manuf_stand.html\¬365¬335¬\top=236;status=status=yes;separatorsize=resizable=no")
aI("text=scrollbars=no\);;separatorsize=Owner Standings")
aI("text=javascript:openNewWindow(\pop/owner_stand.html\¬642¬540¬\top=0;url=status=yes;url=resizable=yes;status=scrollbars=yes\)")
aI("")

All invalid, and on and on it goes.

The converter is not perfect, but it doesn't make errors like these. Run your original v3 code one time, and then make any necessary fixes from there. Use the sample that comes in the download and the Quick Ref charts and samples on the main site as guides.

Need more help Jgillett


Poster: donbmjr
Dated: Friday October 24 2003 - 20:06:38 BST

jgillett thanks for your reply

The menu below went in as below and the v5 is farther down, did it several times, what a mess, even left out some of the links, I put in the new shorter version of our vertical menu

/*
Milonic DHTML Menu

Written by Andy Woolley
Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
Plase vist http://www.milonic.co.uk/menu or e-mail menu3 __at__ milonic.com
You may use this menu on your web site free of charge as long as you place prominent links to http://www.milonic.co.uk/menu and
your inform us of your intentions with your URL AND ALL copyright notices remain in place in all files including your home page
Comercial support contracts are available on request if you cannot comply with the above rules.

Please note that major changes to this file have been made and is not compatible with earlier versions..

You no longer need to number your menus as in previous versions.
The new menu structure allows you to name the menu instead. This means that you can remove menus and not break the system.
The structure should also be much easier to modify, add & remove menus and menu items.

If you are having difficulty with the menu please read the FAQ at http://www.milonic.co.uk/menu/faq.php before contacting us.

Please note that the above text CAN be erased if you wish as long as copyright notices remain in place.
*/

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE.
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 you have more than one _array.js file


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

timegap=500
followspeed=5
followrate=50
suboffset_top=-8;
suboffset_left=1;
closeOnClick = true


GrayOrange=[
"ffffff",
"4682B4",
"ffffff",
"000000",
0,
"10",
"normal",
"bold",
"verdana,helvetica",
5,
,
0,
0,
,
,
,
,
,
,
"4682B4"
]


addmenu(menu=[
"OpenWindows",
125,
14,
137,
1,
,
GrayOrange,
1,
,
0,
0,
0,
0,
,
,
0,
0,
,
,
0,
,

,"Help Page","misc/help-page.php","#",,0
,"What's New","misc/whats-new.php","#",,0
,"More News","news/news.php","#",,0
,"Standings","show-menu=Win1","#",,0
,"Trivia ? Of The day","show-menu=Win3","#",,0
,"Cartoon Of The Day","show-menu=Win4","#",,0
,"Contact Us","javascript:openNewWindow(\"misc/contact_us.html\",460,260,\"top=236,status=no,resizable=yes,scrollbars=no\")",,,0
])


addmenu(menu=[
"Win1",
,
,
160,
1,
,
GrayOrange,
0,
,
"Shadow(color=777777, Direction=135, Strength=3)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Winston Cup Standings","javascript:openNewWindow(\"pop/standings.php4\",746,540,\"top=0,status=yes,resizable=yes,scrollbars=yes\")",,,0
,"Rookie Standings","javascript:openNewWindow(\"pop/rookie_stand.html\",730,545,\"top=0,status=yes,resizable=no,scrollbars=no\")",,,0
,"Manufacture Standings","javascript:openNewWindow(\"pop/manuf_stand.html\",365,335,\"top=236,status=yes,resizable=no,scrollbars=no\")",,,0
,"Owner Standings","javascript:openNewWindow(\"pop/owner_stand.html\",642,540,\"top=0,status=yes,resizable=yes,scrollbars=yes\")",,,0
])


addmenu(menu=[
"Win3",
,
,
275,
1,
,
GrayOrange,
0,
,
"Shadow(color=777777, Direction=135, Strength=3)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,


,"Name the year and driver who lost the Championship on the last race of the season ?","javascript:openNewWindow(\"misc/Q&A/Q&A1.html\",455,165,\"top=133,status=yes,resizable=no,scrollbars=no\")",,,0
])


addmenu(menu=[
"Win4",
,
,
215,
1,
,
GrayOrange,
0,
,
"Shadow(color=777777, Direction=135, Strength=3)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,

,"By Mike Smith at lasvegassun.com","javascript:openNewWindow(\"http://www.lasvegassun.com/sports/racing/images/091903.gif\",400,249,\"top=80,status=yes,resizable=yes,scrollbars=yes\")",,,0
])


dumpmenus();


V5 Menu after conversion

GrayOrange_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=50;
_subOffsetTop=-8;
_subOffsetLeft=1;


with(=new mm_style()){
offcolor="#ffffff";
offbgcolor="#4682B4";
oncolor="#ffffff";
onbgcolor="#000000";
fontsize="10";
fontstyle="normal";
fontweight="bold";
fontfamily="verdana,helvetica";
padding=5;
separatorcolor="#4682B4";
}

with(=new mm_style()){
offcolor="OpenWindows";
offbgcolor="125";
oncolor="14";
onbgcolor="137";
bordercolor="1";
borderstyle="solid";
bordercolor="black";
fontstyle=GrayOrange;
fontweight=1;
}

with(milonic=new menuname("Win1")){
itemwidth=160;
borderwidth=1;
style=GrayOrange;
aI("text=Winston Cup Standings;url=javascript:openNewWindow(\pop/standings.php4\¬746¬540¬\top=0;url=status=yes;status=resizable=yes;separatorsize=scrollbars=yes\)")
aI(";status=Rookie Standings;separatorsize=javascript:openNewWindow(\pop/rookie_stand.html\¬730¬545¬\top=0")
aI("text=status=yes;url=resizable=no;url=scrollbars=no\)")
aI("url=Manufacture;url= Standingsjavascript:openNewWindow(\pop/manuf_stand.html\¬365¬335¬\top=236;status=status=yes;separatorsize=resizable=no")
aI("text=scrollbars=no\);;separatorsize=Owner Standings")
aI("text=javascript:openNewWindow(\pop/owner_stand.html\¬642¬540¬\top=0;url=status=yes;url=resizable=yes;status=scrollbars=yes\)")
aI("")
}

with(milonic=new menuname("Win3")){
itemwidth=275;
borderwidth=1;
style=GrayOrange;
aI("text=Name the year and driver who lost the Championship on the last race of the season ?;url=javascript:openNewWindow(\misc/Q&A/Q&A1.html\¬455¬165¬\top=133;url=status=yes;status=resizable=no;separatorsize=scrollbars=no\)")
aI("")
}

with(milonic=new menuname("Win4")){
itemwidth=215;
borderwidth=1;
style=GrayOrange;
aI("text=By Mike Smith at lasvegassun.com;url=javascript:openNewWindow(\http://www.lasvegassun.com/sports/racing/images/091903.gif\¬400¬249¬\top=80;url=status=yes;status=resizable=yes;separatorsize=scrollbars=yes\)")
aI("")
}



drawMenus();

Re: v3 to v5 convert will not display


Poster: jkgraham
Dated: Friday October 24 2003 - 20:27:34 BST

My conversion did some of the exact same things as your's did.

donbmjr wrote:
GrayOrange_menuCloseDelay=500;


Just remove the GrayOrange text from the above, it should be down below in the styles area.

donbmjr wrote:
with(=new mm_style()){

Here is where your GrayOrange should be:
Code:
with(GrayOrange=new mm_style()){


As for the second style definition, I just deleted it as it doesn't make any sense at all (oncolor=14???). Everything worked ok without it.

donbmjr wrote:
aI("text=Winston Cup Standings;url=javascript:openNewWindow(\pop/standings.php4\¬746¬540¬\top=0;url=status=yes;status=resizable=yes;separatorsize=scrollbars=yes\)")


I had the funny characters too. I replaced all of them with a comma. Strange that the comma character is misinterpreted.

As far as the rest goes, I'm not sure what the problem could be. But I did run into the problems listed above. Hope this helps.

-Jon