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: Wednesday July 18 2012 - 06:07:39
Are two distinct menu_array.js files possible?
Poster: pat __at__ dracoblu.com
Dated: Thursday May 16 2002 - 4:37:32 BST
Are two different menu_array.js files possible? I am trying to accomplish this for separate parts of a web site I wish to distinguish with different information, but I can't get the second menu to appear....
I have remove the following lines from my second menu_array.js file, as I believe it can only appear 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)}
I have also named the second menu_array.js file differently and ensured the HTML is correctly calling the appropriate js file.
Any help would be greatly appreciated......Thanks, Pat.
PS - Below is the code I am working with in the second menu_array.js
////////////////////////////////////
// Editable properties START here //
////////////////////////////////////
timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=20 // Follow Scrolling Rate
suboffset_top=6; // Sub menu offset Top position
suboffset_left=12; // Sub menu offset Left position
// 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 = "gradientwipe(size=1.00, wipestyle=0, motion=Forward, duration=0.7)"
}
else
{
effect = "gradientwipe(size=1.00, wipestyle=0, motion=Forward, duration=0.7)" // Stop IE5.5 bug when using more than one filter
}
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.
"443f5c", // Mouse Off Font Color
"ffffcc", // Mouse Off Background Color
"ffffcc", // Mouse On Font Color
"443f5C", // Mouse On Background Color
"999999", // Menu Border Color
11, // Font Size
"normal", // Font Style
"normal", // Font Weight
"Verdana,Arial,Serif", // Font Name
3, // Menu Item Padding
"images/arrow.gif", // Sub Menu Image (Leave this blank if not needed)
0, // 3D Border
Re: Are two distinct menu_array.js files possible?
Poster: John
Dated: Thursday May 16 2002 - 15:31:14 BST
Pat -
Are you using the new 3.4.03 menu? No idea at all if this makes any difference, but I don't think your arrays file you show above is the 3.4 version.
John
Re: Are two distinct menu_array.js files possible?
Poster: John
Dated: Thursday May 16 2002 - 21:36:52 BST
Pat -
Here's Andy's call for his 2 menu page...
<SCRIPT language=JavaScript src="/menu/sidemenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/menu/mmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/menu/mmenu.js" type=text/javascript></SCRIPT>
Also, I see 3.4.04 is out now.
John
Re: Are two distinct menu_array.js files possible?
Poster: pat __at__ dracoblu.com
Dated: Thursday May 16 2002 - 23:01:00 BST
Thanks John. I have not been updating the menu_array with each version change, however, I have now....
I still can't get the second menu to appear. I did take a look at the Milonic home page to see the two menus in action, but I can't figure out what I have done wrong. I have played with the menu and been able to get two menus to appear on one page, but I can't get the two menus to appear on separate pages. It's part of a separate project I am developing within our main site.....I'll keep pluggin' away, but if you come up with anything brilliant let me know
Pat