Issue with Multi menus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Vschultz
Beginner
Beginner
Posts: 2
Joined: Wed Apr 26, 2006 4:24 pm

Issue with Multi menus

Post by Vschultz »

I’m having an issue with trying to set up two menus… one that is horizontal and now a new one that will be displayed vertically, but only for specific pages on the site. I did a search and tried to weed out what I’m doing wrong but none of them seemed to answer my issue.

Header (include file)

<SCRIPT type="text/javascript" src="/Script/milonic_src.js"></SCRIPT>
<SCRIPT type="text/javascript">
<internal function code>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/Script/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/Script/mmenudom.js><\/scr"+"ipt>");
//-->
</SCRIPT>
<!--#include Virtual="/website/script/menu_data.js"-->
Horizontal Call
<SCRIPT>with(milonic=new menuname("Main Menu")){style=menuStyle;top=155;left=200;alwaysvisible=1;orientation="horizontal";overfilter="";position="relative";
aI("showmenu=About;image=/Elements/Menu/Menu_01.jpg");
}
drawMenus();</SCRIPT>

Horizontal menu_data.js
with(menuStyle=new mm_style()){
onbgcolor="#ffffff";
oncolor="#002D82";
.
.
with(milonic=new menuname("About")){
style=menuStyle;
aI("text=Title;url=Link.asp;");

----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------

Now, to add a left vertical menu to about a dozen pages I did the following:
Same include Header as above
<SCRIPT type="text/javascript" src="/Script/milonic_src.js"></SCRIPT>
<SCRIPT type="text/javascript">
<internal function code>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/Script/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/Script/mmenudom.js><\/scr"+"ipt>");
//-->
</SCRIPT>
<!--#include Virtual="/website/script/menu_data.js"-->
<!--#include Virtual="/website/China06/script/menu_data.js"--> <----- This is new
Vertical menu_data.js located in /China06/Script/menu_data.js
with(menuStyle2=new mm_style()){
onbgcolor="#ffffff";
.
.
with(milonic=new menuname("A")){
style=menuStyle2;
aI("text=title;url=Link.asp;");

Call on for the new menu
<script>
with(milonic=new menuname("Sem Menu")){
style=menuStyle2;
top=155;
left=200;
alwaysvisible=1;
orientation="vertical";
overfilter="";
position="relative";
aI("text=A Menu Samples;showmenu=A;");
}

drawMenus();
</script>

Thanks in advance!!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

So what is it that's going wrong? A URL, as requested, is much preferred.
John
Vschultz
Beginner
Beginner
Posts: 2
Joined: Wed Apr 26, 2006 4:24 pm

Post by Vschultz »

Sorry it has taken me so long to follow-up on the link request.

http://www.cscmp.org/China06/index.asp

Thanks in advance
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

the horizontal menu refers to its menuStyle by style=menuStyle;
the vertical menu refers to its menuStyle by style=menuStyle2;

BUT THERE IS NO menuStyle2 definition !!

So modify the name "menuStyle2" (vertical menu) into "menuStyle" or make a copy of the menuStyle dfinition in the script above and
copy it below it, and then modifying the copy into

with(menuStyle2=new mm_style()){

etc....
in order to have different styles setting, colors etc.

Something else: Both main menus are "relative"; positioned. This means, there is no need to specify top and left, as these positions are fixed by the table.

Michael
Post Reply