Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:22

Problems with converting to Version 5


Poster: draconis
Dated: Wednesday June 30 2004 - 2:31:38 BST

My version 3 menus were working correctly in 3 different browsers I believe, but not in a fourth, Opera 7. So, I have just upgraded from V3 to V5.0. Unfortunately on the seven pages I am using the code it is not consistent. The mainmenu has 3 columns, the first item appears in the secondary colour permanently as does one of the submenu items.

Also unlike version three the menu image is not a solely submenuimage but appears on the mainmenu items as well. Is there an option that will turn it off on the mainmenu? :?: :oops:

As the test scripts are on my computer not our ISP's, I can't show them except by mailing the appropriate files. Here is the working web-site.

http://www.christchurchbellscorners.ca/

Draconis


Poster: Ruth
Dated: Wednesday June 30 2004 - 2:54:56 BST

If you can post a test page that would be a help. Alternatively, if that's not possible then post the menu_data.js code here so that we can see it and see if there is a problem. Click on the code button above, paste the data here, then click the code button to close it.

Ruth


Poster: John
Dated: Wednesday June 30 2004 - 4:46:37 BST

Exactly what version of v5 are you using?

Make sure the 'Disable BBCode...' box is not checked when you post the code as Ruth instructed.

Code for data file


Poster: draconis
Dated: Wednesday June 30 2004 - 14:24:43 BST

Ruth wrote:
If you can post a test page that would be a help. Alternatively, if that's not possible then post the menu_data.js code here so that we can see it and see if there is a problem. Click on the code button above, paste the data here, then click the code button to close it.

Ruth
Code:
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect="Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
effect="Shadow(color='#777777', Direction=135, Strength=5)"
}
<!-- addmenu(menu) -->

_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=10;
_subOffsetLeft=1;


with(style1=new mm_style()){
offcolor="#FFFFFF";
offbgcolor="#800000";
oncolor="#000066";
onbgcolor="#CCCCCC";
bordercolor="#CCCCCC";
borderstyle="solid";
borderwidth=1;
fontsize=14;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=3;
subimage="SubMenuImage.gif";
high3dcolor="#66ffff";
low3dcolor="#000099";
pagecolor="#000066";
pagebgcolor="#CCCCCC";
headercolor="#ffffff";
headerbgcolor="#000099";
}

with(milonic=new menuname("mainmenu")){
itemwidth=215;
screenposition="center";
style=style1;
alwaysvisible=1;
alignment="center";
orientation="horizontal";
aI("text=<center>Nurturing the Faith</center>;showmenu=NTF;;status=Nurturing the Faith;separatorsize=1")
aI("text=<center>Serving the World</center>;showmenu=STW;;status=Serving the World;separatorsize=1")
aI("text=<center>Stewardship -</center><br><center>Making Ministry Possible</center>;showmenu=MMP;;status=Stewardship - Making Ministry Possible;separatorsize=1")
}

with(milonic=new menuname("NTF")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Worship;showmenu=worship;;status=Services;separatorsize=1")
aI("text=Evangelism;showmenu=evangelism;;status=Christ Church in the Community;separatorsize=1")
aI("text=Membership Development;url=http://www.christchurchbellscorners.ca;")
aI("text=Pastoral Care;url=http://www.christchurchbellscorners.ca;")
aI("text=Adult Christian Education;url=http://www.christchurchbellscorners.ca;")
aI("text=Church School for Children;showmenu=churchschool;;status=Church School for Children;separatorsize=1")
aI("text=Youth Programme;url=http://www.christchurchbellscorners.ca;")
aI("text=Seniors Programme;url=http://www.christchurchbellscorners.ca;")
aI("text=Christian Community;showmenu=choirs;;status=Christian Community;separatorsize=1")
}

