Error messages in FrontPage

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

No problem on the delay, I've been working on updating my data and my main page.

If this is toooooo much,I would understand. But here goes.

I have two menu_array.js One is called "1homepage_menu_array.js" and "2homepage_menu_array.js" "1" is for my main index page and "2" is for all other pages other than the main page. They both have the same data but the height of the menu is different.

Also I have changed some of the menu verbiage and file names like under "Computer Stuff" "Computer web sites" is now Computer Websites and the file was changed from "computer_web_sites.htm" to "computer_websites.htm". And I changed some names on the menu and file names. I also changed the "Time delay" and the "current page background color" a week or so ago.

It looks like "/my_test_data.js." has the old info in it.

At this point I'll wait to see if my changes make a diff before I stumble forward.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Error messages in FrontPage

Post by Ruth »

Hi,

I think you are misunderstanding some things. You can't just upload the sample you downloaded and see your menu. You have to open that menu_data.js file and edit it. Well, since I did the editing and put the file up for you to get that part is done, but you have to upload that test data js file to the milonicmenu folder, then you have to open that index.htm page that is in the sample download and change the name of the menu_data.js file to my_test_data.js then re-upload the index page to that milonicmenu folder. Once you do that you will see your menu. The js file I made, you can edit. It is much easier than the menu_array.js file, much much easier.

Now as to the changes you made: just open the my_test_data.js file and edit it the way you want. So, open that my_test_data.js file in a text editor. Then go down until you see

Code: Select all

