Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:39
menu works in Homepage but nowhere else.
Poster: faithadopt
Dated: Wednesday July 6 2005 - 19:47:40 BST
I went through as many posts and faqs as possible before bugging folks with this.
I am having some serious issues I am hoping someone may be able to assist with. I am a newbie, to be sure.
I have added a nice vertical menu to my secondary navigation bar on my homepage. I think it turned out perfect for our purposes and am very glad with the outcome.
http://www.faithadopt.org/
However, I cannot for the life of me get the menu on to any, and I mean ANY, of the other pages on the website. As an example, I placed the exact same script in for this page: http://www.faithadopt.org/home/penpal/ and it will not work. Every page I attach the same script, it fails with an error message. I have exhausted every effort I can come up with and still am hitting a brick wall.
Not sure if this is easily remedied- please excuse my nascent vocabulary when it comes to this stuff.
Any help is appreciated.
Best, Eric
Below is the text of the menu code I am using (all other files-mmenudom.js, milonic_src.js, etc- were left unchanged from their original state. Am now using version 5_728 as of today with no change in the problem):
Code:
_menuCloseDelay=1000;
_menuOpenDelay=150;
_subOffsetTop=5;
_subOffsetLeft=-5;
with(menuStyle=new mm_style()){
bordercolor="#fdca97";
borderstyle="ridge";
borderwidth=2;
offbordercolor="#fdca97";
onbordercolor="#996633";
fontfamily="Verdana, Arial, Helvatica";
fontsize="85%";
fontstyle="normal";
headerbgcolor="#996633";
headercolor="#000000";
offbgcolor="#996633";
offcolor="#fdca97";
onbgcolor="#fdca97";
oncolor="#996633";
ondecoration='underline';
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=10)";
padding=5;
pagebgcolor="#996633";
pagecolor="fdca97";
separatorcolor="#fdca97";
separatorsize=2;
subimage="db_red3.gif";
subimagealign="left";
subimagepadding=1;
position="relative";
followscroll=1;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=125;
style=menuStyle;
top=230;
itemwidth=20;
itemheight=30;
followscroll=1;
position="relative";
aI("status=Back To Home Page;text=Home;url=http://www.faithadopt.org;");
aI("showmenu=Programs;text=Programs;");
aI("showmenu=Adoption Steps;text=Adoption Steps;");
aI("showmenu=What's New;text=What's New;");
aI("showmenu=Photos;text=Photos;");
aI("showmenu=Relief Work;text=Relief Work;");
aI("showmenu=Faith Families;text=Faith Families;");
aI("showmenu=Resources;text=Resources;");
aI("status=Contact Us;text=Contact Us;url=http://www.faithadopt.org/home/contact;");
}
with(milonic=new menuname("Programs")){
style=menuStyle;
aI("showmenu=China;status=China;text=China;");
aI("showmenu=Vietnam;status=Vietnam;text=Vietnam;");
aI("showmenu=Nepal;status=Nepal;text=Nepal;");
aI("showmenu=Panama;status=Panama;text=Panama;");
}
with(milonic=new menuname("China")){
style=menuStyle;
aI("text=China Program;url=http://www.faithadopt.org/home/programs/china;");
aI("text=China Program FAQ;url=http://www.faithadopt.org/home/programs/china/faq/;");
aI("text=China Singles Info;url=http://www.faithadopt.org/home/programs/chinasingles/faq/;");
aI("showmenu=China Special Needs Program;status=China Special Needs Program;text=China Special Needs Program;");
aI("text=CCAA;url=http://www.faithadopt.org/home/ccaa;");
aI("text=China Pen Pal Program;url=http://www.faithadopt.org/home/penpal/;");
aI("text=Haddick Family Trip 2004;url=http://www.faithadopt.org/home/haddick/;");
}
with(milonic=new menuname("China Special Needs Program")){
style=menuStyle;
aI("text=China Special Needs FAQ;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/faq/;");
aI("text=China Special Needs Children;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/children;");
}
with(milonic=new menuname("Vietnam")){
style=menuStyle;
aI("text=Vietnam Program;url=http://www.faithadopt.org/home/programs/vietnam;");
aI("text=Vietnam Program FAQ;url=http://www.faithadopt.org/home/programs/vietnam/faq/;");
}
with(milonic=new menuname("Nepal")){
style=menuStyle;
aI("text=Nepal Program;url=http://www.faithadopt.org/home/programs/nepal;");
aI("text=Nepal Program FAQ;url=http://www.faithadopt.org/home/programs/nepal/faq/;");
aI("text=Nepal Child Sponsorship;url=http://www.faithadopt.org/home/programs/nepal/sponsor;");
}
with(milonic=new menuname("Panama")){
style=menuStyle;
aI("text=Panama Program;url=http://www.faithadopt.org/home/programs/panama;");
aI("text=Panama Program FAQ;url=http://www.faithadopt.org/home/programs/panama/faq/;");
}
with(milonic=new menuname("Adoption Steps")){
style=menuStyle;
aI("text=Adoption Steps;url=http://www.faithadopt.org/home/adoptionsteps/;");
aI("text=Adoption Forms;url=http://www.faithadopt.org/home/forms/;");
}
with(milonic=new menuname("What's New")){
style=menuStyle;
aI("text=What's New;url=http://www.faithadopt.org/home/whatsnew/;");
aI("text=What's New China;url=http://www.faithadopt.org/home/whatsnew/?f=china&nid=0&full=true;");
aI("text=What's New Vietnam;url=http://www.faithadopt.org/home/whatsnew/?f=vietnam&nid=0&full=true;");
aI("text=What's New Nepal;url=http://www.faithadopt.org/home/whatsnew/?f=nepal&nid=0&full=true;");
aI("text=What's New Panama;url=http://www.faithadopt.org/home/whatsnew/?f=panama&nid=0&full=true;");
}
with(milonic=new menuname("Photos")){
style=menuStyle;
aI("text=Photos page 1;url=http://www.faithadopt.org/home/photos1/;");
aI("text=Photos page 2;url=http://www.faithadopt.org/home/photos2/;");
aI("text=Photos page 3;url=http://www.faithadopt.org/home/photos3/;");
aI("text=Photos page 4;url=http://www.faithadopt.org/home/photos4/;");
aI("text=Photos page 5;url=http://www.faithadopt.org/home/photos5/;");
aI("text=Photos page 6;url=http://www.faithadopt.org/home/photos6/;");
aI("text=Photos page 7;url=http://www.faithadopt.org/home/photos7/;");
aI("text=Photos page 8;url=http://www.faithadopt.org/home/photos8/;");
aI("text=Photos page 9;url=http://www.faithadopt.org/home/photos9/;");
aI("text=Photos page 10;url=http://www.faithadopt.org/home/photos10/;");
}
with(milonic=new menuname("Relief Work")){
style=menuStyle;
aI("text=Relief Work page 1;url=http://www.faithadopt.org/home/relief;");
aI("text=Relief Work page 2;url=http://www.faithadopt.org/home/relief2;");
aI("showmenu=Sri Lanka orphan relief;status=Sri Lanka;text=Sri Lanka Relief Work;");
}
with(milonic=new menuname("Sri Lanka orphan relief")){
style=menuStyle;
aI("text=Overview;url=http://www.faithadopt.org/home/tsunami/;");
aI("text=Updates;url=http://www.faithadopt.org/home/tsunami/updates;");
aI("text=Photos;url=http://www.faithadopt.org/home/tsunami/photos;");
aI("text=Donors;url=http://www.faithadopt.org/home/tsunami/donors;");
aI("text=Relief projects;url=http://www.faithadopt.org/home/tsunami/relief;");
aI("text=Faith in the news;url=http://www.faithadopt.org/home/tsunami/news;");
}
with(milonic=new menuname("Faith Families")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Resources")){
overflow="scroll";
style=menuStyle;
aI("status=To Resource Page;text=Resource Page;url=http://www.faithadopt.org/home/resources;");
aI("showmenu=General;text=General;");
aI("showmenu=Books;text=Books;");
aI("showmenu=Book and Cultural Gift Catologs;text=Book and Cultural Gift Catologs;");
aI("showmenu=Magazines;text=Magazines;");
aI("showmenu=Organizations;text=Organizations;");
aI("showmenu=Advocacy and Intercountry Adoption Information;text=Advocacy and Intercountry Adoption Information;");
aI("showmenu=Government;text=Government;");
aI("showmenu=Puget Sound Area Resources;text=Puget Sound Area Resources;");
aI("showmenu=Chicago Area Resources;text=Chicago Area Resources;");
aI("showmenu=Faith Family Resources;text=Faith Family Resources Area Resources;");
}
with(milonic=new menuname("General")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Books")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Book and Cultural Gift Catalogs")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Magazines")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Organizations")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Advocacy and Intercountry Adoption Information")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Government")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Puget Sound Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Chicago Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Faith Family Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
drawMenus();
_menuOpenDelay=150;
_subOffsetTop=5;
_subOffsetLeft=-5;
with(menuStyle=new mm_style()){
bordercolor="#fdca97";
borderstyle="ridge";
borderwidth=2;
offbordercolor="#fdca97";
onbordercolor="#996633";
fontfamily="Verdana, Arial, Helvatica";
fontsize="85%";
fontstyle="normal";
headerbgcolor="#996633";
headercolor="#000000";
offbgcolor="#996633";
offcolor="#fdca97";
onbgcolor="#fdca97";
oncolor="#996633";
ondecoration='underline';
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=10)";
padding=5;
pagebgcolor="#996633";
pagecolor="fdca97";
separatorcolor="#fdca97";
separatorsize=2;
subimage="db_red3.gif";
subimagealign="left";
subimagepadding=1;
position="relative";
followscroll=1;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=125;
style=menuStyle;
top=230;
itemwidth=20;
itemheight=30;
followscroll=1;
position="relative";
aI("status=Back To Home Page;text=Home;url=http://www.faithadopt.org;");
aI("showmenu=Programs;text=Programs;");
aI("showmenu=Adoption Steps;text=Adoption Steps;");
aI("showmenu=What's New;text=What's New;");
aI("showmenu=Photos;text=Photos;");
aI("showmenu=Relief Work;text=Relief Work;");
aI("showmenu=Faith Families;text=Faith Families;");
aI("showmenu=Resources;text=Resources;");
aI("status=Contact Us;text=Contact Us;url=http://www.faithadopt.org/home/contact;");
}
with(milonic=new menuname("Programs")){
style=menuStyle;
aI("showmenu=China;status=China;text=China;");
aI("showmenu=Vietnam;status=Vietnam;text=Vietnam;");
aI("showmenu=Nepal;status=Nepal;text=Nepal;");
aI("showmenu=Panama;status=Panama;text=Panama;");
}
with(milonic=new menuname("China")){
style=menuStyle;
aI("text=China Program;url=http://www.faithadopt.org/home/programs/china;");
aI("text=China Program FAQ;url=http://www.faithadopt.org/home/programs/china/faq/;");
aI("text=China Singles Info;url=http://www.faithadopt.org/home/programs/chinasingles/faq/;");
aI("showmenu=China Special Needs Program;status=China Special Needs Program;text=China Special Needs Program;");
aI("text=CCAA;url=http://www.faithadopt.org/home/ccaa;");
aI("text=China Pen Pal Program;url=http://www.faithadopt.org/home/penpal/;");
aI("text=Haddick Family Trip 2004;url=http://www.faithadopt.org/home/haddick/;");
}
with(milonic=new menuname("China Special Needs Program")){
style=menuStyle;
aI("text=China Special Needs FAQ;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/faq/;");
aI("text=China Special Needs Children;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/children;");
}
with(milonic=new menuname("Vietnam")){
style=menuStyle;
aI("text=Vietnam Program;url=http://www.faithadopt.org/home/programs/vietnam;");
aI("text=Vietnam Program FAQ;url=http://www.faithadopt.org/home/programs/vietnam/faq/;");
}
with(milonic=new menuname("Nepal")){
style=menuStyle;
aI("text=Nepal Program;url=http://www.faithadopt.org/home/programs/nepal;");
aI("text=Nepal Program FAQ;url=http://www.faithadopt.org/home/programs/nepal/faq/;");
aI("text=Nepal Child Sponsorship;url=http://www.faithadopt.org/home/programs/nepal/sponsor;");
}
with(milonic=new menuname("Panama")){
style=menuStyle;
aI("text=Panama Program;url=http://www.faithadopt.org/home/programs/panama;");
aI("text=Panama Program FAQ;url=http://www.faithadopt.org/home/programs/panama/faq/;");
}
with(milonic=new menuname("Adoption Steps")){
style=menuStyle;
aI("text=Adoption Steps;url=http://www.faithadopt.org/home/adoptionsteps/;");
aI("text=Adoption Forms;url=http://www.faithadopt.org/home/forms/;");
}
with(milonic=new menuname("What's New")){
style=menuStyle;
aI("text=What's New;url=http://www.faithadopt.org/home/whatsnew/;");
aI("text=What's New China;url=http://www.faithadopt.org/home/whatsnew/?f=china&nid=0&full=true;");
aI("text=What's New Vietnam;url=http://www.faithadopt.org/home/whatsnew/?f=vietnam&nid=0&full=true;");
aI("text=What's New Nepal;url=http://www.faithadopt.org/home/whatsnew/?f=nepal&nid=0&full=true;");
aI("text=What's New Panama;url=http://www.faithadopt.org/home/whatsnew/?f=panama&nid=0&full=true;");
}
with(milonic=new menuname("Photos")){
style=menuStyle;
aI("text=Photos page 1;url=http://www.faithadopt.org/home/photos1/;");
aI("text=Photos page 2;url=http://www.faithadopt.org/home/photos2/;");
aI("text=Photos page 3;url=http://www.faithadopt.org/home/photos3/;");
aI("text=Photos page 4;url=http://www.faithadopt.org/home/photos4/;");
aI("text=Photos page 5;url=http://www.faithadopt.org/home/photos5/;");
aI("text=Photos page 6;url=http://www.faithadopt.org/home/photos6/;");
aI("text=Photos page 7;url=http://www.faithadopt.org/home/photos7/;");
aI("text=Photos page 8;url=http://www.faithadopt.org/home/photos8/;");
aI("text=Photos page 9;url=http://www.faithadopt.org/home/photos9/;");
aI("text=Photos page 10;url=http://www.faithadopt.org/home/photos10/;");
}
with(milonic=new menuname("Relief Work")){
style=menuStyle;
aI("text=Relief Work page 1;url=http://www.faithadopt.org/home/relief;");
aI("text=Relief Work page 2;url=http://www.faithadopt.org/home/relief2;");
aI("showmenu=Sri Lanka orphan relief;status=Sri Lanka;text=Sri Lanka Relief Work;");
}
with(milonic=new menuname("Sri Lanka orphan relief")){
style=menuStyle;
aI("text=Overview;url=http://www.faithadopt.org/home/tsunami/;");
aI("text=Updates;url=http://www.faithadopt.org/home/tsunami/updates;");
aI("text=Photos;url=http://www.faithadopt.org/home/tsunami/photos;");
aI("text=Donors;url=http://www.faithadopt.org/home/tsunami/donors;");
aI("text=Relief projects;url=http://www.faithadopt.org/home/tsunami/relief;");
aI("text=Faith in the news;url=http://www.faithadopt.org/home/tsunami/news;");
}
with(milonic=new menuname("Faith Families")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Resources")){
overflow="scroll";
style=menuStyle;
aI("status=To Resource Page;text=Resource Page;url=http://www.faithadopt.org/home/resources;");
aI("showmenu=General;text=General;");
aI("showmenu=Books;text=Books;");
aI("showmenu=Book and Cultural Gift Catologs;text=Book and Cultural Gift Catologs;");
aI("showmenu=Magazines;text=Magazines;");
aI("showmenu=Organizations;text=Organizations;");
aI("showmenu=Advocacy and Intercountry Adoption Information;text=Advocacy and Intercountry Adoption Information;");
aI("showmenu=Government;text=Government;");
aI("showmenu=Puget Sound Area Resources;text=Puget Sound Area Resources;");
aI("showmenu=Chicago Area Resources;text=Chicago Area Resources;");
aI("showmenu=Faith Family Resources;text=Faith Family Resources Area Resources;");
}
with(milonic=new menuname("General")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Books")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Book and Cultural Gift Catalogs")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Magazines")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Organizations")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Advocacy and Intercountry Adoption Information")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Government")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Puget Sound Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Chicago Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Faith Family Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
drawMenus();
Poster: slackbladder
Dated: Wednesday July 6 2005 - 20:09:29 BST
Hi Eric,
Try using absolute URLs instead:
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="menu_data_faith.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="menu_data_faith.js" type=text/javascript></SCRIPT>
Like this:
Code:
<SCRIPT language=JavaScript src="http://www.faithadopt.org/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.faithadopt.org/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.faithadopt.org/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="http://www.faithadopt.org/menu_data_faith.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.faithadopt.org/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.faithadopt.org/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="http://www.faithadopt.org/menu_data_faith.js" type=text/javascript></SCRIPT>
Or:
Code:
<SCRIPT language=JavaScript src="/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="/menu_data_faith.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="/menu_data_faith.js" type=text/javascript></SCRIPT>
menu is up- but now with new problem...
Poster: faithadopt
Dated: Wednesday July 6 2005 - 22:22:45 BST
Thanks much slackbladder. I appreciate your help very much. That is the first time I have been able to get the menu on any other page.
However, now a new problem exists. I am getting an error that "mm_style is undefined" for the menu. I checked two different posts on this and still cannot resolve.
Any help on this is appreciated.
Also, my arrow.gif is not showing up for menus outside of the home page. Might be pushing my luck with too many questions...
Here is the code in the navigation bar that I am using:
Code:
<p> </p>
<img src="/images/transparent.gif" width="56" height="8" />
<SCRIPT language=JavaScript src="http://www.faithadopt.org/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.faithadopt.org/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.faithadopt.org/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="http://www.faithadopt.org/menu_data_faith.js" type=text/javascript></SCRIPT>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<a href="http://www.milonic.com"><img src="/button.gif" width="70" height="20" border="0"></a></p>
Here is the code from the menu data.js
Code:
_menuCloseDelay=1000;
_menuOpenDelay=150;
_subOffsetTop=5;
_subOffsetLeft=-5;
with(menuStyle=new mm_style()){
bordercolor="#fdca97";
borderstyle="ridge";
borderwidth=2;
offbordercolor="#fdca97";
onbordercolor="#996633";
fontfamily="Verdana, Arial, Helvatica";
fontsize="85%";
fontstyle="normal";
headerbgcolor="#996633";
headercolor="#000000";
offbgcolor="#996633";
offcolor="#fdca97";
onbgcolor="#fdca97";
oncolor="#996633";
ondecoration='underline';
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=10)";
padding=5;
pagebgcolor="#996633";
pagecolor="fdca97";
separatorcolor="#fdca97";
separatorsize=2;
subimage="db_red3.gif";
subimagealign="left";
subimagepadding=1;
position="relative";
followscroll=1;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=125;
style=menuStyle;
top=230;
itemwidth=20;
itemheight=30;
followscroll=1;
position="relative";
aI("status=Back To Home Page;text=Home;url=http://www.faithadopt.org;");
aI("showmenu=Programs;text=Programs;");
aI("showmenu=Adoption Steps;text=Adoption Steps;");
aI("showmenu=What's New;text=What's New;");
aI("showmenu=Photos;text=Photos;");
aI("showmenu=Relief Work;text=Relief Work;");
aI("showmenu=Faith Families;text=Faith Families;");
aI("showmenu=Resources;text=Resources;");
aI("status=Contact Us;text=Contact Us;url=http://www.faithadopt.org/home/contact;");
}
with(milonic=new menuname("Programs")){
style=menuStyle;
aI("showmenu=China;status=China;text=China;");
aI("showmenu=Vietnam;status=Vietnam;text=Vietnam;");
aI("showmenu=Nepal;status=Nepal;text=Nepal;");
aI("showmenu=Panama;status=Panama;text=Panama;");
}
with(milonic=new menuname("China")){
style=menuStyle;
aI("text=China Program;url=http://www.faithadopt.org/home/programs/china;");
aI("text=China Program FAQ;url=http://www.faithadopt.org/home/programs/china/faq/;");
aI("text=China Singles Info;url=http://www.faithadopt.org/home/programs/chinasingles/faq/;");
aI("showmenu=China Special Needs Program;status=China Special Needs Program;text=China Special Needs Program;");
aI("text=CCAA;url=http://www.faithadopt.org/home/ccaa;");
aI("text=China Pen Pal Program;url=http://www.faithadopt.org/home/penpal/;");
aI("text=Haddick Family Trip 2004;url=http://www.faithadopt.org/home/haddick/;");
}
with(milonic=new menuname("China Special Needs Program")){
style=menuStyle;
aI("text=China Special Needs FAQ;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/faq/;");
aI("text=China Special Needs Children;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/children;");
}
with(milonic=new menuname("Vietnam")){
style=menuStyle;
aI("text=Vietnam Program;url=http://www.faithadopt.org/home/programs/vietnam;");
aI("text=Vietnam Program FAQ;url=http://www.faithadopt.org/home/programs/vietnam/faq/;");
}
with(milonic=new menuname("Nepal")){
style=menuStyle;
aI("text=Nepal Program;url=http://www.faithadopt.org/home/programs/nepal;");
aI("text=Nepal Program FAQ;url=http://www.faithadopt.org/home/programs/nepal/faq/;");
aI("text=Nepal Child Sponsorship;url=http://www.faithadopt.org/home/programs/nepal/sponsor;");
}
with(milonic=new menuname("Panama")){
style=menuStyle;
aI("text=Panama Program;url=http://www.faithadopt.org/home/programs/panama;");
aI("text=Panama Program FAQ;url=http://www.faithadopt.org/home/programs/panama/faq/;");
}
with(milonic=new menuname("Adoption Steps")){
style=menuStyle;
aI("text=Adoption Steps;url=http://www.faithadopt.org/home/adoptionsteps/;");
aI("text=Adoption Forms;url=http://www.faithadopt.org/home/forms/;");
}
with(milonic=new menuname("What's New")){
style=menuStyle;
aI("text=What's New;url=http://www.faithadopt.org/home/whatsnew/;");
aI("text=What's New China;url=http://www.faithadopt.org/home/whatsnew/?f=china&nid=0&full=true;");
aI("text=What's New Vietnam;url=http://www.faithadopt.org/home/whatsnew/?f=vietnam&nid=0&full=true;");
aI("text=What's New Nepal;url=http://www.faithadopt.org/home/whatsnew/?f=nepal&nid=0&full=true;");
aI("text=What's New Panama;url=http://www.faithadopt.org/home/whatsnew/?f=panama&nid=0&full=true;");
}
with(milonic=new menuname("Photos")){
style=menuStyle;
aI("text=Photos page 1;url=http://www.faithadopt.org/home/photos1/;");
aI("text=Photos page 2;url=http://www.faithadopt.org/home/photos2/;");
aI("text=Photos page 3;url=http://www.faithadopt.org/home/photos3/;");
aI("text=Photos page 4;url=http://www.faithadopt.org/home/photos4/;");
aI("text=Photos page 5;url=http://www.faithadopt.org/home/photos5/;");
aI("text=Photos page 6;url=http://www.faithadopt.org/home/photos6/;");
aI("text=Photos page 7;url=http://www.faithadopt.org/home/photos7/;");
aI("text=Photos page 8;url=http://www.faithadopt.org/home/photos8/;");
aI("text=Photos page 9;url=http://www.faithadopt.org/home/photos9/;");
aI("text=Photos page 10;url=http://www.faithadopt.org/home/photos10/;");
}
with(milonic=new menuname("Relief Work")){
style=menuStyle;
aI("text=Relief Work page 1;url=http://www.faithadopt.org/home/relief;");
aI("text=Relief Work page 2;url=http://www.faithadopt.org/home/relief2;");
aI("showmenu=Sri Lanka orphan relief;status=Sri Lanka;text=Sri Lanka Relief Work;");
}
with(milonic=new menuname("Sri Lanka orphan relief")){
style=menuStyle;
aI("text=Overview;url=http://www.faithadopt.org/home/tsunami/;");
aI("text=Updates;url=http://www.faithadopt.org/home/tsunami/updates;");
aI("text=Photos;url=http://www.faithadopt.org/home/tsunami/photos;");
aI("text=Donors;url=http://www.faithadopt.org/home/tsunami/donors;");
aI("text=Relief projects;url=http://www.faithadopt.org/home/tsunami/relief;");
aI("text=Faith in the news;url=http://www.faithadopt.org/home/tsunami/news;");
}
with(milonic=new menuname("Faith Families")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Resources")){
overflow="scroll";
style=menuStyle;
aI("status=To Resource Page;text=Resource Page;url=http://www.faithadopt.org/home/resources;");
aI("showmenu=General;text=General;");
aI("showmenu=Books;text=Books;");
aI("showmenu=Book and Cultural Gift Catologs;text=Book and Cultural Gift Catologs;");
aI("showmenu=Magazines;text=Magazines;");
aI("showmenu=Organizations;text=Organizations;");
aI("showmenu=Advocacy and Intercountry Adoption Information;text=Advocacy and Intercountry Adoption Information;");
aI("showmenu=Government;text=Government;");
aI("showmenu=Puget Sound Area Resources;text=Puget Sound Area Resources;");
aI("showmenu=Chicago Area Resources;text=Chicago Area Resources;");
aI("showmenu=Faith Family Resources;text=Faith Family Resources Area Resources;");
}
with(milonic=new menuname("General")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Books")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Book and Cultural Gift Catalogs")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Magazines")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Organizations")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Advocacy and Intercountry Adoption Information")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Government")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Puget Sound Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Chicago Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Faith Family Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
drawMenus();
_menuOpenDelay=150;
_subOffsetTop=5;
_subOffsetLeft=-5;
with(menuStyle=new mm_style()){
bordercolor="#fdca97";
borderstyle="ridge";
borderwidth=2;
offbordercolor="#fdca97";
onbordercolor="#996633";
fontfamily="Verdana, Arial, Helvatica";
fontsize="85%";
fontstyle="normal";
headerbgcolor="#996633";
headercolor="#000000";
offbgcolor="#996633";
offcolor="#fdca97";
onbgcolor="#fdca97";
oncolor="#996633";
ondecoration='underline';
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=10)";
padding=5;
pagebgcolor="#996633";
pagecolor="fdca97";
separatorcolor="#fdca97";
separatorsize=2;
subimage="db_red3.gif";
subimagealign="left";
subimagepadding=1;
position="relative";
followscroll=1;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=125;
style=menuStyle;
top=230;
itemwidth=20;
itemheight=30;
followscroll=1;
position="relative";
aI("status=Back To Home Page;text=Home;url=http://www.faithadopt.org;");
aI("showmenu=Programs;text=Programs;");
aI("showmenu=Adoption Steps;text=Adoption Steps;");
aI("showmenu=What's New;text=What's New;");
aI("showmenu=Photos;text=Photos;");
aI("showmenu=Relief Work;text=Relief Work;");
aI("showmenu=Faith Families;text=Faith Families;");
aI("showmenu=Resources;text=Resources;");
aI("status=Contact Us;text=Contact Us;url=http://www.faithadopt.org/home/contact;");
}
with(milonic=new menuname("Programs")){
style=menuStyle;
aI("showmenu=China;status=China;text=China;");
aI("showmenu=Vietnam;status=Vietnam;text=Vietnam;");
aI("showmenu=Nepal;status=Nepal;text=Nepal;");
aI("showmenu=Panama;status=Panama;text=Panama;");
}
with(milonic=new menuname("China")){
style=menuStyle;
aI("text=China Program;url=http://www.faithadopt.org/home/programs/china;");
aI("text=China Program FAQ;url=http://www.faithadopt.org/home/programs/china/faq/;");
aI("text=China Singles Info;url=http://www.faithadopt.org/home/programs/chinasingles/faq/;");
aI("showmenu=China Special Needs Program;status=China Special Needs Program;text=China Special Needs Program;");
aI("text=CCAA;url=http://www.faithadopt.org/home/ccaa;");
aI("text=China Pen Pal Program;url=http://www.faithadopt.org/home/penpal/;");
aI("text=Haddick Family Trip 2004;url=http://www.faithadopt.org/home/haddick/;");
}
with(milonic=new menuname("China Special Needs Program")){
style=menuStyle;
aI("text=China Special Needs FAQ;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/faq/;");
aI("text=China Special Needs Children;url=http://www.faithadopt.org/home/programs/chinaspecialneeds/children;");
}
with(milonic=new menuname("Vietnam")){
style=menuStyle;
aI("text=Vietnam Program;url=http://www.faithadopt.org/home/programs/vietnam;");
aI("text=Vietnam Program FAQ;url=http://www.faithadopt.org/home/programs/vietnam/faq/;");
}
with(milonic=new menuname("Nepal")){
style=menuStyle;
aI("text=Nepal Program;url=http://www.faithadopt.org/home/programs/nepal;");
aI("text=Nepal Program FAQ;url=http://www.faithadopt.org/home/programs/nepal/faq/;");
aI("text=Nepal Child Sponsorship;url=http://www.faithadopt.org/home/programs/nepal/sponsor;");
}
with(milonic=new menuname("Panama")){
style=menuStyle;
aI("text=Panama Program;url=http://www.faithadopt.org/home/programs/panama;");
aI("text=Panama Program FAQ;url=http://www.faithadopt.org/home/programs/panama/faq/;");
}
with(milonic=new menuname("Adoption Steps")){
style=menuStyle;
aI("text=Adoption Steps;url=http://www.faithadopt.org/home/adoptionsteps/;");
aI("text=Adoption Forms;url=http://www.faithadopt.org/home/forms/;");
}
with(milonic=new menuname("What's New")){
style=menuStyle;
aI("text=What's New;url=http://www.faithadopt.org/home/whatsnew/;");
aI("text=What's New China;url=http://www.faithadopt.org/home/whatsnew/?f=china&nid=0&full=true;");
aI("text=What's New Vietnam;url=http://www.faithadopt.org/home/whatsnew/?f=vietnam&nid=0&full=true;");
aI("text=What's New Nepal;url=http://www.faithadopt.org/home/whatsnew/?f=nepal&nid=0&full=true;");
aI("text=What's New Panama;url=http://www.faithadopt.org/home/whatsnew/?f=panama&nid=0&full=true;");
}
with(milonic=new menuname("Photos")){
style=menuStyle;
aI("text=Photos page 1;url=http://www.faithadopt.org/home/photos1/;");
aI("text=Photos page 2;url=http://www.faithadopt.org/home/photos2/;");
aI("text=Photos page 3;url=http://www.faithadopt.org/home/photos3/;");
aI("text=Photos page 4;url=http://www.faithadopt.org/home/photos4/;");
aI("text=Photos page 5;url=http://www.faithadopt.org/home/photos5/;");
aI("text=Photos page 6;url=http://www.faithadopt.org/home/photos6/;");
aI("text=Photos page 7;url=http://www.faithadopt.org/home/photos7/;");
aI("text=Photos page 8;url=http://www.faithadopt.org/home/photos8/;");
aI("text=Photos page 9;url=http://www.faithadopt.org/home/photos9/;");
aI("text=Photos page 10;url=http://www.faithadopt.org/home/photos10/;");
}
with(milonic=new menuname("Relief Work")){
style=menuStyle;
aI("text=Relief Work page 1;url=http://www.faithadopt.org/home/relief;");
aI("text=Relief Work page 2;url=http://www.faithadopt.org/home/relief2;");
aI("showmenu=Sri Lanka orphan relief;status=Sri Lanka;text=Sri Lanka Relief Work;");
}
with(milonic=new menuname("Sri Lanka orphan relief")){
style=menuStyle;
aI("text=Overview;url=http://www.faithadopt.org/home/tsunami/;");
aI("text=Updates;url=http://www.faithadopt.org/home/tsunami/updates;");
aI("text=Photos;url=http://www.faithadopt.org/home/tsunami/photos;");
aI("text=Donors;url=http://www.faithadopt.org/home/tsunami/donors;");
aI("text=Relief projects;url=http://www.faithadopt.org/home/tsunami/relief;");
aI("text=Faith in the news;url=http://www.faithadopt.org/home/tsunami/news;");
}
with(milonic=new menuname("Faith Families")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Resources")){
overflow="scroll";
style=menuStyle;
aI("status=To Resource Page;text=Resource Page;url=http://www.faithadopt.org/home/resources;");
aI("showmenu=General;text=General;");
aI("showmenu=Books;text=Books;");
aI("showmenu=Book and Cultural Gift Catologs;text=Book and Cultural Gift Catologs;");
aI("showmenu=Magazines;text=Magazines;");
aI("showmenu=Organizations;text=Organizations;");
aI("showmenu=Advocacy and Intercountry Adoption Information;text=Advocacy and Intercountry Adoption Information;");
aI("showmenu=Government;text=Government;");
aI("showmenu=Puget Sound Area Resources;text=Puget Sound Area Resources;");
aI("showmenu=Chicago Area Resources;text=Chicago Area Resources;");
aI("showmenu=Faith Family Resources;text=Faith Family Resources Area Resources;");
}
with(milonic=new menuname("General")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Books")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Book and Cultural Gift Catalogs")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Magazines")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Organizations")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Advocacy and Intercountry Adoption Information")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Government")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Puget Sound Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Chicago Area Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
with(milonic=new menuname("Faith Family Resources")){
style=menuStyle;
aI("text=Faith Families;url=http://www.faithadopt.org/home/families;");
aI("text=Testimonials;url=http://www.faithadopt.org/home/testimonials;");
}
drawMenus();
Poster: slackbladder
Dated: Wednesday July 6 2005 - 23:21:45 BST
Hi Eric,
In menu_data_faith.js
Change:
Code:
subimage="db_red3.gif";
to:
Code:
subimage="/db_red3.gif";
or:
Code:
subimage="http://www.faithadopt.org/db_red3.gif";
Find:
pagecolor="fdca97";
replace with:
pagecolor="#fdca97";
If the above doesn't fix the 'mm_style is undefined' error - review the code looking for any 'typos' - missing ; # , etc
error still there but almost fixed... THANKS!
Poster: faithadopt
Dated: Wednesday July 6 2005 - 23:29:22 BST
Hi Slackbladder,
It still has the error message- but at least the page is usable now with your fixes until I can figure it out.
I want to thank you very much for taking time out to assist me. I am sure it was a simple find, but it was nice to know there are folks out there taking time to help us newbies out.
Much appreciated.
Best, Eric