with(milonic=new menuname("worship")){
itemwidth=160;
style=style1;
alignment="center";
<!-- aI("text=The 08:00 Sunday Services for Sunday, July 4, 2004;url=ccbcthisweek8am.html;;separatorsize=-->") -->
<!-- aI("text=The 10:00 Sunday Services for Sunday, July 4, 2004;url=ccbcthisweek10am.html;;separatorsize=-->") -->
aI("text=Readings and Commentaries for Proper 9(14); July 4, Proper 10(15); July 11, Proper 11(16); July 18, Proper 12(17); July 25, 2004.;url=ccbcread.html;")
}

with(milonic=new menuname("evangelism")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Christ Church in the Community;url=ccbc4.html;")
aI("text=Prayers for the Community;url=ccbc5.html;")
}

with(milonic=new menuname("Adult Christian Education for Advent")){
<!-- top=; -->
itemwidth=160;
style=style1;
alignment="center";
aI("text=Adult Christian Education for Advent;url=adulteducation.html;;separatorsize=-->")
}

with(milonic=new menuname("churchschool")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Sunday School Programme;url=ccbc8.html;")
aI("text=Children and Christ Church;url=childrenatccbc.htm;")
}

with(milonic=new menuname("choirs")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Senior, Intermediate & Junior Choirs;url=hymnsing.html;")
}

with(milonic=new menuname("STW")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Social Services;url=http://www.christchurchbellscorners.ca;")
aI("text=Community Consultations;url=http://www.christchurchbellscorners.ca;")
aI("text=Demographics;url=http://www.christchurchbellscorners.ca;")
aI("text=Partnerships;showmenu=Mission & Outreach;;status=Mission & Outreach;separatorsize=1")
aI("text=Support Funding;url=http://www.christchurchbellscorners.ca;")
aI("text=Shared Resources;url=http://www.christchurchbellscorners.ca;")
aI("text=Communications;showmenu=Parish Council Manual;;status=Parish Council Manual;separatorsize=1")
aI("text=Local, Regional, National;showmenu=LRNLinks;;status=Local, Regional, National;separatorsize=1")
aI("text=International;url=http://www.christchurchbellscorners.ca;")
}

with(milonic=new menuname("Mission & Outreach")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Mission & Outreach Committee;url=missionoutreach.html;")
}

with(milonic=new menuname("Parish Council Manual")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Parish Council Manual;url=CCBCParishCouncilManual/default.htm;")
}

with(milonic=new menuname("LRNLinks")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Links to sites of Interest;url=ccbc7.html;")
}

with(milonic=new menuname("MMP")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=A vision for Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Goals in Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Planning for Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Training for Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Staffing;showmenu=staffing;;status=Staffing;separatorsize=1")
aI("text=Volunteer Management;url=http://www.christchurchbellscorners.ca;")
aI("text=Financial Stewardship;url=http://www.christchurchbellscorners.ca;")
aI("text=Communications;showmenu=communications;;status=Communications;separatorsize=1")
aI("text=Fundraising;showmenu=fundraising;;status=Fundraising;separatorsize=1")
aI("text=Facilities Management;url=http://www.christchurchbellscorners.ca;")
aI("text=Budgeting;url=http://www.christchurchbellscorners.ca;")
aI("text=Financial Reporting;url=http://www.christchurchbellscorners.ca;")
aI("text=Evaluating Ministry;url=http://www.christchurchbellscorners.ca;")
}

with(milonic=new menuname("staffing")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=People in Christ Church Parish;url=ccbc22.html;")
}

with(milonic=new menuname("Financial Stewardship")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Stewardship 2003;url=stewardship2003.html;")
}

with(milonic=new menuname("communications")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=History of the Parish;url=ccbchist.html;")
aI("text=Images of the Parish;url=ccbcimage7.html;;separatorsize=-->")
<!-- aI("text=Bazaar 2003;url=bazaar2003/page1.htm;;separatorsize=-->")
aI("text=The Diocesan Centennial;url=ccbc6.html;")
aI("text=CCBC News - May 2004;url=ccbc_news.html;")
aI("text=Lychgate - May 2004;url=lychgate.html;")
}

