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

Templates


Poster: docsmith
Dated: Thursday June 19 2003 - 14:48:06 BST

I have the menu working beutifully - in my templates.
I have placed the correct links, it looks nice, even goes to the correct pages.
The menu does not appear on any of the pages using my templates.
Should I have the full path e.g. http://etc/etc to the menu_array in the template?
I have no navigation at the moment.
The template in question is at:
http://www.kaomag.com/Templates/topnav.dwt
Thanks
BG
Cairns
Sunny Qld

Help me


Poster: docsmith
Dated: Tuesday June 24 2003 - 20:04:42 BST

Please take pity on a poor webmaster!
I need help guy's (and gals)
This works perfectly in the templates, but doesn't display in the pages? :oops:
The menu_array code is as follows:

/*
DHTML Menu version 3.3.19
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.
This script featured on Dynamic Drive (http://www.dynamicdrive.com)
*/

//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 //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
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)" // Stop IE5.5 bug when using more than one filter
}


timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=40 // Follow Scrolling Rate
suboffset_top=10; // Sub menu offset Top position
suboffset_left=10; // Sub menu offset Left position

style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffff00", // Mouse Off Font Color
"000066", // Mouse Off Background Color
"000000", // Mouse On Font Color
"ffffff", // Mouse On Background Color
"0033ff", // Menu Border Color
12, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // Font Name
4, // Menu Item Padding
"arrow.gif", // Sub Menu Image (Leave this blank if not needed)
, // 3D Border & Separator bar
"ffffcc", // 3D High Color
"000099", // 3D Low Color
"", // Current Page Item Font Color (leave this blank to disable)
"", // Current Page Item Background Color (leave this blank to disable)
"", // Top Bar image (Leave this blank to disable)
"", // Menu Header Font Color (Leave blank if headers are not needed)
"", // Menu Header Background Color (Leave blank if headers are not needed)
]



addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
100, // Menu Top - The Top position of the menu in pixels
50, // Menu Left - The Left position of the menu in pixels
, // Menu Width - Menus width in pixels
3, // Menu Border Width
"center", /* center required double quotes */ // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"center", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect, // Filter - Text variable for setting transitional effects on menu activation - see above for more info
, // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
1, // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
"left", /* left required double quotes */ // Position of TOP sub image left:center:right
, // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
, // Right To Left - Used in Hebrew for example. (1=on/0=off)
, // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
, // ID of the div you want to hide on MouseOver (useful for hiding form elements)
, // Reserved for future use
, // Reserved for future use
, // Reserved for future use
,"Homepages","show-menu=home",,"kaomag Admin Things",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Henris Art&nbsp;&nbsp;",href="http://henri.kaomag.com",,"Quality art on the web",1
,"People&nbsp;&nbsp;","show-menu=people",,"Sailors being silly",1
,"Ships&nbsp;&nbsp;","show-menu=ships",,"Big steel grey things",1
,"Humour&nbsp;&nbsp;","show-menu=funnies",,"Well,we think they are funny",1 /* apostrophe in they're */
,"kaomag Shop&nbsp;&nbsp;",href="http://www.kaomag.com/shop2.htm target=mainFrame",,"Get the Webmaster out of debt to the bank!",1
,"Scranbag Leftovers&nbsp;&nbsp;","show-menu=scran",,"Junk that does not fit in the other menus",1 /* apostrophe in doesn't */
])

addmenu(menu=["home",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Administration","show-menu=Admin",,,1
,"Of Interest","show-menu=interest",,,1
])
addmenu(menu=["Admin",,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Privacy",href="http://www.kaomag.com/policies.htm",,"kaomag policies on privacy etc",1
,"Disclaimers",href="http://www.kaomag.com/disclaimers.htm",,"We didnt do it",1
,"F.A.Q.s",href="http://www.kaomag.com/faqs.htm",,"Ask us",1 /* removed apostrophe */
,"News",href="http://www.kaomag.com/news.html",,"What is new on kaomag",1 /* removed apostrophes */
,"Weather etc",href="http://www.kaomag.com/utilities.html",,"World time, weather, currency and other goodies",1
,"Acknowledgements",href="http://www.kaomag.com/thanks.html",,"This helped make this shambles",1
,"kaomag e-cards",href="http://www.kaomag.com/card.html",,"Send a virtual card to a mate!",1
])
addmenu(menu=["interest",,,110,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Window",href="http://www.kaomag.com/window.htm",,"Health Services Memorial Window",1
,"Constant Care",href="http://www.kaomag.com/constant_care.htm",,"Order form for the new book",1
,"Web Design",href="http://www.kaomag.com/*----*.html",,"The worlds worst webpage design",1
,"Punch a Pollie",href="http://www.kaomag.com/PunchMeFree/punchme.html",,"Give Johnnie or Bill Gates a smack in the kisser",1
,"The Webmaster",href="http://www.kaomag.com/me.html",,"Blah, blah, blah",1
,"Recommend Us",href="",,,1 /* two double quotes before target */
,"Link to kaomag",href="",,,1
])

addmenu(menu=["people",,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"WRANS",href="http://www.kaomag.com/wrans.html",,"Girls of the Navy",1
,"Party Pages",href="http://www.kaomag.com/party.htm",,"Oh my God! Did we really do that???",1
,"Guestbook",href="http://www.kaomag.com/newguestbook/index.php",,"Sign the thing, please!!!!",1
,"Tiffies Forum",href="http://www.kaomag.com/reunion/index.php target=_blank",,,1
,"Chatroom",href="http://www.kaomag.com/chat/phpMyChat.php3",,,1
,"M.T.S.",href="http://www.kaomag.com/mts.htm",,"M.T.S. class photos",1
,"New Navy",href="http://www.kaomag.com/new_navy.htm",,"Pictures of Sailors",1
,"Reunion 2002",href="http://www.kaomag.com/reunion.htm",,"Health Services Reunion 2002",1
])

