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

Re: Having trouble with JScrpt errors


Poster: sherrylee
Dated: Thursday January 31 2008 - 22:23:58 GMT

since this menu does not have the text=home in it like some of the other samples, where do I edit it to make the changes I need to make?

aI("image=http://www.milonic.com/menuimages/all_home.gif;overimage=http://www.milonic.com/menuimages/all_home_on.gif;url=http://www.milonic.com/;");
aI("image=http://www.milonic.com/menuimages/samples.gif;overimage=http://www.milonic.com/menuimages/samples_on.gif;showmenu=aa Samples;");
aI("image=http://www.milonic.com/menuimages/milonic.gif;overimage=http://www.milonic.com/menuimages/milonic_on.gif;showmenu=Milonic;");
aI("image=http://www.milonic.com/menuimages/links.gif;overimage=http://www.milonic.com/menuimages/links_on.gif;showmenu=Links;");
aI("image=http://www.milonic.com/menuimages/mymilonic.gif;overimage=http://www.milonic.com/menuimages/mymilonic_on.gif;showmenu=My milonic;");
}

Having trouble with JScrpt errors


Poster: sherrylee
Dated: Monday January 28 2008 - 4:02:51 GMT

When I download my sample into my practice local webpage, and try to open it, I get a JScript error. I also am not able to view the sample in my borwser. I am running windows XP with IE 7. I am working with Front Page 2003. I am totally new at working with codes, but have purchased a license from Milonic thinking it would be fairly easy to use, as the product was recommended by another Milonic user. But I have had problems with opening and viewing the sample from the start. I should be able to view the sample in my browser, and go from there, but it is not working.

any help would be appreciated. :(

Sherry

Re: Having trouble with JScrpt errors


Poster: John
Dated: Monday January 28 2008 - 15:10:22 GMT

Since you're running locally, please post your complete HTML here that you're having trouble with. Don't forget to use the [code][/code] tags around your code.

Re: Having trouble with JScrpt errors


Poster: Ruth
Dated: Monday January 28 2008 - 19:43:31 GMT

Hi,

Also, check your paths for your files on your local setup. It may be that they are incorrect based on where you have the menu and the various files in relation to the page. The menu is perhaps the easiest one out there to use, i.e. to setup and to design it.

Ruth

Re: Having trouble with JScrpt errors


Poster: sherrylee
Dated: Monday January 28 2008 - 23:24:22 GMT

This is the first one I tried.

The code for this menu sample, the Menus built entirely from images, can be seen here:

_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(AllImagesStyle=new mm_style()){
styleid=1;
bordercolor="#000000";
borderstyle="solid";
fontstyle="normal";
fontweight="normal";
padding=3;
}

with(menuStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="menuimages/arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=180;
orientation="horizontal";
style=AllImagesStyle;
top=190;
aI("image=/menuimages/all_home.gif;overimage=/menuimages/all_home_on.gif;url=http://www.milonic.com/;");
aI("image=/menuimages/samples.gif;overimage=/menuimages/samples_on.gif;showmenu=aa Samples;");
aI("image=/menuimages/milonic.gif;overimage=/menuimages/milonic_on.gif;showmenu=Milonic;");
aI("image=/menuimages/links.gif;overimage=/menuimages/links_on.gif;showmenu=Links;");
aI("image=/menuimages/mymilonic.gif;overimage=/menuimages/mymilonic_on.gif;showmenu=My milonic;");
}

with(milonic=new menuname("aa Samples")){
overflow="scroll";
style=menuStyle;
aI("image=/menuimages/allimages.gif;overimage=/menuimages/allimages_on.gif;url=/menusample.php?sampleid=18;");
aI("image=/menuimages/xpstyle.gif;overimage=/menuimages/xpstyle_on.gif;url=/menusample.php?sampleid=12;");
aI("image=/menuimages/static.gif;overimage=/menuimages/static_on.gif;url=/menusample.php?sampleid=16;");
aI("image=/menuimages/horizontal.gif;overimage=/menuimages/horizontal_on.gif;url=/menusample.php?sampleid=1;");
}

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("image=/menuimages/purch.gif;overimage=/menuimages/purch_on.gif;url=http://www.milonic.com/cbuy.php;");
aI("image=/menuimages/contact.gif;overimage=/menuimages/contact_on.gif;url=http://www.milonic.com/contactus.php;");
aI("image=/menuimages/news.gif;overimage=/menuimages/news_on.gif;url=http://www.milonic.com/newsletter.php;");
aI("image=/menuimages/faq.gif;overimage=/menuimages/faq_on.gif;url=http://www.milonic.com/menufaq.php;");
aI("image=/menuimages/forum.gif;overimage=/menuimages/forum_on.gif;url=http://www.milonic.com/forum/;");
aI("image=/menuimages/lic.gif;overimage=/menuimages/lic_on.gif;url=http://www.milonic.com/license.php;");
aI("image=/menuimages/privacy.gif;overimage=/menuimages/privacy_on.gif;url=http://www.milonic.com/privacy.php;");
aI("image=/menuimages/licenses.gif;overimage=/menuimages/licenses_on.gif;url=http://www.milonic.com/mylicenses.php;");
}