with(milonic=new menuname("fundraising")){
itemwidth=160;
style=style1;
alignment="center";
aI("text=Our Parish Cooks;url=ccbccooks.html;")
}



drawMenus();

Version


Poster: draconis
Dated: Wednesday June 30 2004 - 14:27:11 BST

V 5.22

Re: Version


Poster: John
Dated: Wednesday June 30 2004 - 14:56:17 BST

draconis wrote:
V 5.22

5.3 is current, and there have been numerous changes/fixes. Please update, let us know when that's complete, and we'll take another look (if needed!). :)

Some points to consider...

1. effect= is no longer used. New is...
Code:
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";

See the _data file included in the download.

2. Some syntax corrections. You have...
Code:
aI("text=Christian Community;showmenu=choirs;;status=Christian Community;separatorsize=1")

Should be...
Code:
aI("text=Christian Community;showmenu=choirs;status=Christian Community;separatorsize=1;");

Note the removal of one of the ;; after choirs, and the ending sequence - a ; after the last item in the list, and also at the close of the aI. The same is true for all aI statements.

3. You have...
Code:
<!-- top=; -->
itemwidth=160;
style=style1;
alignment="center";
aI("text=Adult Christian Education for Advent;url=adulteducation.html;;separatorsize=-->")

Is this still a .js file? I'm not sure about the use of <!--, etc., as comment indicators. Typically in JS they would simply be //; e.g., //top=; would comment out that line.

In the aI above you have separatorsize=-->"). You're apparently closing a comment (if that sequence works), but I don't see where you've opened it. That line would, therefore, be invalid.


Poster: Ruth
Dated: Wednesday June 30 2004 - 16:03:56 BST

Some of the problems, the ones with the <-- in them are the result of using that to comment out certain areas of your original version 3 array file. So in version 3 you have
Code:
<!-- addmenu(menu=["Adult Christian Education for Advent",
            <!-- ,,160,1,"",style1,,"center",effect,,,,,,,,,,,,  -->
            <!-- ,"Adult Christian Education for Advent","adulteducation.html",,, -->
            <!-- ]) -->
That's causing weird things when you convert. I suggest that you take your version 3 menu_array.js file, remove the comment codes so the above would become
Code:
addmenu(menu=["Adult Christian Education for Advent",
            ,,160,1,"",style1,,"center",effect,,,,,,,,,,,, 
            ,"Adult Christian Education for Advent","adulteducation.html",,,
             ])
Save it with a new name..i.e. menu_array1.js, then convert that. Once converted you can go back and use // not <!-- to comment out lines in the new version 5 menu_data.js file that you don't want to be active. Also, note the things, John mentioned about the extra ; and missing ; and the overfilter. Hope all this helps.

Ruth


Poster: draconis
Dated: Thursday July 1 2004 - 5:03:25 BST

By now you will have realized that I am pretty good at cuting & pasting, but understanding JS :oops:

Anyway, I took all the advice I received and most of the problems have gone away, like 99%. I am still struggling with some colours to closer emulate V3 but the one thing that is still pretty ugly, is the images on the mainmenu. Is there anyway to turn them off, a la V 3? Size, fonts and colours will be OK then,

Thanks to Ruth and John for their advice and help.


Poster: Ruth
Dated: Thursday July 1 2004 - 6:13:45 BST

Hi,
Cut and paste is a good thing :D Usually :!: What images? I don't even see any images in the code for your main menu. I know you said that it's on your desktop. I guess because you're working on it? But, if you could put up a test page, even if it only had the menu on it and the correct background color of what the page would have, it would be so much easier to help.


Ruth


Poster: John
Dated: Thursday July 1 2004 - 15:14:54 BST

Note also that 5.31 is now out with some additional fixes. Might help...

Image problem


Poster: draconis
Dated: Thursday July 1 2004 - 16:57:35 BST

This line of code is in the data_menu.js file I posted.

subimage="SubMenuImage.gif

This is the current line;

subimage="pin.gif";

