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:24
Menu Crashed - Website down! Please help!
Poster: nwind
Dated: Tuesday July 22 2003 - 18:57:43 BST
I had my menu working fine inspite of my general incompetence with scripts. I tried to add a menu item and the script crashed, I cannot get it back and my companies website is now crippled. The backup won't work either. All I did was modify the menu_array.js, nothing on the webpage itself. Here is the script as modified:
/*
Milonic DHTML Website Navigation Menu
Written by Andy Woolley - Copyright 2003 (c) Milonic Solutions Limited. All Rights Reserved
Please visit http://www.milonic.co.uk/ for more information
Although this software may have been freely downloaded, you must obtain a license before using it in any production environment
The free use of this menu is only available to Non-Profit, Educational & Personal Web Sites who have obtained a license to use
Free, Commercial and Corporate Licenses are available from our website at http://www.milonic.co.uk/menu/supportcontracts.php
You also need to include a link back to http://www.milonic.co.uk/ if you use the free license
All Copyright notices MUST remain in place at ALL times
If you cannot comply with all of the above requirements, please contact us to arrange a license waiver
*/
//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="<scr"+"ipt language=JavaScript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="\/scr"+"ipt>";_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=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
PlainStyle=[ // PlainStyle is an array of properties. You can have as many property arrays as you need
"navy", // Mouse Off Font Color
"ccccff", // Mouse Off Background Color (use zero for transparent in Netscape 6)
"ffebdc", // Mouse On Font Color
"4b0082", // Mouse On Background Color
"000099", // Menu Border Color
"12", // Font Size (default is px but you can specify mm, pt or a percentage)
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"verdana,helvetica", // Font Name
4, // Menu Item Padding or spacing
"arrow.gif", // Sub Menu Image (Leave this blank if not needed)
0, // 3D Border & Separator bar
"ffff00", // 3D High Color
"ccffff", // 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)
, // Menu Item Separator Color
]
addmenu(menu=[
"Mainmenu", // Menu Name - This is needed in order for this menu to be called
150, // Menu Top - The Top position of this menu in pixels
175, // Menu Left - The Left position of this 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"
PlainStyle, // 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
,"Home","http://www.povn.com",,,1
,"Services","show-menu=Services","#",,1
,"Business Directory","http://www.povn.com/business.htm",,,1
,"Classifieds","http://www.povn.com/classifieds/cgi-bin/dcads/dcads.cgi","#",,1
,"Community Calendar","http://www.povn.com/calendar/calendar.cgi","#",,1
,"Email","show-menu=Email","#",,1
,"Support","show-menu=Support","#",,1
,"Our Customers","show-menu=Customers","#",,1
,"Links","show-menu=Links","#",,1
])
addmenu(menu=[
"Services",
,
,
160,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Advertising","http://www.povn.com/POVNservices/advertising.htm",,,0
,"DSL Services","show-menu=dsl","Local Users",,0
,"Dial-Up","http://www.povn.com/POVNservices/dialup.htm",,,0
,"Web Hosting","http://www.povn.com/POVNservices/webhosting.htm",,,0
,"Miscellaneous","http://www.povn.com/POVNservices/miscellaneous.htm",,,0
])
addmenu(menu=[
"Links",
,
,
180,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Business/Financial","http://www.povn.com/links/business.html",,,0
,"Entertainment","http://www.povn.com/links/entertainment.html",,,0
,"Geneology","http://www.povn.com/links/geneology.html",,,0
,"Community","show-menu=community","Local Users",,0
,"Business/Financial","http://www.povn.com/links/business.html",,,0
,"Entertainment","http://www.povn.com/links/entertainment.html",,,0
,"Geneology","http://www.povn.com/links/geneology.html",,,0
,"Government","show-menu=government","Government",,0
,"Informational","http://www.povn.com/links/informational.html",,,0
,"Software","http://www.povn.com/links/software.html",,,0
,"Sports","http://www.povn.com/links/sports.html",,,0
,"Travel","http://www.povn.com/links/travel.html",,,0
,"Web Designer's Links","http://www.povn.com/links/web.html",,,0
])
addmenu(menu=[
"Support",
,
,
170,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Connection Problems?","http://www.povn.com/connection.htm",,,0
,"Frequently Asked Questions","http://www.povn.com/support.htm",,,0
,"Creating Your Own Website","http://www.povn.com/htmlguide.html",,,0
,"Free POP-UP Stopper","http://www.povn.com/popupstopper.html",,,0
,"Put Pictures on eBay","http://www.povn.com/ftp.htm",,,0
])
addmenu(menu=[
"Customers",
,
,
180,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,
,"Community","show-menu=community","Customer Websites",,0
,"Recipes","http://www.povn.com/POVNRecipes/recipes.htm",,,0
])
addmenu(menu=[
"Email",
,
,
140,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Bonnersferry.net","http://69.41.131.8:8383",,,0
,"CDAOnline.com","http://69.41.131.9:8383",,,0
,"CDAOnline.net","http://69.41.131.10:8383",,,0
,"Icce.com","http://69.41.131.11:8383",,,0
,"Netw.com","http://69.41.131.12:8383",,,0
,"Norlight.org","http://69.41.131.13:8383",,,0
,"Orofinonet.com","http://69.41.131.15:8383",,,0
,"POVN.com","http://69.41.131.18:8383",,,0
,"POVN.net","http://69.41.130.20:8383",,,0
,"Priestriver.com","http://69.41.131.14:8383",,,0
,"Sandpoint.net","http://69.41.131.7:8383",,,0
,"Postini Spam Center","http://login.postini.com",,,0
])
addmenu(menu=[
"community",
,
,
120,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Non-Profit Pages","http://www.povn.com/links/nonprofit.htm",,,0
,"POVN Users","http://www.povn.com/links/userspage.htm",,,0
])
addmenu(menu=[
"dsl",
,
,
120,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"What is DSL?","http://www.povn.com/POVNservices/overview.htm",,,0
,"Services/Prices","http://www.povn.com/POVNservices/dsl.htm",,,0
,"Installation Info","http://www.povn.com/POVNservices/installation.htm",,,0
])
addmenu(menu=[
"Government",
,
,
120,
1,
,
PlainStyle,
0,
,
"Fade(duration=0.5);Alpha(style=0,opacity=88);Shadow(color=777777, Direction=135, Strength=5)",
0,
0,
0,
,
,
0,
0,
,
,
0,
,
,"Federal Government","http://www.povn.com/links/government.html",,,0
,"Idaho State & Local","http://www.povn.com/links/idaho.html",,,0
,"Washington State & Local","http://www.povn.com/links/washington.html",,,0
])
dumpmenus();
Help will be GREATLY appreciated!
Pat
Poster: Ruth
Dated: Wednesday July 23 2003 - 22:57:20 BST
What exactly did you modify, the place with the smilies?
Ruth
Poster: Ruth
Dated: Thursday July 24 2003 - 0:56:35 BST
I messed around with this....pretty hard to see the menu when I did get it up given it has a black background and purple words, however, in the code i did this with this line
0, // Right To Left - Used in Hebrew for example. (1=on or 0=off)
I got rid of the zero and just left it blank
then in the section called addmenu......customers the link ,
"Community","show-menu=community","Customer Websites",,0
has a , missing it should end in ,,,0
Ruth