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

Submenus


Poster: rudy
Dated: Sunday January 18 2004 - 2:19:12 GMT

I have read and read but can't see anything on how to make a submenu that is offset from the regular drop down menu. I may not even be describing this correctly, but as I slide down my menu I want another set of links to open off the right side of the current drop down menu.

I have looked at the code but can't see how this is done.


Poster: Ruth
Dated: Sunday January 18 2004 - 3:06:12 GMT

when you setup your menu_data.js file it would work like this...
with
Code:
with(menuStyle=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
and so on for the fonts padding and such. Then added to that would be the various menus..the main one, and the submenus and any subsubmenus.

with(milonic=new menuname("Main")){
style=menuStyle;
and whatever else as to position, always visible etc. then the text
aI("text=This site;showmenu=mysite;");
}

with(milonic=new menuname("mysite")){
style=menuStyle;
and whatever else as to position, etc. then the text
aI("text=poetry;showmenu=mypoems;");
}

with(milonic=new menuname("mypoems")){
style=menuStyle;
and whatever else as to position, etc. then the text
aI("text=1st poem;url=www. etc;");
aI("text=2nd poem;url=www.etc;");
aI("text=short stories;showmenu=stories;");

}




This would give you a menu that had This Site as the main menu item, and when you moused over it, you'd get a menu that showed the word poetry and when you moused over the poetry it would give you the menu for mypoems with the links for 1st Poem and 2nd poem and short stories and when you moused over the short stories it would give you ANOTHER submenu for stories [if you make the menu of course].

innkeeper9 - little more help on the submenu please


Poster: rudy
Dated: Sunday January 18 2004 - 4:11:53 GMT

URL to menu:
http://www.networkdriven.com/qp/TriviaQuiz_xp5.htm
When you get to this page with the meny, rollover the first tab on the left and slide down to the tab that says "Insalling XP Professional". This tab should NOT open a separate window but it does and I can't figure out why.
The showmenu=stories; does not have a url attached to it so it shouldn't open a window but it does.

I got the slide out submenu working but for some reason, the button that the slideout submenus slide off of opens separate window.
I want tha button to just be the text on the button but not open a window.

Here is the code:

Code:


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=50                // Follow scrolling Rate
_subOffsetTop=5               // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(windows98style=new mm_style()){
onbgcolor="#000000";
oncolor="#FFFFFF";
offbgcolor="#FFAD73";
offcolor="#000000";
bordercolor="#BFBFBF";
borderstyle="raised";
borderwidth=2;
separatorsize="2";
padding=4;
fontsize="75%";
fontfamily="tahoma, verdana";
high3dcolor="#eeeeee";
low3dcolor="#7F7F7F";
swap3d="1";
}


with(milonic=new menuname("Main Menu")){
style=windows98style;
top=7;
screenposition="center";
alwaysvisible=1;
orientation="horizontal";
//aI("text=Home;url=http://www.networkdriven.com/index22.html;status=Back To Home Page;");
aI("text=IT Reference Topics;showmenu=Samples;status=Reference Topics");
aI("text=XP Jeopardy;showmenu=Milonic;status=XP Jeopardy;");
aI("text=Acronyms;showmenu=Partners;");
aI("text=Glossary;showmenu=Links;status=Information Technology Glossary of Terms;");
aI("text=XP Diagnostic Tools;showmenu=Anti Spam;status=Administrative and Diagnostic Tools;");
aI("text=Exams Menu;url=http://www.networkdriven.com/main_forwindowsxp.htm;status=   [ Return to Windows XP Exam Menu ]  Select Exam 1 through 5 or Final Exam;");
aI("text=Logout;url=http://www.networkdriven.com/index22.html;status=Back To Home Page;");
}

with(milonic=new menuname("Samples")){
style=windows98style;
overflow="scroll";
aI("text=Configuring Device Drivers;url=http://www.networkdriven.com/drivers.htm;target=_blank;targetfeatures=scrollbars=yes left=47 top=40 height=450;status=How To Install And Update Drivers;");
aI("text=Winddows XP System Restore;url=http://www.networkdriven.com/restore_points.htm;target=_blank;targetfeatures=scrollbars=yes left=47 top=40 height=450;status=Understanding The Windows XP System Restore Feature;");
//aI("text=Jeopardy;url=http://www.networkdriven.com/game_xp.htm;targetfeatures=width=770 height=525 top=1 left=10 toolbar=no;");
aI("text=Troubleshooting Windows XP;url=http://www.networkdriven.com/troubleshooting_win_xp.htm;targetfeatures=height=450 top=40 left=47 scrollbars=yes;status=Troubleshooting Windows XP Professional;");

aI("text=Installing XP Professional;showmenu=stories;");

//aI("text=Image Map Sample;url=menusample.php?sampleid=4;");
//aI("text=Multiple Styles;url=menusample.php?sampleid=5;");
//aI("text=Menus and Tool Tips;url=menusample.php?sampleid=6;");
//aI("text=Multiple Colored Menus;url=menusample.php?sampleid=7;");
//aI("text=Menu Items as Headers;url=menusample.php?sampleid=8;");
//aI("text=Windows XP Style Menus;url=menusample.php?sampleid=12;");
//aI("text=Windows 98 Style Menus;url=menusample.php?sampleid=13;");
//aI("text=Relative Positioning (Table Bound);url=menusample.php?sampleid=9;");
//aI("text=Follow Scrolling;url=menusample.php?sampleid=10;");
//aI("text=Opening Windows & Frames;url=menusample.php?sampleid=11;");
//aI("text=Hiding DIVs when displaying menus;url=menusample.php?sampleid=14;");
//aI("text=Activating MouseOver & MouseOut Functions;url=menusample.php?sampleid=15;");
//aI("text=Dynamic Dragable Menus;url=menusample.php?sampleid=22;");
//aI("text=Positioning with screenposition & offsets;url=menusample.php?sampleid=23;");
//aI("text=100% Width Span Menu;url=menusample.php?sampleid=26;");
//aI("text=Context Right Click Menu;url=menusample.php?sampleid=27;");
//aI("text=Static Images Sample;url=menusample.php?sampleid=16;");
//aI("text=Rollover/swap Images;url=menusample.php?sampleid=17;");
//aI("text=Menus built from images;url=menusample.php?sampleid=18;");
//aI("text=Images as Menu Backgrounds;url=menusample.php?sampleid=19;");
//aI("text=Background Menu Item Images;url=menusample.php?sampleid=20;");
//aI("text=short stories;showmenu=stories;");
}