The pin appears on the submenus of the URL I posted but not on the 3 "mainmenu" items. On the index page now, the pin appears in the 3 "mainmenu" items.

I will try V 5.31 to see if it helps.

Ta Ta :idea:


Poster: Ruth
Dated: Thursday July 1 2004 - 17:14:07 BST

OK, I understand. That's because the submenuimage is showing anywhere that there is a call to show a submenu. So, to fix it do this: In the menu_data.js file copy and paste the following just below the style1 definition at the top which lists the onbgcolor, oncolor etc.

Code:
style2=new copyOf(style1);
subimage="SubMenuImage.gif";
Then take the line subimage="SubMenuImage.gif"; out of the style1 definition. You now have two style definitions. Leave the mainmenu with the style=style1; and go to all the submenus and replace style1 with style2. Now the subimages will only show in the submenus, not in the main top menu.

Hope that helps.

Ruth

New style2


Poster: draconis
Dated: Thursday July 1 2004 - 18:48:25 BST

OK, I tried that with some funny results. First, after opening the V 3.51 and playing with menu_data.js, I copied the new root js files into my test directory.

When I put the style2 defintion right after the first line where style1 is defined I have no submenus. When I put it at the end, the pin appears on the mainmenu but not on the submenus. I will paste the code for the latest revision of menudata and also the html for my index.shtml file



_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=1 // Sub menu top offset
_subOffsetLeft=1 // Sub menu left offset



