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

trouble with embedded_main_menu


Poster: kelthore
Dated: Saturday March 11 2006 - 21:13:56 GMT

I created an embedded_main_menu.js file with the contents:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
position="relative";
style=menuStyle;
top=10;
aI("status=Back To Home Page;text=News;url=http://www.imaswitcher.com/;");
aI("status=Guild Policies;showmenu=GuildPolicies;text=Policies;");
aI("status=Guild Roster;showmenu=Roster;text=Roster;url=http://rpgoutfitter.com/wow-gm-rs/guild.cfm?guild=Switchers __at__ Frostmane;target=_blank;");
aI("status=Forums;text=Forum;url=http://imaswitcher.proboards51.com;target=_blank;");
aI("status=Officer Contact Information;text=Officer Contact;url=http://www.imaswitcher.com/officercontact.php;");
aI("status=Calendar;text=Calendar;url=http://imaswitcher.proboards51.com/index.cgi?action=calendar;target=_blank;");
aI("status=Pictures;showmenu=Pictures;text=Pictures;");
aI("status=Application;text=Interested?;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://http://www.rpgoutfitter.com;target=_blank;");
aI("text=Character Profiler;url=http://www.rpgoutfitter.com/downloads/rpgo-CharacterProfiler-latest.zip;");
aI("status=Will be available later.;text=Bank Inventory;")
}

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=http://www.goteamspeak.com/index.php?page=downloads;target=_blank;");
aI("status=Milonic, Wonderful java menu Builders ;text=Milonic;url=http://www.milonic.com/;target=_blank;");
aI("status=Search;text=Search;showmenu=Search;");
aI("status=UI Mod Links;text=Mod Links;showmenu=Mods;");
}

with(milonic=new menuname("Search")){
style=menuStyle;
aI("text=<span class=normbod>Search Allakhazam:</span><form action=http://wow.allakhazam.com//search.html target=_blank name=global_s><input name=q size=15 onchange=if(this.selectedIndex !=0){document.global_s.submit();}/></form>;type=form;target=_blank;");
aI("text=<class=normbod>Search Thottbot:<form action=http://www.thottbot.com/ target=_blank name=global_s><input name=s size=15 onchange=if(this.selectedIndex !=0){document.global_s.submit();}/></form>;type=form;target=_blank");

}

with(milonic=new menuname("Mods")){
style=menuStyle;
aI("status=Curse-Gaming;text=Curse Gaming;url=http://www.curse-gaming.com/mod.php;target=_blank");
aI("status=Unofficial WoW UI Site;text=Unofficial WoW UI site;url=http://ui.worldofwar.net;target=_blank;");
}
drawMenus()

And changed the code in my html to look at that file:
</script>
<script type="text/javascript" src="javamenu/menu_data.js"></script>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="110" colspan="3"><img src="images/images/images2_01.gif" width="740" height="110"></td>
</tr>
<tr>
<td width="111" height="19" background="images/images/images2_02.gif">&nbsp;</td>
<td width="550" valign="top" background="images/images/images2_03.gif"> <div align="center">
<SCRIPT type="text/javascript" src="javamenu/embedded_main_menu.js"></SCRIPT>
</div></td>
<td width="79" height="10" background="images/images/images2_04.gif">&nbsp;</td>
</tr>
</table>

But now it wont load for me at all. You can view it here http://www.imaswitcher.com/screenshots.php. Not sure what to do at this point.


Poster: Migru
Dated: Saturday March 11 2006 - 23:18:14 GMT

Hi

the sub menus cannot be placed there, take them out and place them into the file where you have the styles, your "menu_data.js".

This file needs to have its own drawMenus() at the end, which at the moment is missing !

The "embedded_main_menu.js" should contain the main menu only with a drawMenus() but not the submenus !!!

Please see:


http://www.milonic.com/tablemenu.php

Michael


Poster: Migru
Dated: Saturday March 11 2006 - 23:24:45 GMT

Hi

By the way,
as the menu is positioned "relative", top= and left = do not really make sense.

Michael


Poster: kelthore
Dated: Sunday March 12 2006 - 7:22:28 GMT

Thank you so much yeah I really dont know much of any javascript so I'm trying to follow the guides as best as I can, seem to run into a problem every time. Thank you so much for the help though.


Poster: Migru
Dated: Sunday March 12 2006 - 8:05:16 GMT

Hi

oh no, donĀ“t talk of "problems". Would like to say "minor issues", there is help and there is the forum and so on.

Michael