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

Slow menu


Poster: Thrina Brezenski
Dated: Thursday April 3 2003 - 23:44:32 BST

I have 2 menus in the same array file and they work just great. My problem is the download time. What can I do to speed this up. This is on our company intranet so can't send the URL. Here is the code though from the Array file

/*
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=100);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.
"black", // Mouse Off Font Color
"ddddc8", // Mouse Off Background Color
"white", // Mouse On Font Color
"4b0082", // Mouse On Background Color
"000000", // Menu Border Color
9, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"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
"Purple", // Current Page Item Font Color (leave this blank to disable)
"pink", // Current Page Item Background Color (leave this blank to disable)
, // 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
"mainmenu1", // Menu Name - This is needed in order for the menu to be called
102, // Menu Top - The Top position of the menu in pixels
5, // Menu Left - The Left position of the menu in pixels
120, // 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)
"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)
, // 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
,"Compensation & Payroll","show-menu=compensation",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Workplace Policies","show-menu=workPlace",,"",1
,"Safety and Health","show-menu=safety",,"",1
,"Keyword Search","keywords.shtm",,"",1

])



addmenu(menu=["compensation",
"offset=-7",,200,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Compensation Practices","show-menu=compPracticesLinks",,,1
,"Work Schedules","show-menu=workSchedulesLinks",,,1
,"Special Event Compensation","show-menu=specEventLinks",,,1
,"Twelve-Hour Shift","show-menu=12HourLinks",,,1
,"Line Technician (before 4/1/99","show-menu=lineTechPreLinks",,,1
,"Line Technician (after 4/1/99","show-menu=lineTechAftLinks",,,1
,"Maintenance Technician Progression","show-menu=mainTechLinks",,,1
,"Senior Control Operator Progression","SSDSCOProgression.pdf",,,1
,"Expense Reimbursement","show-menu=expenseReimbLinks",,,1
,"Special Pay Program - CNS","show-menu=specialPayLinks",,,1
,"Performance & Development","performance_devel.shtm",,,1
])

addmenu(menu=["compPracticesLinks",
,,235,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Compensation Practices","comp_practices.asp#compensation",,,1
,"Position Classifications","comp_practices.asp#class",,,1
,"Payroll","comp_practices.asp#payroll",,,1
,"Pay Grade Zones","comp_practices.asp#paygrade",,,1
,"Base Pay","comp_practices.asp#basepay",,,1
,"Shift Differential","comp_practices.asp#shiftdiff",,,1
,"Overtime","comp_practices.asp#overtime",,,1
,"Additional Compensation for Exempt Employees","comp_practices.asp#additional",,,1
,"Occasional Time Off","comp_practices.asp#oto",,,1
])

addmenu(menu=["workSchedulesLinks",
,,125,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Work Schedules","work_schedules.asp#work",,,1
,"Alternate Work Schedules","work_schedules.asp#alternative",,,1
,"Flex Time","work_schedules.asp#flex-time",,,1
,"Telecommuting","work_schedules.asp#telecommuting",,,1
,"Job Sharing","work_schedules.asp#job_sharing",,,1
,"Compressed Workweek","work_schedules.asp#compressed",,,1
,"Regular Part-Time Work","work_schedules.asp#regular_part_time",,,1
,"Temporary Work","work_schedules.asp#temporary",,,1
,"Twelve-Hour Shift","work_schedules.asp#12-hour",,,1
])

addmenu(menu=["specEventLinks",
,,200,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Temporary Job Assignment","spec_event_com.shtm#temporary",,,1
,"Travel Time","spec_event_com.shtm#travel",,,1
,"Commuting Travel Time","spec_event_com.shtm#commuting",,,1
,"Travel Incentive Pay","spec_event_com.shtm#travelIncentive",,,1
,"Financial Stipend for Professional Certification","spec_event_com.shtm#stipend",,,1
,"Facility Closing","spec_event_com.shtm#facility_closing",,,1
])

addmenu(menu=["12HourLinks",
,,125,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Twelve-Hour Shift","12_hour.shtm#12_hour",,,1
,"Policy Work Week","12_hour.shtm#policy_work_week",,,1
,"Shift Hours","12_hour.shtm#shift_hours",,,1
,"Relief Workers","12_hour.shtm#relief_workers",,,1
,"Overtime","12_hour.shtm#overtime",,,1
,"Time Off Work","12_hour.shtm#time_off",,,1
,"Shift Differential","12_hour.shtm#shift_diff",,,1
])

addmenu(menu=["lineTechPreLinks",
,,250,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Eligibility","line_tech_pre.shtm#eligibility",,,1
,"Control Group","line_tech_pre.shtm#control",,,1
,"Eligibility for Apprentice Positions","line_tech_pre.shtm#apprentice",,,1
,"Program Outline for Inexperienced Personnel","line_tech_pre.shtm#inexperienced",,,1
,"Eligibility for Journey Line Technician","line_tech_pre.shtm#journeyline",,,1
,"Progression Schedule","line_tech_schedule_pre.shtm",,,1
,"Failure in Progression","line_tech_pre.shtm#failure",,,1
,"Program Outline for Experienced Personnel","line_tech_pre.shtm#experienced",,,1
,"Journey Line Technician Review Board","line_tech_pre.shtm#review",,,1
,"Guidelines for Conducting Journey Line Technician/Line Technician Review","line_tech_pre.shtm#technicianreview",,,1
])

addmenu(menu=["lineTechAftLinks",
,,250,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Eligibility","line_tech_aft.shtm#eligibility",,,1
,"Control Group","line_tech_aft.shtm#control",,,1
,"Eligibility for Apprentice Positions","line_tech_aft.shtm#apprentice",,,1
,"Program Outline for Inexperienced Personnel","line_tech_aft.shtm#inexperienced",,,1
,"Eligibility for Journey Line Technician","line_tech_aft.shtm#journeyline",,,1
,"Progression Schedule","line_tech_schedule_aft.shtm",,,1
,"Failure in Progression","line_tech_aft.shtm#failure",,,1
,"Program Outline for Experienced Personnel","line_tech_aft.shtm#experienced",,,1
,"Journey Line Technician Review Board","line_tech_aft.shtm#review",,,1
,"Guidelines for Conducting Journey Line Technician/Line Technician Review","line_tech_aft.shtm#technicianreview",,,1
])

addmenu(menu=["mainTechLinks",
,,200,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Progression Program for Technicians","main_tech.shtm#progression",,,1
,"Control Group","main_tech.shtm#control",,,1
,"Eligibility","main_tech.shtm#eligibility",,,1
,"Program Outline - Technician III","main_tech.shtm#outline",,,1
,"Experienced Applicants","main_tech.shtm#experienced",,,1
,"Promotion to Technician I","main_tech.shtm#techIprom",,,1
,"Failure to Progress","main_tech.shtm#failure",,,1
,"Review Guidelines","main_tech.shtm#guidelines",,,1
,"Progression Schedule","main_tech_schedule.shtm",,,1
])

addmenu(menu=["expenseReimbLinks",
,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Expense Reimbursement","expense_reimb.shtm#expense",,,1
,"Meal Expenses","expense_reimb.shtm#meal",,,1
,"Meal Allowances","expense_reimb.shtm#mealallow",,,1
,"Training Expenses","expense_reimb.shtm#training",,,1
,"Procurement Card","expense_reimb.shtm#procurement",,,1
,"Temporary Reassignment","expense_reimb.shtm#temporary",,,1
])

addmenu(menu=["specialPayLinks",
,,200,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Nuclear Power Group Bonus","special_pay.shtm#nuclear",,,1
,"Administration of Bonus Program","special_pay.shtm#administration",,,1
,"Bonus Removal","special_pay.shtm#removal",,,1
,"License Requalification Bonus","special_pay.shtm#requalification",,,1
,"Miscellaneous Pay Adjustments","special_pay.shtm#payadjust",,,1
])


addmenu(menu=["workPlace",
"offset=-7",,200,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Code of Ethics","ethics.shtm",,,1
,"Accountability and Disclosure","conflict_of_int.shtm",,,1
,"Employee Conduct","show-menu=empConductLinks",,,1
,"Fitness for Duty Policy","show-menu=fdpLinks",,,1
,"Awards and Celebrations","show-menu=awardsLinks",,,1
,"Employee Committee","emp_comm.shtm",,,1
,"Performance Development","performance_devel.shtm",,,1
,"Commercial Drivers License","show-menu=commDriversLinks",,,1
,"DOT Drug and Alcohol Testing","show-menu=DOTLinks",,,1
,"Community Involvement","show-menu=commInvolveLinks",,,1
])

addmenu(menu=["empConductLinks",
,,190,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Codes of Ethic","emp_conduct.asp#ethics",,,1
,"Distribution of Literature and Solicitation","emp_conduct.asp#distribution",,,1
,"Electronic Communications","emp_conduct.asp#electronic",,,1
,"Employee Contact with Public and Media","emp_conduct.asp#contact",,,1
,"Employment References","emp_conduct.asp#references",,,1
,"Harassment","emp_conduct.asp#harassment",,,1
,"Inventions and Patents","emp_conduct.asp#inventions",,,1
,"Personnel Information","emp_conduct.asp#personnel",,,1
,"Proprietary/Confidential Information","emp_conduct.asp#proprietary",,,1
,"Political Accountability","emp_conduct.asp#accountability",,,1
,"Public Records","emp_conduct.asp#publicrecords",,,1
,"Smoking","emp_conduct.asp#smoking",,,1
,"Threats on Telephone and Suspicious Items","emp_conduct.asp#threats",,,1
,"Use of the Corporate Logo","emp_conduct.asp#logo",,,1
,"Use of NPPD Property/Facilities","emp_conduct.asp#property",,,1
,"Workplace Violence","emp_conduct.asp#violence",,,1
])


addmenu(menu=["fdpLinks",
,,175,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Responsibilities","FFD_policy.shtm#responsibilities",,,1
,"Drug-Free Awareness Program","FFD_policy.shtm#drugfree",,,1
,"Employee Assistance Program","FFD_policy.shtm#EAP",,,1
,"Drug and Alcohol Testing Program","FFD_policy.shtm#testing",,,1
,"Drug and Alcohol Testing Appeal","FFD_policy.shtm#appeals",,,1
])

addmenu(menu=["awardsLinks",
,,175,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Alcoholic Beverages","meetings_social.asp#alcoholic",,,1
,"Spot Awards","meetings_social.asp#spot",,,1
,"Holiday Parties","meetings_social.asp#holiday",,,1
,"Retirement Parties and Receptions","meetings_social.asp#retirement",,,1
,"Service Awards","meetings_social.asp#service",,,1
])

addmenu(menu=["commDriversLinks",
,,175,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Licensing Requirements","comm_driver_lic.shtm#licensing",,,1
,"CDL Classes","comm_driver_lic.shtm#cdl",,,1
,"Endorsements and Restrictions","comm_driver_lic.shtm#endorsements",,,1
,"Administrative Considerations","comm_driver_lic.shtm#administrative",,,1
])

addmenu(menu=["DOTLinks",
,,190,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Types of Tests","DOT.asp#types",,,1
,"Prohibited Conduct Under DOT Regulations","DOT.asp#prohibited",,,1
,"Substance Abuse Evaluation/Treatment","DOT.asp#return",,,1
,"Authorization for Previous Test Records","DOT.asp#previous",,,1
,"Drug Urinalysis","DOT.asp#urinalysis",,,1
,"Alcohol Tests","DOT.asp#alcohol",,,1
])


addmenu(menu=["commInvolveLinks",
,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Public Office","comm_involvement.asp#public",,,1
,"Outside Organizations","comm_involvement.asp#organization",,,1
,"Public Emergency Team","comm_involvement.asp#publicemergteam",,,1
,"Toastmasters Club","comm_involvement.asp#toastmasters",,,1
,"Credit Union","comm_involvement.asp#cu",,,1
,"Reimbursement","comm_involvement.asp#reimbursement",,,1
])


addmenu(menu=["safety",
"offset=-7",,150,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Safety Index","safety_index.asp",,,1
,"Safety Policies","../safety/safetypolicies/safety_policies.shtm",,,1
,"Injury Prevention Program","http://cc/docs/SIP-01.pdf",,,1
,"Job Related Illness or Injury","job_injury.shtm",,,1
,"Safety & Health Web Page","../safety/index.shtm",,,1
])


addmenu(menu=["mainTechProgLinks",
,,185,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Progression Program for Technicians","main_tech.shtm#progressions",,,1
,"Control Group","main_tech.shtm#control",,,1
,"Eligibility","main_tech.shtm#eligibility",,,1
,"Program Outline - Technician III","main_tech.shtm#outline",,,1
,"Experienced Applicants","main_tech.shtm#experienced",,,1
,"Promotion to Technician I","main_tech.shtm#techIprom",,,1
,"Failure to Progress","main_tech.shtm#failure",,,1
,"Review Guidelines","main_tech.shtm#guidelines",,,1
,"Progression Schedule","main_tech_schedule.shtm",,,1
])


dumpmenus()


Poster: John
Dated: Friday April 4 2003 - 21:38:18 BST

At quick glance I really don't see anything pop out as a problem - except :| your array indicates a very old version of the menu. Is the menu script itself also old? Could be part of the problem.


Poster: Thrina Brezenski
Dated: Friday April 4 2003 - 21:40:57 BST

I just downloaded the menu file last week. How do I get an updated one?


Poster: John
Dated: Friday April 4 2003 - 21:49:28 BST

That's interesting. Current version is 3.5.14 which was posted 21 March. Did you get it from Andy's site? This new version indicates 'Version 3.x' at the top of the array, where yours shows a much older number.


Poster: Thrina Brezenski
Dated: Friday April 4 2003 - 21:52:32 BST

Here is the url where I got it

http://www.milonic.co.uk/menu/download.php?dlsampleid=1


Poster: John
Dated: Friday April 4 2003 - 21:54:07 BST

That's the right place. I just downloaded again and got the new array as mentioned. Is your menu 3.5.14?


Poster: Thrina Brezenski
Dated: Friday April 4 2003 - 21:58:26 BST

Mine says 3.5.13 - its dated 3/21/03 10:16 a.m.


Poster: John
Dated: Friday April 4 2003 - 22:27:22 BST

Very strange, given we both downloaded from the same place. However, it's the menu that's most important, not the array. I don't think the difference between .13 and .14 would help any.

As for your problem, it's going to be tough to help without actually seeing it perform. "Slow" is, of course, relative.


Poster: Thrina Brezenski
Dated: Friday April 4 2003 - 22:30:42 BST

I went and downloaded it again and this time it is .14. I'm going through the code line for line so I will let you know how it turns out. Thanks for your help. I really appreciate your help.


Poster: John
Dated: Saturday April 5 2003 - 22:17:39 BST

Sorry I couldn't have been more help to you. As mentioned, it's really tough when we can't see it in action.

Let us know what you find. It could help somebody else.