with(style1=new mm_style()){
onbgcolor="#CCCCCC";
oncolor="#000000";
offbgcolor="#800000";
offcolor="#FFFFFF";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
menuwidth=40;
padding=5;
fontsize="95%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#000066";
headercolor="#000000";
headerbgcolor="#ffffff";
style2=new copyOf(style1);
subimage="pin.gif";
subimagepadding="1";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

with(milonic=new menuname("mainmenu")){
menuwidth=215;
style=style1;
top=10;
left=20;
alwaysvisible=1;
orientation="horizontal";
aI("text=<center>Nurturing the Faith</center>;showmenu=NTF;status=Nurturing the Faith;separatorsize=1;")
aI("text=<center>Serving the World</center>;showmenu=STW;status=Serving the World;separatorsize=1;")
aI("text=<center>Stewardship -</center><br><center>Making Ministry Possible</center>;showmenu=MMP;status=Stewardship - Making Ministry Possible;separatorsize=0;")
}

with(milonic=new menuname("NTF")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Worship;showmenu=worship;status=Services;separatorsize=1;")
aI("text=Evangelism;showmenu=evangelism;status=Christ Church in the Community;separatorsize=1;")
aI("text=Membership Development;url=http://www.christchurchbellscorners.ca;")
aI("text=Pastoral Care;url=http://www.christchurchbellscorners.ca;")
aI("text=Adult Christian Education;url=http://www.christchurchbellscorners.ca;")
aI("text=Church School for Children;showmenu=churchschool;status=Church School for Children;separatorsize=1;")
aI("text=Youth Programme;url=http://www.christchurchbellscorners.ca;")
aI("text=Seniors Programme;url=http://www.christchurchbellscorners.ca;")
aI("text=Christian Community;showmenu=choirs;status=Christian Community;separatorsize=1;")
}

with(milonic=new menuname("worship")){
itemwidth=160;
style=style2;
alignment="center";
//;aI("text=The 08:00 Sunday Services for Sunday, July 4, 2004;url=ccbcthisweek8am.html;separatorsize=1;")
//;aI("text=The 10:00 Sunday Services for Sunday, July 4, 2004;url=ccbcthisweek10am.html;separatorsize=1;")
aI("text=Readings and Commentaries for Proper 9(14); July 4, Proper 10(15); July 11, Proper 11(16); July 18, Proper 12(17); July 25, 2004.;url=ccbcread.html;separatorsize=1;")
}

with(milonic=new menuname("evangelism")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Christ Church in the Community;url=ccbc4.html;separatorsize=1;")
aI("text=Prayers for the Community;url=ccbc5.html;separatorsize=1;")
}

with(milonic=new menuname("Adult Christian Education for Advent")){
//;top=
itemwidth=160;
style=style2;
alignment="center";
aI("text=Adult Christian Education for Advent;url=adulteducation.html;separatorsize=1;")
}

with(milonic=new menuname("churchschool")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Sunday School Programme;url=ccbc8.html;")
aI("text=Children and Christ Church;url=childrenatccbc.htm;separatorsize=1;")
}

with(milonic=new menuname("choirs")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Senior, Intermediate & Junior Choirs;url=hymnsing.html;separatorsize=1;")
}

with(milonic=new menuname("STW")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Social Services;url=http://www.christchurchbellscorners.ca;")
aI("text=Community Consultations;url=http://www.christchurchbellscorners.ca;")
aI("text=Demographics;url=http://www.christchurchbellscorners.ca;")
aI("text=Partnerships;showmenu=Mission & Outreach;;status=Mission & Outreach;separatorsize=1;")
aI("text=Support Funding;url=http://www.christchurchbellscorners.ca;")
aI("text=Shared Resources;url=http://www.christchurchbellscorners.ca;")
aI("text=Communications;showmenu=Parish Council Manual;;status=Parish Council Manual;separatorsize=1;")
aI("text=Local, Regional, National;showmenu=LRNLinks;;status=Local, Regional, National;separatorsize=1;")
aI("text=International;url=http://www.christchurchbellscorners.ca;separatorsize=1;")
}

with(milonic=new menuname("Mission & Outreach")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Mission & Outreach Committee;url=missionoutreach.html;separatorsize=1;")
}

with(milonic=new menuname("Parish Council Manual")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Parish Council Manual;url=CCBCParishCouncilManual/default.htm;separatorsize=1;")
}

with(milonic=new menuname("LRNLinks")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Links to sites of Interest;url=ccbc7.html;separatorsize=1;")
}

with(milonic=new menuname("MMP")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=A vision for Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Goals in Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Planning for Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Training for Ministry;url=http://www.christchurchbellscorners.ca;")
aI("text=Staffing;showmenu=staffing;;status=Staffing;separatorsize=1;")
aI("text=Volunteer Management;url=http://www.christchurchbellscorners.ca;")
aI("text=Financial Stewardship;url=http://www.christchurchbellscorners.ca;")
aI("text=Communications;showmenu=communications;;status=Communications;separatorsize=1;")
aI("text=Fundraising;showmenu=fundraising;;status=Fundraising;separatorsize=1;")
aI("text=Facilities Management;url=http://www.christchurchbellscorners.ca;")
aI("text=Budgeting;url=http://www.christchurchbellscorners.ca;")
aI("text=Financial Reporting;url=http://www.christchurchbellscorners.ca;")
aI("text=Evaluating Ministry;url=http://www.christchurchbellscorners.ca;")
}

with(milonic=new menuname("staffing")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=People in Christ Church Parish;url=ccbc22.html;separatorsize=1;")
}

//;with(milonic=new menuname("Financial Stewardship")){
//;itemwidth=160;
//;style=style2;
//;alignment="center";
//;aI("text=Stewardship 2003;url=stewardship2003.html;separatorsize=1;")
//;}

with(milonic=new menuname("communications")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=History of the Parish;url=ccbchist.html;separatorsize=1;")
aI("text=Images of the Parish;url=ccbcimage7.html;separatorsize=1;")
//;aI("text=The Diocesan Centennial;url=ccbc6.html;separatorsize=1;")
aI("text=CCBC News - May 2004;url=ccbc_news.html;separatorsize=1;")
aI("text=Lychgate - May 2004;url=lychgate.html;separatorsize=1;")
}

with(milonic=new menuname("fundraising")){
itemwidth=160;
style=style2;
alignment="center";
aI("text=Our Parish Cooks;url=ccbccooks.html;separatorsize=1;")
}



drawMenus();


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="ABSTRACT"
content="Christ Church (Anglican) in Bells Corners, Ontario. This site includes worship schedules, weekly church meetings,
activities, prayer page, church history, Diocese of Ottawa centennial page, Childrens' programs, links to other Anglican and Christian sites">
<meta http-equiv="Keywords"
content="Christ Church, Bells Corners, Ontario -
Anglican Diocese of Ottawa, CCBC, worship, Christian, Religion, Choir, Children, Jesus Christ">
<meta name="AUTHOR" content="R. McKnight">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>CCBC - Christ Church Bells Corners, Ontario - Anglican Diocese of Ottawa</title>
<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.js" type=text/javascript></SCRIPT>

</head>


<script LANGUAGE="JavaScript">


<!--


/* This applet can be re-used or modified, if credit is given in
the source code.

Thanks to Web Integration Systems,
Inc DBA Websys, Inc. for the code.
*/
function scrollit_r2l(seed)
{
var m1 = "So you want to join us in church? ";
var m2 = " Call us __at__ (613)829-1826 for directions. ";
var msg=m1+m2;
var out = " ";
var c = 1;

if (seed > 100) {
seed--;
var cmd="scrollit_r2l(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit_r2l(100)",75);
}
}
}

