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:12
Trouble Getting The menu to show
Poster: kelthore
Dated: Saturday March 4 2006 - 11:06:07 GMT
I'm still fairly new at this whole java script thing so i have no idea how im coding it wrong.
information from menu_data.js:
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
with(menuStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#D10707";
offcolor="#000000";
onbgcolor="#ddffdd";
oncolor="#000099";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=4;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#999999";
separatorsize=1;
subimage="javamenu/arrow.gif";
subimagepadding=2;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("status=Back To Home Page;text=News;url=http://www.imaswitcher.com/;");
aI("status=Guild Policies;showmenu=GuildPolicies;text=Guild Policies/Rules;");
aI("status=Guild Roster;showmenu=Roster;text=Roster;url=http://rpgoutfitter.com/wow-gm-rs/guild.cfm?guild=Switchers __at__ Frostmane");
aI("status=Forums;text=Forum;url=http://imaswitcher.proboards51.com");
aI("status=Officer Contact Information;text=Officer Contact;");
aI("Status=Calendar;text=Calendar;url=http://imaswitcher.probords51.com/index.cgi?action=calendar");
aI("Status=Pictures;showmenu=Pictures;text=Pictures;");
aI("Status=Application;text=Interested? Apply Here!;url=http://www.imaswitcher.com/application.php");
aI("Status=Guild Resources;showmenu=Resources;text=Resources;");
}
with(milonic=new menuname("GuildPolicies")){
overflow="scroll";
style=menuStyle;
aI("status=Conduct/Behavior;text=Conduct/Behavior;url=http://www.imaswitcher.com/conduct.php;");
aI("status=Point System;text=Point System;url=http://www.imaswitcher.com/pointsystem.php;");
aI("status=Banking System;text=Banking System;url=http://www.imaswitcher.com/bankingsystem.php;");
}
with(milonic=new menuname("Roster")){
style=menuStyle;
aI("status=Update Your Character;text=Update;url=http://www.imaswitcher.com/update.php;");
aI("text=Character Profiler;url=http://www.rpgoutfitter.com/downloads/rpgo-CharacterProfiler-latest.zip;");
aI("status=Check the bank Inventory;text=Bank Inventory;url=http://www..php;");
}
with(milonic=new menuname("Pictures")){
style=menuStyle;
aI("status=Mugshots of Members;text=Mugshots;url=http://www.imaswitcher.com/mugshots.php;");
aI("status=Screenshots of our adventures;text=Screenshots;url=http://www.imaswitcher.com/screenshots.php;");
aI("status=Send your pictures to Kelthore for uploading;text=Email Your Screenshots or Mugshots;url=jnoel __at__ imaswitcher.com;");
}
with(milonic=new menuname("Resources")){
style=menuStyle;
aI("status=Join Team Speak;text=TeamSpeak;url=teamspeak://207.44.140.85:4138/label=Switchers;");
aI("status=Milonic, Wonderful java menu Builders ;text=Milonic;url=http://www.milonic.com/;");
aI("status=Search;text=Search;showmenu=Search;");
aI("status=UI Mod Links;text=Mod Links;showmenu=Mods;");
}
with(milonic=new menuname("Search")){
style=menuStyle;
}
with(milonic=new menuname("Mods")){
style=menuStyle;
aI("Status=Curse-Gaming;text=Curse Gaming;url=http://www.curse-gaming.com/mod.php;");
aI("status=Unofficial WoW UI Site;text=Unofficial WoW UI site;url=http://ui.worldofwar.net);
}
drawMenus();
Information from HTML:
<!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>
<script type="text/javascript" src="javamenu/milonic_src.js"></script>
<div class=milonic><a href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a></div>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=javamenu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=javamenu/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="javamenu/menu_data.js"></script>
<a href=http://www.milonic.com/>DHTML JavaScript Menu Courtesy of Milonic.com</a>
</body>
</html>
I know what im doing wrong is basic but help me out please.
Poster: Migru
Dated: Saturday March 4 2006 - 13:22:46 GMT
Hi
got it to work.
Its a matter of some syntax errors.
I´ve commented them by "// comment"
Here is the code
a) the menufile
Code:
fixMozillaZIndex=true;
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
with(menuStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#D10707";
offcolor="#000000";
onbgcolor="#ddffdd";
oncolor="#000099";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=1;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#999999";
separatorsize=1;
subimage="arrow.gif"; // Path modified for test
subimagepadding=2;
}
with(milonic=new menuname("Main")){
alwaysvisible=1;
style=menuStyle;
left=10;
top=10;
orientation="horizontal";
aI("text=News;url=http://www.imaswitcher.com/;status=Back To Home Page;");
aI("text=Guild Policies/Rules;status=Guild Policies;showmenu=GuildPolicies;");
aI("text=Roster;url=http://rpgoutfitter.com/wow-gm-rs/guild.cfm?guild=Switchers __at__ Frostmane;status=Guild Roster;showmenu=Roster;"); // Semicolon
aI("text=Forum;url=http://imaswitcher.proboards51.com;status=Forums;"); //Semicolon
aI("text=Officer Contact;status=Officer Contact Information;");
aI("text=Calendar;url=http://imaswitcher.probords51.com/index.cgi?action=calendar;Status=Calendar;"); //Semicolon
aI("text=Pictures;Status=Pictures;showmenu=Pictures;");
aI("text=Interested? Apply Here!;url=http://www.imaswitcher.com/application.php;Status=Application;"); //Semicolon
aI("text=Resources;Status=Guild Resources;showmenu=Resources;");
}
with(milonic=new menuname("GuildPolicies")){
overflow="scroll";
style=menuStyle;
aI("status=Conduct/Behavior;text=Conduct/Behavior;url=http://www.imaswitcher.com/conduct.php;");
aI("status=Point System;text=Point System;url=http://www.imaswitcher.com/pointsystem.php;");
aI("status=Banking System;text=Banking System;url=http://www.imaswitcher.com/bankingsystem.php;");
}
with(milonic=new menuname("Roster")){
style=menuStyle;
aI("status=Update Your Character;text=Update;url=http://www.imaswitcher.com/update.php;");
aI("text=Character Profiler;url=http://www.rpgoutfitter.com/downloads/rpgo-CharacterProfiler-latest.zip;");
aI("status=Check the bank Inventory;text=Bank Inventory;url=http://www..php;");
}
with(milonic=new menuname("Pictures")){
style=menuStyle;
aI("status=Mugshots of Members;text=Mugshots;url=http://www.imaswitcher.com/mugshots.php;");
aI("status=Screenshots of our adventures;text=Screenshots;url=http://www.imaswitcher.com/screenshots.php;");
aI("status=Send your pictures to Kelthore for uploading;text=Email Your Screenshots or Mugshots;url=jnoel __at__ imaswitcher.com;");
}
with(milonic=new menuname("Resources")){
style=menuStyle;
aI("status=Join Team Speak;text=TeamSpeak;url=teamspeak://207.44.140.85:4138/label=Switchers;");
aI("status=Milonic, Wonderful java menu Builders ;text=Milonic;url=http://www.milonic.com/;");
aI("status=Search;text=Search;showmenu=Search;");
aI("status=UI Mod Links;text=Mod Links;showmenu=Mods;");
}
with(milonic=new menuname("Search")){
style=menuStyle;
}
with(milonic=new menuname("Mods")){
style=menuStyle;
aI("Status=Curse-Gaming;text=Curse Gaming;url=http://www.curse-gaming.com/mod.php;");
aI("status=Unofficial WoW UI Site;text=Unofficial WoW UI site;url=http://ui.worldofwar.net;"); // Semicolon and quotes
}
drawMenus();
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
with(menuStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#D10707";
offcolor="#000000";
onbgcolor="#ddffdd";
oncolor="#000099";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=1;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#999999";
separatorsize=1;
subimage="arrow.gif"; // Path modified for test
subimagepadding=2;
}
with(milonic=new menuname("Main")){
alwaysvisible=1;
style=menuStyle;
left=10;
top=10;
orientation="horizontal";
aI("text=News;url=http://www.imaswitcher.com/;status=Back To Home Page;");
aI("text=Guild Policies/Rules;status=Guild Policies;showmenu=GuildPolicies;");
aI("text=Roster;url=http://rpgoutfitter.com/wow-gm-rs/guild.cfm?guild=Switchers __at__ Frostmane;status=Guild Roster;showmenu=Roster;"); // Semicolon
aI("text=Forum;url=http://imaswitcher.proboards51.com;status=Forums;"); //Semicolon
aI("text=Officer Contact;status=Officer Contact Information;");
aI("text=Calendar;url=http://imaswitcher.probords51.com/index.cgi?action=calendar;Status=Calendar;"); //Semicolon
aI("text=Pictures;Status=Pictures;showmenu=Pictures;");
aI("text=Interested? Apply Here!;url=http://www.imaswitcher.com/application.php;Status=Application;"); //Semicolon
aI("text=Resources;Status=Guild Resources;showmenu=Resources;");
}
with(milonic=new menuname("GuildPolicies")){
overflow="scroll";
style=menuStyle;
aI("status=Conduct/Behavior;text=Conduct/Behavior;url=http://www.imaswitcher.com/conduct.php;");
aI("status=Point System;text=Point System;url=http://www.imaswitcher.com/pointsystem.php;");
aI("status=Banking System;text=Banking System;url=http://www.imaswitcher.com/bankingsystem.php;");
}
with(milonic=new menuname("Roster")){
style=menuStyle;
aI("status=Update Your Character;text=Update;url=http://www.imaswitcher.com/update.php;");
aI("text=Character Profiler;url=http://www.rpgoutfitter.com/downloads/rpgo-CharacterProfiler-latest.zip;");
aI("status=Check the bank Inventory;text=Bank Inventory;url=http://www..php;");
}
with(milonic=new menuname("Pictures")){
style=menuStyle;
aI("status=Mugshots of Members;text=Mugshots;url=http://www.imaswitcher.com/mugshots.php;");
aI("status=Screenshots of our adventures;text=Screenshots;url=http://www.imaswitcher.com/screenshots.php;");
aI("status=Send your pictures to Kelthore for uploading;text=Email Your Screenshots or Mugshots;url=jnoel __at__ imaswitcher.com;");
}
with(milonic=new menuname("Resources")){
style=menuStyle;
aI("status=Join Team Speak;text=TeamSpeak;url=teamspeak://207.44.140.85:4138/label=Switchers;");
aI("status=Milonic, Wonderful java menu Builders ;text=Milonic;url=http://www.milonic.com/;");
aI("status=Search;text=Search;showmenu=Search;");
aI("status=UI Mod Links;text=Mod Links;showmenu=Mods;");
}
with(milonic=new menuname("Search")){
style=menuStyle;
}
with(milonic=new menuname("Mods")){
style=menuStyle;
aI("Status=Curse-Gaming;text=Curse Gaming;url=http://www.curse-gaming.com/mod.php;");
aI("status=Unofficial WoW UI Site;text=Unofficial WoW UI site;url=http://ui.worldofwar.net;"); // Semicolon and quotes
}
drawMenus();
b) the html file I´ve used (modified the path settings for my directories)
Code:
<!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>
<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 type="text/javascript" src="menu_data.js"></script>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a href=http://www.milonic.com/>DHTML JavaScript Menu Courtesy of Milonic.com</a>
</body>
</html>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</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 type="text/javascript" src="menu_data.js"></script>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a href=http://www.milonic.com/>DHTML JavaScript Menu Courtesy of Milonic.com</a>
</body>
</html>
Comment: The "fatal" error was triggered by missing quotes after the final aI("..;"); string - submenu Mods.
Hope this helps
Michael
Thanks
Poster: kelthore
Dated: Saturday March 4 2006 - 15:52:50 GMT
Worked perfectly thanks much for the help!
Poster: Migru
Dated: Saturday March 4 2006 - 16:49:00 GMT
Hi
it is really important to check carefully all these quotes, double quotes, semicolon etc. etc. - and to check the completion of aI("........" ; ) ; - strings. If for instance one double quote "; is missing - the entire menu does not show !
Michael