with(milonic=new menuname("Partners")){
style=menuStyle;
aI("text=(aq) Web Hosting;url=http://www.a-q.co.uk/;");
aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
aI("text=WebSmith;url=http://www.softidiom.com/;");
}

with(milonic=new menuname("Links")){
style=menuStyle;
aI("image=/menuimages/apache.gif;overimage=/menuimages/apache_on.gif;url=http://www.apache.org/;");
aI("image=/menuimages/mysql.gif;overimage=/menuimages/mysql_on.gif;url=http://ww.mysql.com/;");
aI("image=/menuimages/php.gif;overimage=/menuimages/php_on.gif;url=http://www.php.net/;");
}

with(milonic=new menuname("My Milonic")){
style=menuStyle;
aI("image=/menuimages/login.gif;overimage=/menuimages/login_on.gif;url=http://www.milonic.com/login.php;");
aI("image=/menuimages/invoices.gif;overimage=/menuimages/invoices_on.gif;url=http://www.milonic.com/myinvoices;");
aI("image=/menuimages/support.gif;overimage=/menuimages/support_on.gif;url=http://www.milonic.com/reqsupport.php;");
aI("image=/menuimages/details.gif;overimage=/menuimages/details_on.gif;url=http://www.milonic.com/mydetails.php;");
}

drawMenus();

This is the second one I tried to use:

The code for this menu sample, the 3D Gradient Block, can be seen here:

_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
align="left";
bgimage="menuimages/purplegrad3d.gif";
fontfamily="Verdana, Tahoma, Arial";
fontsize="10pt";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
image="menuimages/sqauredot_black_5x5.gif";
imagepadding=4;
offbgcolor="#ffffff";
offcolor="#000000";
oncolor="#000000";
outfilter="fade(duration=0.5)";
pagecolor="black";
subimage="menuimages/purpgradwhite.gif";
subimagepadding=5;
}

with(submenuStyle=new mm_style()){
styleid=1;
borderstyle="raised";
borderwidth=2;
fontfamily="Verdana, Tahoma, Arial";
fontsize="8pt";
fontstyle="normal";
fontweight="normal";
headercolor="#000000";
high3dcolor="#ffffff";
low3dcolor="#634263";
offbgcolor="#AB6FAA";
offcolor="#000000";
oncolor="#ffffff";
outfilter="fade(duration=0.5)";
padding=3;
pagecolor="black";
separatorsize=2;
subimage="menuimages/arrow.gif";
subimagepadding=8;
swap3d=1;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
itemheight=21;
itemwidth=110;
left=170;
margin=4;
orientation="vertical";
style=menuStyle;
top=190;
aI("align=left;text=Home;url=http://www.milonic.com/;");
aI("align=left;showmenu=Milonic;text=Milonic;");
aI("align=left;showmenu=Partners;text=Partners;");
aI("align=left;showmenu=Links;text=Links;");
aI("align=left;showmenu=MyMilonic;text=MyMilonic;");
aI("align=left;text=Search;");
}

with(milonic=new menuname("Milonic")){
style=submenuStyle;
aI("text=Product Purchasing Page;url=http://www.milonic.com/cbuy.php;");
aI("text=Contact Us;url=http://www.milonic.com/contactus.php;");
aI("text=Newsletter Subscription;url=http://www.milonic.com/newsletter.php;");
aI("text=FAQ;url=http://www.milonic.com/menufaq.php;");
aI("text=Discussion Forum;url=http://www.milonic.com/forum/;");
aI("text=Software License Agreement;url=http://www.milonic.com/license.php;");
aI("text=Privacy Policy;url=http://www.milonic.com/privacy.php;");
}

