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

See nothing on a mac -> array prob.?


Poster: Rolf
Dated: Sunday June 29 2003 - 9:47:29 BST

Hi,

I dont see the menu on a mac with (OS9.2) IE 5.1.2 / IE 5.2

I think the problem is either in the array, or perhaps I have to load it when the rest of the page is loaded.
As I don't have a mac, I can only test at some other places, therefor I will try to move the js-call for the menu and test this afternoon, but here is already a copy of my array - which perhaps has problems in it already (I can't discover one!).

Any assistance is appreciated.
What I don't understand is the ",,,0" behind each item, or sometimes it's just ",,0". I copied/edited the code of examples, and it works perfect on a pc though.

(i still need to include width+height of the images in it).

I want to get it done so it works perfectly and I can get a license! :)

TIA,
Rolf


mmenu_array.js:
Code:
/*
Milonic DHTML Menu
Written by Andy Woolley
Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
*/

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE.
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 you have more than one _array.js file


////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

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


AllImagesStyle=[              // AllImagesStyle is an array of properties. You can have as many property arrays as you need
"",                           // Mouse Off Font Color
"black",                      // Mouse Off Background Color (use zero for transparent in Netscape 6)
"",                           // Mouse On Font Color
"black",                      // Mouse On Background Color
"",                           // Menu Border Color
,                             // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",                     // Font Style (italic or normal)
"normal",                     // Font Weight (bold or normal)
,                             // Font Name
,                             // Menu Item Padding or spacing
,                             // Sub Menu Image (Leave this blank if not needed)
0,                            // 3D Border & Separator bar
,                             // 3D High Color
,                             // 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)
,                             // Menu Item Separator Color
]

addmenu(menu=[
"Main",                         // Menu Name - This is needed in order for this menu to be called
80,                           // Menu Top - The Top position of this menu in pixels
132,                          // Menu Left - The Left position of this menu in pixels
,                               // Menu Width - Menus width in pixels
0,                            // Menu Border Width
,                             // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
AllImagesStyle,               // Properties Array - this array is declared higher up as you can see above
1,                            // Always Visible - allows this menu item to be visible at all time (1=on or 0=off)
,                             // Alignment - sets this menu elements text alignment, values valid here are: left, right or center
"",                       // Filter - Text variable for setting transitional effects on menu activation - see above for more info
0,                            // Follow Scrolling Top Position - Tells this menu to follow the user down the screen on scroll placing the menu at the value specified.
1,                            // Horizontal Menu - Tells this menu to display horizontaly instead of top to bottom style (1=on or 0=off)
0,                            // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on or 0=off)
,                             // Position of TOP sub image left:center:right
,                             // Set the Overall Width of Horizontal Menu to specified width or 100% and height to a specified amount
0,                            // Right To Left - Used in Hebrew for example. (1=on or 0=off)
0,                            // Open the Menus OnClick - leave blank for OnMouseover (1=on or 0=off)
,                             // ID of the div you want to hide on MouseOver (useful for hiding form elements)
,                             // Background image for menu Color must be set to transparent for this to work
0,                            // Scrollable Menu
,                             // Miscellaneous Menu Properties
,"<img src=images/new/main_youraccount.gif border=0>","show-menu=youraccount","#",,0
,"<img src=images/new/main_payments.gif border=0>","show-menu=payments","#",,0
,"<img src=images/new/main_shipping.gif border=0>","show-menu=shipping","#",,0
,"<img src=images/new/main_cart.gif border=0>","show-menu=shoppingcart","#",,0
,"<img src=images/new/main_terms.gif border=0>","show-menu=terms","#",,0
,"<img src=images/new/main_mail.gif border=0>","show-menu=mail","#",,0
,"<img src=images/new/main_questions.gif border=0>","show-menu=questions","#",,0
])