// -->
</script>



<BODY text="#000000" link="#0000FF" vlink="#008000" ALINK="#FF8000"
onLoad="timerONE=window.setTimeout('scrollit_r2l(100)',500); SM_dailyBgColor('#008000','#008000','#FF0000','#008000','#008000','#008000','#FFO000'); " >
<script language="JavaScript">
<!--

function SM_dailyBgColor(sunday,monday,tuesday,wednesday,thursday,friday,saturday) {

/*
SM_dailyBgColor()
This function automatically changes the page's background color each day of the week.

Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javas ... e_library/)

Author: Sean McManus
Author Email: sean __at__ liquidizer.demon.co.uk
Author URL: http://www.liquidizer.demon.co.uk/

Usage: SM_dailyBgColor ("mondaycolor", "tuesdaycolor", "wednesdaycolor", "thursdaycolor", "fridaycolor", "saturdaycolor", "sundaycolor");
*/

cols=new Object();
cols[0]=sunday;
cols[1]=monday;
cols[2]=tuesday;
cols[3]=wednesday;
cols[4]=thursday;
cols[5]=friday;
cols[6]=saturday;

today=new Date();
day=Math.round(today.getDay());
document.bgColor=cols[day];
}

// -->

</script>
<br>
<br>
<br>
<br>

<center>
<a href="http://www.anglican.ca"><img src="welcome_sm.gif" width="83" height="93" alt="The Anglican Church welcomes you " border="0" align="middle"></a>
</center>
<h1 align="center"><a name="_top"></a>Christ Church Bells Corners, Ontario<br>
Anglican Diocese of Ottawa</h1>
<p align="center"><img src="canada.gif" ALT="Canadian flag" width="56" height="32"><br>
<br>
<img src="Church.jpg"
alt="Picture of Christ Church on Richmond Road, an Anglican Church in Bells Corners, Ontario. Worship services include Holy Eucharist (Communion) with Church School on Sunday and Morning prayer,Tuesday, Wednesday and Thursday every week. Nursery available every Sunday" width="557" height="240" ><br>
</p>
<CENTER>
<h2>TO KNOW GOD,<br>
TO GROW IN CHRIST,<br>
AND TO SHOW LOVE <br>
IN THE POWER OF THE HOLY SPIRIT,<br>
THROUGH WORSHIP, WITNESS,<br>
FELLOWSHIP AND SERVICE</h2>
</CENTER>