with(milonic=new menuname("Partners")){
style=submenuStyle;
aI("text=(aq) Web Hosting;url=http://www.a-q.co.uk/;");
aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
aI("text=WebSmith;url=http://www.softidiom.com/?milonicmenu;");
}

with(milonic=new menuname("Links")){
style=submenuStyle;
aI("text=Apache Web Server;url=http://www.apache.org/;");
aI("text=MySQL Database Server;url=http://ww.mysql.com/;");
aI("text=PHP - Development;url=http://www.php.net/;");
aI("text=phpBB Web Forum System;url=http://www.phpbb.net/;");
aI("showmenu=Anti Spam;text=Anti Spam Tools;");
}

with(milonic=new menuname("Anti Spam")){
style=submenuStyle;
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
}

with(milonic=new menuname("MyMilonic")){
style=submenuStyle;
aI("text=Login;url=http://www.milonic.com/login.php;");
aI("text=Licenses;url=http://www.milonic.com/mylicenses.php;");
aI("text=Invoices;url=http://www.milonic.com/myinvoices.php;");
aI("text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
aI("text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
aI("text=Your Details;url=http://www.milonic.com/mydetails.php;");
}

drawMenus();

In my front page local practice site I can open and see the code, but am not able to preview in browser.

When I download these two samples to my temp files then extract them from the zip files, then click on the menu_data.js file to see the sample, I get a Windows host error window with a JScrpt error. I wonder if there is some sort of security problem blocking the Java Script download.

Re: Having trouble with JScrpt errors


Poster: sherrylee
Dated: Tuesday January 29 2008 - 1:24:50 GMT

If you were downloading either of these files into your local webpage to work it before publishing it to you remote webpage, how would you go about it? would you create a folder in the local webpage and then download it into that folder, and then unzip it? That is what I did, then tried to view it in my browser, but can only get a Edit browser List... then try to open the browser, but don't see the sample as a navigation bar. I can open it as code though, but still can't preview it in my browser. I need to preview it my my browser before I can begin working with it to be sure it is working properly. Am I correct in these steps?

Is it possible for you to step me through the download in case I am doing it wrong?

Sherry

Re: Having trouble with JScrpt errors


Poster: Ruth
Dated: Tuesday January 29 2008 - 7:18:10 GMT

Hi,

The menu is really easy to set up and use, though when first starting it is probably a bit overwhelming :) It sounds to me like you have a path issue, and all I can tell you is what I do when working on a sample.

What I do is just create a folder on my desktop, download the sample to my desktop and then unzip it to the folder. You should see the index.htm page in the folder and if there are images they should be in the same place and if you right click the index page and click open it should open in your browser.

Ruth

Re: Having trouble with JScrpt errors


Poster: Ruth
Dated: Friday February 1 2008 - 4:33:49 GMT

Hi,

What you posted there is a list of what is mostly called aI strings. Each one of these aI strings is an item of the particular menu in which you find them. If you go to the sample of what you have http://www.milonic.com/menusample18.php you will see that there are 5 items which equals the 5 aI strings you posted. Those 'strings' which become the items you see will show up in the order they are listed in the menu.

What you see in the strings are the various 'properties' that will show in the item. So, in this case the 1st aI string will have the home image in it, the second one the samples and so on. Below my name are links to the different property areas of the menu, the style properties i.e bordercolor="#296488"; will appear at the top area in the 'style' defined. The menu properties which appear in the menu declaration itself, i.e.
Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;


so alwaysvisible is a menu property.

Item properties appear in the items, i.e.
Code:
image=/menuimages/all_home.gif


So, image [in this case] is an item property. Some of them can be used as an item property like here, or can be used as either an item property or a style property. So, let's say you wanted all the items to be text but you wanted say a star image to be in all of them, you would them put image="star.gif"; in the style section, and you'd put text=HOME; in the item. And, every item that used the style that had the image declared in it would have that star image show up next to the text.

You need to take a look at this section viewforum.php?f=14 and read styling the menu part I, II, III. They are very short and give you an idea about creating styles and using them

Now, as to what you posted here, I note that the image url is to the Milonic site, please do not link to the Milonic site for the images. They come in the download and you need to put them on your site and link to them at your site. So,

[url]aI("image=http://www.yoursite.com/folderForImages/all_home.gif; and so on for that 1st aI string[/url]

If you need more help, please let us know. If you have a page up on which you want the menu, please post the page url so we can see it, and tell us where you want the menu and we can be of more help on how to do that.

Ruth

Re: Having trouble with JScrpt errors


Poster: sherrylee
Dated: Tuesday February 12 2008 - 17:25:14 GMT

I understand the Milonic will build y our navigation bar for you for the price of $155.00. If you have already purchased a liscense, will they deduct that from the cost?

Re: Having trouble with JScrpt errors


Poster: sherrylee
Dated: Tuesday February 12 2008 - 18:39:28 GMT

The instructions for installing your files to your web server say to install mmenudon,js, mmenuns4.js, milonic_src.js,, and menu_data.js. There is one more. It is milonic_menu_code.js. Are all of these files to be placed on your web server? or is it just the 4 that is given in the instructions?

Thank you,
Sherry

Re: Having trouble with JScrpt errors


Poster: sherrylee
Dated: Tuesday February 12 2008 - 20:41:59 GMT

In this string I need to change the text to "about us". Please tell me where I need to make the changes. Also, I understand I need to change the url. My url is a .org extension. I am working with Frontpage 2003 to create my navigation bar. Wouldn't I change all the url's to .org as I work with my menus?

aI("image=http://www.milonic.com/menuimages/allimages.gif;overimage=http://www.milonic.com/menuimages/allimages_on.gif;url=/menusample.php?sampleid=18;");

Thank you,
Sherry

Re: Having trouble with JScrpt errors


Poster: Ruth
Dated: Thursday February 14 2008 - 6:52:22 GMT

Hi,

sherrylee wrote:
The instructions for installing your files to your web server say to install mmenudon,js, mmenuns4.js, milonic_src.js,, and menu_data.js. There is one more. It is milonic_menu_code.js. Are all of these files to be placed on your web server? or is it just the 4 that is given in the instructions?


The milonic_menu_code.js is a file that combines the milonic_src and mmenudom files. The mmenuns4.js file is the file to support the Netscape 4+ browser. Most no longer use that file since they don't support that browser anymore. In most browser statistic sites, if you can find statistics for that browser anymore, the use is about .05 of 1% of visitors at the site. I would suggest you check your domain's statistics as to what browsers are used, and if you do not have any for NN4+ you can leave that file out. Below I will give you two different setups to call the menu files. You would of course change the paths to your own domain paths.

1. This is the call if you are supporting Netscape 4+

Code:
<script type="text/javascript" src="milonic_src.js"></script>
<script   type="text/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 type="text/javascript" src="menu_data.js"></script>


2. This is the call if you are not supporting Netscape 4. It serves for all other browser with which Milonic works, including all the Netscape 6 and above browsers

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


3. If you wanted to use the milonic_menu_code.js file you could, there would be no support for NN4, and the call would be

Code:
<script type="text/javascript" src="milonic_menu_code.js"></script>
<script type="text/javascript" src="menu_data.js"></script>


So, you would upload whichever files you need, depending on how you wanted the calls, and whether you wanted to support NN4. The paths for the call of those files would be whatever your paths on your site are. So, let's say your site is mysite.org and you create a folder called menufiles and you upload all the files to that folder. Then the calls would be
Code:
mysite.org/menufiles/milonic_src.js
and so on for all the files.

I'll make one suggestion, I suggest you rename the menu_data.js file when you have it as you like it. Say, my_menu_data or something. I only do that so that when you upgrade to a newer version you don't accidentally overwrite your existing personalized menu_data. That particular file, the menu_data file is the file that you change to make the menu look as you want, have the urls you want, and whatever other things you might want in it, so you want to make sure once you get it as you want it, you do not accidentally overwrite it with a new menu_data file.

As to the urls for your images and such, the url would be whatever the path on your site is. So, again if it's mysite.org and you create a folder called menuimages, then it would be
Code:
mysite.org/menuimages/allimages.gif
Of course, you need the http and such. I just leave that out so it doesn't become a link here on the forum :)

Finally, as to the creation of the menu by Milonic and prices, we cannot answer that question, we do not work for Milonic. John and I are just volunteers who like this menu a lot and like helping on the forum. I suggest you contact Milonic directly. If you have purchased a professional license, then try this link and fill out a suport ticket. http://www.milonic.com/support/ It explains how to do that.

Ruth