Are two distinct menu_array.js files possible?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

Are two distinct menu_array.js files possible?

Post by pat@dracoblu.com »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Are two distinct menu_array.js files possible?

Post by John »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Are two distinct menu_array.js files possible?

Post by John »

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
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

Re: Are two distinct menu_array.js files possible?

Post by pat@dracoblu.com »

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
Post Reply