<center><table width="60%" height="30%" cellspacing="2" cellpadding="2" border="1">
<tr><!-- Row 1 -->
<td> <center><h1>The season after Pentecost</h1></center>
<center><h2><i>Ordinary Time</i></h2></center>
<!-- <center><img src="adventw4.gif" width="83" height="98" alt="" border="0" align=""></center> -->
<center><h2>Where we are encouraged to lead faithful
lives as we read stories of Jesus’ life and of the struggles of men and women who have tried to live in faith.</h2></center>
<center><h2>Sunday, July 4th is the</h2> </center>
<!-- <center><h2></h2></center> -->
<center><h2>5th after Pentecost, Proper 9(14)</h2></center>
</tr>
</table></center>
<!-- <h3 align="center"><a href="ccbc4.html" target="_blank">Holy Week Services</a></h3> -->
<H3 align="center"><A HREF="ccbcmaps.html">How to find us.</a></H3>
<h3 align="center"><a href="ccbc4.html" target="_blank">Services</a></h3>
<br>
<center><table width="70%" cellspacing="2" cellpadding="2" border="1">
<tr><!-- Row 1 -->
<td align="center"><H3><a href="http://thehungersite.com/"><img src="hungersite.gif" width="122" height="60" alt="Feed My Lambs" - Help Feed the Hungry" border="0" align="middle">Feed My Lambs" - Help Feed the Hungry</a></H3></td>
</tr>

</table></center>
<br>
<br>

<center><a href="http://www.anglicancommunion.org/acp/main.cfm"><img src="logo.gif" width="555" height="54" alt="" border="0" align=""></a></center>


<p align="center"><img src="cross1.gif" ALT="Cross" width="51" height="25"> <br></p>
<hr>
<h4><a href="#top"><i>Top of Page</i></a></h4>

<hr>
<center>You are visitor Number # <IMG SRC="http://express2c.magma.ca/cgi-bin/Count.cgi?
ft=15|frgb=72;138;215|tr=0|trgb=0;0;0|md=6|dd=C|st=1|sh=1|df=ccbellsC">&nbsp from 2004.05.12</center>
<hr>
<!-- <p align="center">Last updated 2002-02-17. </p> -->
<!-- START of Last Date Modified JavaScript -->
<!-- DESCRIPTION: This shows the user the last date this page was modified.
INSTRUCTIONS: Place this script where you want the Last Date
Modified to show up.
FUNCTIONALITY: Works in both Netscape and IE.
-->
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
//Modified by CoffeeCup Software
//This code is Copyright (c) 1998 CoffeeCup Software
//All rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.
x = new Date();
document.write("Last Updated: ");
document.write(x.toLocaleString())

<!-- var dateMod = "" ;dateMod = document.lastModified ;document.write("Last Updated: "); document.write(dateMod); document.write(); -->
// --></SCRIPT>
</CENTER>
<!-- END of Last Date Modified JavaScript -->

<hr>
<p align="center">Comments to:.......<a href="ccbc __at__ bellnet.ca">R.
McKnight...</a>
<br>
This site is best viewed with Netscape Navigator 4.7. <br>
</p>

<hr>
<table border="0" width="100%">
<tr><!-- Row 1 -->
<td><A HREF="http://www.ipstat.com/cgi-bin/stats?name=mainpage2"> <IMG SRC="http://www.ipstat.com/cgi-bin/ipstat?name=mainpage2" HEIGHT="32" WIDTH="32"
BORDER="0"></A></td><!-- Col 1 -->
<!-- <td><a href="http://graphics.elysiumgates.com/index.html"><img src="angel6logo.jpg" width="100" height="67" alt="" border="0" align="center"></a></td><!-- Col 2 -->
<td><a href="http://www.milonic.com/menu"><img src="milonic_logo.gif" width="100" height="67" alt="" border="0" align="right"></a></td><!-- Col 3 -->
</tr>
</table>




</body>
</html>


Poster: Ruth
Dated: Thursday July 1 2004 - 19:08:42 BST

I'm sorry :oops: the mistake was mine in my description of how to do it. It doesn't go in the first style, it goes after it, like so. Sorry. You might check out the Beginners' Guide section of the forum. There's not much there yet, we are adding as we get time. Nothing fancy just things to give you a feel for the menu.

