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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

HUGE PROBLEM


Poster: fce-moerbeke
Dated: Saturday August 2 2003 - 10:06:35 BST

Ok i have a huge problem with the menu

i have pasted it in my header but the arrows don't show

here is my code

/*
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.
"31404E", // Mouse Off Font Color
"D1D2D2", // Mouse Off Background Color
"D1D2D2", // Mouse On Font Color
"31404E", // Mouse On Background Color
"000000", // 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
"66ffff", // 3D High Color
"000099", // 3D Low Color
"White", // Current Page Item Font Color (leave this blank to disable)
"31404E", // Current Page Item Background Color (leave this blank to disable)
"arrowdn.gif", // Top Bar image (Leave this blank to disable)
"ffffff", // Menu Header Font Color (Leave blank if headers are not needed)
"000099", // 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
115, // Menu Top - The Top position of the menu in pixels
180, // Menu Left - The Left position of the menu in pixels
, // Menu Width - Menus width in pixels
1, // Menu Border Width
, // 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)
"left", // 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)
, // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
, // 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
,"Home","http://www.fce-moerbeke.tk",,"Terug naar de beginpagina",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Main&nbsp;Menu&nbsp;&nbsp;","show-menu=main",,"",1
,"Gebruikers&nbsp;Menu&nbsp;&nbsp;","show-menu=webmaster",,"",1
,"Teams&nbsp;&nbsp;","show-menu=downloads",,"",1
,"Club&nbsp;Info&nbsp;&nbsp;","show-menu=search",,"",1
,"Links&nbsp;&nbsp;","show-menu=torn",,"",1
,"Diversen&nbsp;&nbsp;","show-menu=other",,"",1
])

addmenu(menu=["webmaster",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"&nbsp;Instellingen","modules.php?name=Your_Account",,,1
,"&nbsp;Bekijk Email","modules.php?name=Private_Messages",,,1
,"&nbsp;LogOut/Exit","modules.php?name=Your_Account&op=logout",,,1
])


addmenu(menu=["generalnews",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Register","modules.php?name=bbs&file=join",,,0
,"Check E-mail","http://#",,,0
,"Your Settings","http://#",,,0
])

addmenu(menu=["canadanews",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"CTV News","http://www.ctvnews.com",,,
,"Vancouver Sun","http://www.canada.com/vancouver/vancouversun/",,,
])

addmenu(menu=["technonews",
,,110,1,"",style1,,"left",effect,,,,,,,,,,,,
,"TechWeb","http://www.cnn.com",,,0
,"News.com","http://www.news.com",,,0
,"Wired News","http://www.wired.com",,,0
,"Slashdot","http://www.slashdot.com",,,0
])



addmenu(menu=["main",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"&nbsp;Forum","modules.php?name=Forums",,,1
,"&nbsp;Foto Album","modules.php?name=coppermine",,,1
,"&nbsp;Downloads","modules.php?name=Downloads",,,1
,"&nbsp;Zend Bericht","modules.php?name=Submit_News",,,1
,"&nbsp;Vertel Het Door!","modules.php?name=Recommend_Us",,,1
,"&nbsp;Web Links","modules.php?name=Web_Links",,,1
,"&nbsp;Feedback","modules.php?name=Feedback",,,1
])

addmenu(menu=["downloads",,,120,1,,style1,0,"left",effect,0,,,,,,,,,,,
,"&nbsp;Eerste Ploeg","http://logd.uglords.com",,,1
,"&nbsp;Reserven&nbsp;","",,,1
,"&nbsp;Uefa Junioren","http://logd.uglords.com",,,1
,"&nbsp;Knapen","http://logd.uglords.com",,,1
,"&nbsp;Miniemen","http://logd.uglords.com",,,1
,"&nbsp;Preminiemen","http://logd.uglords.com",,,1
,"&nbsp;Duiveltjes","http://logd.uglords.com",,,1
])



addmenu(menu=["torn",
,,140,1,"",style1,,"",effect,,,,,,,,,,,,
,"&nbsp;Ranking", "war.php",,,1
,"&nbsp;Speelkalender", "war.php?action=nextaction",,,1
,"&nbsp;Daag ons uit !", "challenge.php",,,1
,"&nbsp;Your War Account", "show-menu=wreg",,,1
,"&nbsp;War calendar", "calendar.php",,,1
,"&nbsp;War Stats", "stats.php",,,1
])

addmenu(menu=["wreg",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"&nbsp;Get War Account","joinus.php",,,0
,"&nbsp;Your War Settings","admin/index.php",,,0
])

addmenu(menu=["search",
,,140,1,"",style1,,"",effect,,,,,,,,,,,,
,"&nbsp;Bestuur", "modules.php?name=Forums&file=viewtopic&t=1#1",,,1
,"&nbsp;Routebeschrijving", "modules.php?name=Join",,,1
,"&nbsp;Activiteiten", "modules.php?name=Join",,,1
,"&nbsp;Matchverslagen", "modules.php?name=Join",,,1
,"&nbsp;Sponsors", "modules.php?name=Join",,,1
,"&nbsp;Geschiedenis", "modules.php?name=Join",,,1
])

addmenu(menu=["Other",,,140,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
,"&nbsp;Nieuws","modules.php?name=Members_List",,"Nieuws",1
,"&nbsp;Speel & Win","modules.php?name=Statistics",,"Speel & Win",1
,"&nbsp;Top 10","modules.php?name=Top",,"Moerbeke Top 10 Statistieken",1
])


dumpmenus()

now i have uploaded the arrow files to the same directory as my meny files so i hope someone can help me because i don't like the red X'es

:mrgreen:


Poster: kevin3442
Dated: Saturday August 2 2003 - 10:38:19 BST

Without being able to see your site (can you post a URL?), I'll take a guess... You say you put the image files in the same directory where the menu files are located. That's the problem. It must be the case that your html files are located in a different directory than the menu files (or else it would work). The arrow image file names, e.g., arrow.gif, in your js code do not include a path. You are thinking that the image would therefore be loaded from the same path as the .js file... but that ain't so. Think of it this way. The html file defines the bulk of the page. The browser loads it first. The html file, in turn, may source in other files like .js files, where you no doubt had to specify the path to the .js file in your <script> tag, because the .js file was located in a different path than the html file. It's the same with loading images! When the browser loads an image into the page, and there is no path specified, then the browser will use the path where the html file is located as the default path.

So, you have two choices. (1) Relocate the images to the same directory where the html files are. This, however, is not the best approach if you end up having a site where html pages are coming from different directories. (2) specify the path to the image file (same path as your menu scripts at present).

Also, if you are really using 3.3.19, you might considering updating to 3.5.15 or even going to the next major upgrade, which is version 5, release candidate 4.

Hope that helps,

Kevin


Poster: fce-moerbeke
Dated: Saturday August 2 2003 - 11:58:55 BST

lol
thanks for the reply but there is another problem, i do not use html files, but .php files.

But you might be right because i put the code of the menu on my header.html

but that's it, i just put this

<SCRIPT language=JavaScript>
/*
Milonic DHTML Website Navigation Menu
Written by Andy Woolley
Copyright 2002 (c) Milonic Solutions Ltd. 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 you 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.
*/
</SCRIPT>

<SCRIPT language=JavaScript src="http://members.lycos.nl/clanogs/themes/DarkBlue/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="http://members.lycos.nl/clanogs/themes/DarkBlue/mmenu.js" type=text/javascript></SCRIPT>

on my header file and it loads the menu, but no arrows insight :(