addmenu(menu=["ships",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"My Ships","show-menu=mine",,"Ships that the webmaster has served in",1
,"Warship50","show-menu=l50",,"The mighty Warship 50",1
,"More Ships","show-menu=more",,,1
,"The Fleet","show-menu=fleet",,,1
,"Vung Tau",href="http://www.kaomag.com/vung_tau.html",,"Vung Tau Harbour - 1971",1
])
addmenu(menu=["mine",,,120,1,"",style1,0,"left",effect,0,,,,,,,,,,,
,"HMAS Sydney",href="http://www.kaomag.com/p214.html",,"The Vung Tau Ferry",1
,"HMAS Sydney-1956",href="http://www.kaomag.com/albums/1956/index.html",,"1956 Deployment - Sydney and Melbourne",1
,"HMAS Stalwart",href="http://www.kaomag.com/stalwart.html",,"Building 215",1
,"HMAS Torrens",href="http://www.kaomag.com/warships.html",,"Fighting 53",1
,"HMAS Vampire",href="http://www.kaomag.com/vampire.html",,,1
,"White Navy",href="http://www.kaomag.com/albums/little_ships.html",,"Little white and grey floaty things",1
])
addmenu(menu=["l50",,,140,1,"",style1,0,"left",effect,,,,,,,,,,,,
,"&nbsp;HMAS Tobruk",href="http://www.kaomag.com/l50.html",,"Warship 50 and her crew - 1989",1
,"L50-1",href="http://www.kaomag.com/l50_2.html",,,1
,"L50-2",href="http://www.kaomag.com/l50_3.html",,,1
,"L50-3",href="http://www.kaomag.com/l50_4.html",,,1
,"Flight Ops",href="http://www.kaomag.com/flight.html" ,,"Wokka wokkas landing on ships",1 /* removed apostrophe */
])
addmenu(menu=["more",,,140,1,"",style1,,"",effect,,,,,,,,,,,,
,"Other Ships",href="http://www.kaomag.com/more_ships.html",,"Ships from lots of places",1
])
addmenu(menu=["fleet",,,140,1,"",style1,,"",effect,,,,,,,,,,,,
,"The Fleet",href="http://www.kaomag.com/fleet.htm",,"Portal for ships around now",1
])

addmenu(menu=["funnies",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"The Original",href="http://www.kaomag.com/magazine.htm",,"The original kaomag magazine",1
,"Stuff",href="http://www.kaomag.com/stuff.html",,"Lots of funny stuff",1 /* removed apostrophe from lot's */
,"Other Stuff",href="http://www.kaomag.com/other_stuff.html",,"Stuff that is not in the Stuff page",1 /* removed apostrophes */
,"Bawdy Ballads",href="http://www.kaomag.com/Verse/naughty/naughty_stuff.html",,"Politically non-correct poems",1
])

addmenu(menu=["scran",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"The Scranbag","show-menu=bag",,"Some real good junk in here",1
,"Verse",href="http://www.kaomag.com/verse.html",,"Classic Poetry",1
,"Military Verse","http://www.kaomag.com/Verse/verse_index.html",,"Poetry written by ADF members",1
,"Music",href="http://www.kaomag.com/music.html",,"Oldies, but bloody goodies!",1
,"www sites",href="http://www.kaomag.com/links.html",,"Good sites to visit",1
])

addmenu(menu=["bag",,,140,1,"",style1,,"left",effect,,,,,,,,,,,, /* one comma too many here */
,"Aust. Medals",href="http://www.kaomag.com/medals.html",,"Medal winners from the past and their awards",1
,"Veteran's Oath",href="http://www.kaomag.com/veterans.html",,"I am a Veteran",1
,"Naval Terms",href="http://www.kaomag.com/terms.html",,"A short dictionary explaining Naval vernacular",1
,"Navy Simulation",href="http://www.kaomag.com/simulation.html",,"How to simulate life on a warship",1
,"Enlistment Oaths",href="http://www.kaomag.com/enlist.html",,"Different oaths for different services",1
])


addmenu(menu=["Other",,,140,1,,style1,0,"left",effect,,,,,,,,,,,, /* one comma too many here */
,"Menu Authors Site","http://www.milonic.co.uk/menu",,"Milonic DHTML Menu Site",1
])


dumpmenus()
I would appreciate assistance
Thanks
brian

Same kind of Problem with templates


Poster: Surfergirl
Dated: Friday June 27 2003 - 17:55:38 BST

This very cool menu ( I love it) is working ok in the index page. It works even if the index is saved as a template - because its on the root directory with the menu_array.js But when I put the template in a subdirectory - it looses the arrows.

This is the script from the template in the sub-directory

<SCRIPT language=JavaScript src="../../menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../../mmenu.js" type=text/javascript></SCRIPT>

The menu_array.js is looking for the arrow.gif which is in the main directory and its not showing up. How do you get around that :?:

Figured it out


Poster: Surfergirl
Dated: Friday June 27 2003 - 18:10:08 BST

Well, doc, you gave me an idea - I used the absolute path to the arrow in the menu_array.js and it worked. Hope you figured out your prob. ;)