Code:
with(style1=new mm_style()){
onbgcolor="#CCCCCC";
oncolor="#000000";
offbgcolor="#800000";
offcolor="#FFFFFF";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
menuwidth=40;
padding=5;
fontsize="95%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#000066";
headercolor="#000000";
headerbgcolor="#ffffff";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


style2=new copyOf(style1);
subimage="pin.gif";
subimagepadding="1";


Then the rest as you have it, with the style2 in the submenus.

Ruth


Poster: draconis
Dated: Thursday July 1 2004 - 20:53:30 BST

Ruth,

You don't need to be sorry, I forgot the primary rule....RTM :oops:

After I posted last I did go to your beginners guide and found the correct syntax. It worked but as I was making changes to get it to look and feel like the current menu I am using, I started getting error messages whenever I hit a submenuitem with a pin displayed. Syntax error in line 16. After finally opening the debugger, the menu is not in the file I had been editing but in mmenuns4.js

I am pretty sure something I did has bollixed it so I am posting the changed menu_data code again. I really do appreciate your patience.

Rick



_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop="1px" // Sub menu top offset
_subOffsetLeft="1px" // Sub menu left offset



with(style1=new mm_style()){
onbgcolor="#CCCCCC";
oncolor="#000000";
offbgcolor="#800000";
offcolor="#FFFFFF";
margin=6;
bordercolor="#296488";
borderstyle="solid";
borderwidth=2;
separatorcolor="#2D729D";
separatorsize=1;
padding=5;
fontsize="14px";
fontweight="bold"
fontstyle="normal";
fontfamily="Verdana, Arial";
pagecolor="black";
pagebgcolor="#000066";
headercolor="#000000";
headerbgcolor="#ffffff";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

style2=new copyOf(style1);
style2.subimage="pin.gif";
style2.subimagepadding=1;
style2.fontsize="14px";
style2.padding="3";

with(milonic=new menuname("mainmenu")){
menuwidth="650px";
itemwidth="300px";
style=style1;
top=1;
left=15;
alwaysvisible=1;
orientation="horizontal";
aI("text=<center>Nurturing the Faith</center>;showmenu=NTF;status=Nurturing the Faith;separatorsize=1;")
aI("text=<center>Serving the World</center>;showmenu=STW;status=Serving the World;separatorsize=1;")
aI("text=<center>Stewardship -</center><center>Making Ministry Possible</center>;showmenu=MMP;status=Stewardship - Making Ministry Possible;separatorsize=1;")
}


Poster: John
Dated: Thursday July 1 2004 - 22:20:10 BST

Hi -

I have your menu working at http://www.west.asu.edu/sa/testsite/. Couldn't find the subimage on your site, but the errors are gone.

There were many syntax errors in your _data file - not what was causing the problem, but fixed anyway. The snag was...
Code:
_subOffsetTop="1px" // Sub menu top offset
_subOffsetLeft="1px" // Sub menu left offset

Should be...
Code:
_subOffsetTop=1 // Sub menu top offset
_subOffsetLeft=1 // Sub menu left offset

Because of all the changes, feel free to get the _data file from http://www.west.asu.edu/sa/testsite/menu_data.js.

Please let me know when you get the file so I can take it down.

new data_menu


Poster: draconis
Dated: Thursday July 1 2004 - 23:34:24 BST

John,

Thank you. I have the file and it works just fine.

Rick

Re: new data_menu


Poster: John
Dated: Thursday July 1 2004 - 23:50:37 BST

draconis wrote:
Thank you. I have the file and it works just fine.

You're welcome. Glad to hear it. I'll take it down.

Note the syntax in the _data file (again these were not the cause of the problems)...

1. Removed instances of ;; .

2. All aI statements should end as you see - ;"); - closing ; after the last parameter, and a ; at the end of the aI.

3. I removed fontsize="14px"; from the copyOf because it was already in the style1 (no biggie).

4. Parameters that are numeric typically don't need the "" (style2.padding="3"; can be style2.padding=3;), although the menu will now accept it either way.