// SUB MENU > YOUR ACCOUNT
addmenu(menu=[
"youraccount",
,
,
114,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/new/persoonlijk_off.gif border=0>","show-menu=personalslide","# swapimage=images/new/web_persoonlijk_on.gif;",,0
,"<img src=images/new/bekijkorders_off.gif border=0>","show-menu=viewordersslide","# swapimage=images/new/web_bekijkorders_on.gif;",,0
,"<img src=images/new/plaatsorders_off.gif border=0>","show-menu=placeordersslide","# swapimage=images/new/web_plaatsorders_on.gif;",,0
,"<img src=images/new/stijlkiezer_off.gif border=0>","web_youraccount_styleselector.php swapimage=images/new/web_stijlkiezer_on.gif;",,,0
,"<img src=images/new/loguit_off.gif border=0>","web_youraccount_logout.php?logout=confirm swapimage=images/new/web_loguit_on.gif;",,,0
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > YOUR ACCOUNT > PERSONAL SLIDE
addmenu(menu=[
"personalslide",
,
,
150,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/new/persoonlijkepagina_off.gif border=0>","web_youraccount_login.php swapimage=images/new/web_persoonlijkepagina_on.gif;",,,0
,"<img src=images/new/factuurinformatie_off.gif border=0>","web_youraccount_information.php?type=billing swapimage=images/new/web_factuurinformatie_on.gif;",,,0
,"<img src=images/new/verzendinformatie_off.gif border=0>","web_youraccount_information.php?type=shipping swapimage=images/new/web_verzendinformatie_on.gif;",,,0
,"<img src=images/new/wijzigwachtwoord_off.gif border=0>","web_youraccount_changepassword.php swapimage=images/new/web_wijzigwachtwoord_on.gif;",,,0
,"<img src=images/new/kiestaal_off.gif border=0>","web_youraccount_language.php swapimage=images/new/web_kiestaal_on.gif;",,,0
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > YOUR ACCOUNT > VIEW ORDERS SLIDE
addmenu(menu=[
"viewordersslide",
,
,
108,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/spacer.gif border=0>","#",,,0
,"<img src=images/new/klaar_off.gif border=0>","web_youraccount_ready2.php swapimage=images/new/web_klaar_on.gif;",,,0
,"<img src=images/new/orderstatus2_off.gif border=0>","web_youraccount_orderstatus.php swapimage=images/new/web_orderstatus2_on.gif;",,,0
,"<img src=images/new/oudeorders_off.gif border=0>","web_youraccount_prevorders.php swapimage=images/new/web_oudeorders_on.gif;",,,0
,"<img src=images/new/verlanglijst_off.gif border=0>","web_youraccount_wishlist.php swapimage=images/new/web_verlanglijst_on.gif;",,,0
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > YOUR ACCOUNT > PLACE ORDERS SLIDE
addmenu(menu=[
"placeordersslide",
,
,
178,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/spacer.gif border=0>","#",,,0
,"<img src=images/new/automatischeorders_off.gif border=0>","web_youraccount_autoorders.php swapimage=images/new/web_automatischeorders_on.gif;",,,0
,"<img src=images/new/onbekendproduct_off.gif border=0>","web_youraccount_placeonlp.php swapimage=images/new/web_onbekendproduct_on.gif;",,,0
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > PAYMENTS
addmenu(menu=[
"payments",
,
,
89,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/betalen_off.gif border=0>","web_payments.php swapimage=images/web_betalen_on.gif;",,,0
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > SHIPPING
addmenu(menu=[
"shipping",
,
,
89,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/versturen_off.gif border=0>","web_shippingandhandling.php swapimage=images/web_versturen_on.gif;",,,1
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > CART
addmenu(menu=[
"shoppingcart",
,
,
118,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/winkelwagen_off.gif border=0>","web_shoppingcart.php swapimage=images/web_winkelwagen_on.gif;",,,1
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > TERMS
addmenu(menu=[
"terms",
,
,
186,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/algemenevoorw_off.gif border=0>","web_terms_termsoftrade.php swapimage=images/web_algemenevoorw_on.gif;",,,1
,"<img src=images/rechtaanspraak_off.gif border=0>","web_terms_copyright.php swapimage=images/web_rechtaanspraak_on.gif;",,,1
,"<img src=images/spacer.gif border=0>","#",,,0
])

// SUB MENU > MAIL
addmenu(menu=[
"mail",
,
,
89,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/mailinglist_off.gif border=0>","web_mail_mailinglist.php swapimage=images/web_mailinglist_on.gif;",,,1
,"<img src=images/contactus_off.gif border=0>","web_mail_contactus.php swapimage=images/web_contactus_on.gif;",,,1
])

// SUB MENU > QUESTIONS
addmenu(menu=[
"questions",
,
,
150,
0,
,
AllImagesStyle,
0,
,
"",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"<img src=images/new/privacy_off.gif border=0>","web_help_privacy.php swapimage=images/new/web_privacy_on.gif;",,,1
,"<img src=images/new/beveiliging_off.gif border=0>","web_help_security.php swapimage=images/new/web_beveiliging_on.gif;",,,1
,"<img src=images/new/veelgesteldevragen_off.gif border=0>","web_help_faq.php swapimage=images/new/web_veelgesteldevragen_on.gif;",,,1
,"<img src=images/new/technischevragen_off.gif border=0>","web_help_techfaq.php swapimage=images/new/web_technischevragen_on.gif;",,,1
,"<img src=images/spacer.gif border=0>","#",,,0
])


dumpmenus();


Poster: John
Dated: Monday June 30 2003 - 21:36:54 BST

Hope the boss doesn't yell at me, but I never could get my menus to work on a Mac, either. Give v4 a try. It's very stable, and darn near ready for prime time (not to mention my stuff now works on Macs!).

http://www.milonic.com/4beta/menu.htm