with(milonic=new menuname("computer")){
Then go to the

Code: Select all

aI("text=Computer Web sites;url=computer_web_sites.htm;");
You then just change the Computer Web sites, to what you want Computer Websites, then where it says url= you would change the url to computer_websites.htm. This menu is much easier to make changes in, much more user friendly. Once you change that, then save the file. If you are going to test it, save it as that my_test_data.js and upload it again to the milonicmenu folder and you should see the changes right away.

Now, as to having two menu files 1homepage and 2homepage. You can do that with no problem and you can test it like this. Open the my_test_data.js file in a text editor, copy the file, and paste it to another blank page and save it as my_test_data1.js, then make any changes you want. Then open the index.htm page, change the call for the my_test_data.js to my_test_data1.js, then save that index file as index1.htm, now you will have two pages and two data files. Upload the my_test_data1.js file and index1.htm file to the milonicmenu folder and you can see whatever changes have been made.

I have to tell you that whatever you think you are getting in the old menu you are not. Your main page with the 1homepage array on it, the menu is NOT 122 px wide. And, on your other pages your menu is NOT 150px wide. The menus are actually about 900px wide, they are centered, and if you use the test file I made you, you will see that those menus are centered and are set to be 116px from the top of the page. Hope this helps.

Ruth
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

I have not been able to see a menu yet. I'm looking at http://dougsstuff.com/milonicmenu/index.htm All I see is the verbiage like
Editing the menu
To edit the menu...............

Here's where I am:

1. I have downloaded the Version 5.913 of http://milonic.com/downloads/menu/3 ... r5_913.zip, unzipped it, changed the name to "Milonicmenu " and uploaded it to my site.

2. I uploaded the gif images to the Milonicmenu folder.

3. I download "my_test_data.js" changed the verbiage like "computer web sites" to "computer websites" and uploaded it to the Milonicmenu folder.

4. Changed the Index.htm to "<script type="text/javascript" src="my_test_data.js"></script>".

5. If I'm correct there is no longer a "menu_array.js file because that's part of "my_test_data.js"

6. I did not do anything with your April 4 post.

7. Later after the menu is working I will have to change the <SCRIPT language=JavaScript src="1homepage_menu_array.js" type=text/javascript></SCRIPT> to point to the "<script type="text/javascript" src="my_test_data.js"></script>".

I certainty have missed something as our "conversation" stated back in March.

Again I thank you for your assistance and patience.

Doug
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Error messages in FrontPage

Post by Ruth »

Hi,

Not sure what browser you are using but when I went, I got an error message saying 'unterminated string constant line 166". Actually it's both line 166 and the next 167 [at least in my editor those are the numbers. Not sure how that happened since the file I uploaded for you doesn't have that error. Anyway, you need to open the my_test_data.js file and go to the apologetics submenu and look at the last two items in that. All lines must have a ; and " at the end of them before the closing ) and a ; after the closing bracket ). You have the semi-color before the bracket but not the " marks. Just add those so it looks like these

Code: Select all

aI("text=No Other Name pt1 (PDF file);url=no_other_name__pt_1.pdf;");
aI("text=No Other Name pt2 (PDF file);url=no_other_name__pt_2.pdf;");
When you add the " after the semi-colon in each of those lines the menu shows up :)

Ruth
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

Praise God!

I tell you this is like Christmas and the toy I always wanted is wrapped and under the tree.

I'm sure I'll have some more questions but I really appreciate you sticking this out with me.

I'm the guy all my friends and family come to for computer questions, viruses, crashes..........but code is out of my league.

Thanks so much,

Doug
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

That didn't take long for me to holler "help".

Starting to tweak my menu color, etc. in "my_test_data.js". Hope that's where I'm to change things. Is there a "Menu Items Quick Reference Guide" for my particular menu that shows the function, line number and explanation. I have "DHTML Menu Menu Items Quick Reference Guide" but line number....don't match. I've looked through the "DHTML Menu"/"Menu quick ref guide" menu but didn't see one.

One thing I was looking for on my new menu was "Clickbgcolor". After clicking on menu, I'd like it to stay another color. Like the menu at "http://milonic.com/itemproperties.php".
I changed the old menu from "Pink" to #CCE0F5
"#CCE0F5", // Current Page Item Background Color (leave this blank to disable)

Also need to change the length of the menu and don't see where to do that. And the distance of the menu from the top of the page.

Also noticed that on "my_test_data.js" I have 3 areas to change the menu
with(style1=new mm_style()){
with(style2=new mm_style()){
with(style3=new mm_style()){

Which one do I tweak?

Thanks again,

Doug
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Error messages in FrontPage

Post by Ruth »

Hi,

I have no idea what menu quick reference guide with line numbers you are referencing. Is that from the old menu? That guide will not work with this menu. They are not the same.

First, the 3 areas refer to the 3 different styles you have which I made based on your image, subimage uses, not on your color choices. So, each style has exactly the same colors, but style1 uses the 3d down arrow for the main horizontal menu, style2 uses the arrow subimage and the newimages for the image, and style3 uses only the arrow subimage. There are shorter ways to do it, but since you were just starting out I wanted you to see each separate style with everything in it for each category submenu, 1st level, then 2nd level and any other levels beyond that would use the style3. Instead of doing full styles for each one, because there are only a couple of changes I could have written them in a shortcut manner like this:

Code: Select all

style2=new copyOf(style1);
style2.image="newsimage.gif";
style2.overimage="newsimage_over.gif"; 
style2.subimage="arrow.gif"; 
Then for style 3 it would be:

Code: Select all

style3=new copyOf(style1);
style3.subimage="arrow.gif";
That shortcut would mean that both style 2 and style 3 would take everything in style1 but would make the changes that you put in it.

Now, as for your color question, the coding is pagebgcolor and pagecolor. If you look in each of the styles you'll see those items, and as I didn't change them it will say pink and purple. So, you just go to that item pagebgcolor="pink"; and change pink to "#CCE0F5"; You'll need to do that in all three styles to have all submenus show the 'page' coloring.

Now, as to the various codes, below my name you should see links to styleproperties.php, menuproperties.php and itemproperties.php Those areas are the quick reference quides for each area of the menu. So, in the styleproperties section you'll see all the properties you can use in the style area, in the menu section you'll see all the properties that are for the menu area, and the item section has all the properties that can go into an item. Many of the properties are repeated, that is you can put them in style, menu, or item. As an example, in the 'salvation' submenu, let's say you wanted just that one submenu to have the offbgcolor black and the onbgcolor white. You could go into each item and code it like this

Code: Select all

aI("text=The 4 Spiritual Laws;offbgcolor=#000000;onbgcolor=#ffffff;oncolor=#000000;url=the_four_spiritual_laws.htm;");
That would mean that when that submenu is opened it would look black with white text and when you did a mouseover of the items, the bgcolor would be white and the text color, black.

Menu Sizing. That coding goes into the particular menu you want to size. So, if you want the main menu to be 800px, you'd go to

Code: Select all

with(milonic=new menuname("Main Menu")){ 
and add this menuwidth=800;
In that section you'll see the top=116; So change that to whatever you want to be the top placement of the menu.

I hope this helps. If you have any more question, just post here and I'll get back to you. It seems I didn't get a notice again, but I am checking the board every couple of days. I'll make it every evening for a while. Darned notifications!

Ruth
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

I was afraid you got tired of all my questions. Although I think I'm getting down toward the end of at least getting my website up and running.

I've got at least 30 people I send out "Tips & Tricks" to via e-mail but will be glad to start using my site again so the info will always be available and easier to "publish". I'm a "gatherer" of info and love to pass it on to hopefully help some people along the way. I've probably got 200 or more bits of info stacked up and ready to share.
---------------------------------------------------------------------------------
I would like all menus to be the same. To make 2 & 3 like 1 do I...

replace "with(style2=new mm_style()){" with

style2=new copyOf(style1);
style2.image="newsimage.gif";
style2.overimage="newsimage_over.gif";
style2.subimage="arrow.gif";

and with(style3=new mm_style()){ with

style3=new copyOf(style1);
style3.subimage="arrow.gif";

------------------------------------------------------------------------------------------
Also, if I leave the new menu in a "Milonicmenu" folder do I have to point to the "my_test_data.js" file in my pages that is now (<script type="text/javascript" src="my_test_data.js"></script>) to (<script type="text/javascript" src="milonicmenu/my_test_data.js"></script>)
-----------------------------------------------------------------------------------------------

And along with the above do I need to change "mmenu.js" file (<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>) to another js file?

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

Again, I can't thank you enough for helping in this process of bringing me up to date.

I know you would not be doing this unless you enjoyed helping others. So now you'll have a hand in me helping others as well.

Thanks and blessings until my next set of questions,

Doug
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Error messages in FrontPage

Post by Ruth »

I'm confused. All the menus are the same - except for the images and subimages. In the main menu you have the 3d downarrow as the subimage. Since the submenus open down and are vertical if you used style1 for all menus the arrows would be pointing down in the submenus when they should be pointing right. Also, you have that newimage.gif in the 1st level subs, that little red dot, so if you used style1 that dot would disappear, or if you put that image in style1 all the menus including the main menu would have that red dot next to every item. So, I'm not really sure what it is you want as to them 'all being the same' since in reality, except for your subimages, and that dot in the 1st level subs, they are the same. Let me know what it is you want to change. You could leave out subimages and the images and then you could use one style, but I don't think you want that.

As to the files, I'm not sure what it is you want there either. Are you still going to be testing and therefore leaving the files in that milonicmenu/ folder or are you changing the whole site to the new menu? Remember, when you are change to the new menu on the whole site, you have to change the call for the menu program files and the my_test_data.js file on all the pages in order to get the menu on all the pages.

So, let me know what about the style and about whether you are testing or changing over and I can better answer the questions :)

Ruth
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

As for the first part I do want the menu to show as it does now and want each style to show the same except the "arrows" etc, so if I want the "onbgcolor" different, I change it in all three styles?

And I'm ready to incorporate the new menu into the site.

1. I assume I use my old "Index" file and change the "call" to my_test_data.js or what ever I name it.

2. Do I need to move all files in the Milonicmenu folder to my main folder or are there only particular files that I need to pull from the milonicmenu folder?

3. If I only need some files....which ones?

Thanks for your quick response. I'm anxious to get this up and running so I can start tweaking and adding material.

Thanks & blessings,

Doug
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Error messages in FrontPage

Post by Ruth »

Hi,

Yes, you would change it in all three styles, though if you use the copyOf that I posted previously, that would mean you only have style1 to change. You see the way that copyOf works is, more or less, the program sees copyOf then sees it's a copyOf style1 and say, ah, ok, I copy style1 and just make the below changes :)

As to going live, I would just upload the milonic_src.js, mmendom.js and whatever you name your data file to the root directory, just like you have the old menu. Then on all the pages, just add the correct call.

Also, in case you want them, I have fixed your red dot image and the double arrow so they don't show that kind of whitish area around them. I've included them below. You will have to change the name of the newsimage.gif and newsimage_over.gif in your data file to the names of these items instead if you use them.
equivalent to the newsimage.gif image
equivalent to the newsimage.gif image
reddot_11x11.gif (201 Bytes) Viewed 15755 times
equivalent to the newsimage_over.gif
equivalent to the newsimage_over.gif
red_double.gif (61 Bytes) Viewed 15755 times
Just right click on each and save the images :) Oh, the border doesn't show on the image, that is something the forum is doing!

Hope this helps. Just give a yell if you need anymore info.

Ruth
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Hi Ruth,

I moved the two files (milonic_src.js, mmendom.js) into the main folder.

I have renamed "my_test_data.js" back to my orig file name "1homepage_menu_array.js" and renamed the orig file something else.

NOW.....on my original "index.htm" file I don't need to change the "array" call because the new "array" file has been renamed back to my orig file name "1homepage_menu_array.js" Correct :?:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Below copied from orig "index.htm" page

<SCRIPT language=JavaScript src="1homepage_menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

What file do I set as call file for the old "mmenu.js" :?:

And then I must change the call for the old "mmenu.js" to the new file name on all of my pages.

At that point I should be seeing "our" :D new menu on my main page and then on all of the other pages accessed from the menu.

Am I on the right tract?

P.S. Haven't actually uploaded anything to the site, working locally.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Error messages in FrontPage

Post by Ruth »

Right, you do not have to change that one line, but no matter what you do as to renaming, you have to get rid of the

Code: Select all

<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
and add calls for two program files. So, assuming that you have kept the old name for the data file, this is what your calls would be [note that those 1st 3 lines are supposed to be present always:

Code: Select all

<!--
	 Milonic DHTML Website Navigation Menu Version 5.0+
	 Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved.
	 Please visit http://milonic.com/ for more information.
          -->	

<!-- ***** This is the section of code you need to paste into your web pages ***** -->

<script type="text/javascript" src="milonic_src.js"></script>	
<script type="text/javascript" src="mmenudom.js"></script>

<noscript><a href="http://websites.milonic.com/milonic.com/>Milonic JavaScript Menu is only visible when JavaScript is enabled</a></noscript>

<!-- The next file contains your menu data, links and menu structure etc -->

<script type="text/javascript" src="1homepage_menu_array.js"></script>
	
<!-- **** End JavaScript Menu HTML Code -->
You'd put that right after the body tag. Remember that the program files, i.e. milonic_src.js, mmendom.js have to go before the data file, not the way version 3 was set up for calls. Also, do not forget that if you do NOT change the other pages, you would end up with the old version 3 on them [if you kept the files up on your site] and only your index page would have the new version. So, all the other pages must be changed, also :)

Ruth
User avatar
thewolfe
Super Advanced
Super Advanced
Posts: 87
Joined: Thu May 20, 2004 10:44 pm

Re: Error messages in FrontPage

Post by thewolfe »

Cancel this post ...see next much more :D happy :D post.
Last edited by thewolfe on Tue Jun 19, 2012 1:26 am, edited 2 times in total.
Post Reply