with(milonic=new menuname("Milonic")){
style=windows98style;
aI("text=Play Windows XP Jeopardy;url=http://www.networkdriven.com/game_xp.htm;targetfeatures=width=770 height=525 top=1 left=10 toolbar=no;status=Play Windows XP Jeopardy;");
//aI("text=Contact Us;url=http://www.milonic.com/contactus.php;");
//aI("text=Newsletter Subscription;url=http://www.milonic.com/newsletter.php;");
//aI("text=FAQ;url=http://www.milonic.com/menufaq.php;");
//aI("text=Discussion Forum;url=http://www.milonic.com/forum/;");
//aI("text=Software License Agreement;url=http://www.milonic.com/license.php;");
//aI("text=Privacy Policy;url=http://www.milonic.com/privacy.php;");
}

with(milonic=new menuname("Partners")){
style=windows98style;
aI("text=Acronyms Lookup;url=http://www.networkdriven.com/acronyms_search_ccna.htm;target=_blank;targetfeatures=scrollbars=yes left=47 top=40 height=450;status=Acronyms Lookup;");
//aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
//aI("text=WebSmith;url=http://www.softidiom.com/;");
}

with(milonic=new menuname("Links")){
style=windows98style;
aI("text=Glossary Search Engine;url=http://www.networkdriven.com/glossary_alphabet_routing.htm;target=_blank;targetfeatures=scrollbars=yes left=47 top=40 height=450;status=Glossary Of Terms Search Engine;");
//aI("text=MySQL Database Server;url=http://ww.mysql.com/;status=MySQL, Milonic's Prefered Choice of Database Server;");
//aI("text=PHP - Development;url=http://www.php.net/;status=PHP - Web Server Scripting as used by Milonic;");
//aI("text=phpBB Web Forum System;url=http://www.phpbb.net/;status=PHP Based Web Forum, Milonic's Recommended Forum Software;");
//aI("text=Anti Spam Tools;showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;");
}

with(milonic=new menuname("Anti Spam")){
style=windows98style;
aI("text=Running Disk Management Tool;url=http://www.networkdriven.com/xp_diagnostic_tools.htm;targetfeatures=height=450 top=40 left=47 scrollbars=yes;status=Learn to use the Administrative and Diagnostic Tools that come with Windows XP Professional;");
//aI("text=Mime Defang;url=http://www.mimedefang.org/;");
//aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
}

with(milonic=new menuname("My Milonic")){
style=windows98style;
//aI("text=Login;url=http://www.milonic.com/login.php;");
//aI("text=Licenses;url=http://www.milonic.com/mylicenses.php;");
//aI("text=Invoices;url=http://www.milonic.com/myinvoices;");
//aI("text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
//aI("text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
//aI("text=Your Details;url=http://www.milonic.com/mydetails.php;");
}

with(milonic=new menuname("stories")){
style=windows98style;
aI("text=stories;url=http://www.milonic.com/login.php;");
aI("text=stories;url=http://www.milonic.com/mylicenses.php;");
aI("text=Invoices;url=http://www.milonic.com/myinvoices;");
aI("text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
aI("text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
aI("text=Your Details;url=http://www.milonic.com/mydetails.php;");
}

drawMenus();



Poster: Ruth
Dated: Sunday January 18 2004 - 6:14:39 GMT

I take it you mean if you click on it then a separate window opens. I do not know why it's doing that..if you mouseover you can actually see the 'link address' http://www.networkdriven/qp/ I'm not sure if there's some function you've got on your site someplace that is doing that, because there is definately no link after that aI. And in particular there is no 'target= anyplace there to have it open a new window. Sorry. Perhaps one of the really knowledgeable guys will be able to figure it out. [though as far as the cursor is concerned they will show the hand if you ahve a showmenu=whatever, after all that is sort of a link.

One thing I would suggest. Instead of leaving all those milonic aI and commenting them out, I'd get them out of the data file because it makes it much harder since there is so much extra content to go through the file as one is trying to see where a problem is.

Ruth

I gave up, Ruth


Poster: rudy
Dated: Sunday January 18 2004 - 6:31:40 GMT

Ruth,
Thanks for taking the time to look into my menu problem. I tried everything under the sun but it keeps opening a window on that button and that is unexceptable. It has something to do with the "taregetfeatues" and then the width, left and top positioning I have coded. When I remove those it no longer opens the window but I also then loose the window positioning on all the links.

I don't like child pages to open into the parent page (which is the full size of the screen) as so many people will simply close the page instead of clicking the back button, not realizing they are actually closing the browser. If I put my child pages on a separate window (a little smaller than the parent page) using the target=_blank code they always remember to close it and they haven't left my Web site. Hope this makes sense.

Sure would like to get it working, hope one of the teams leaders can help :(

Thanks again,