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

properties not working....!!!!


Poster: gjensen
Dated: Friday March 4 2005 - 13:50:48 GMT

Below are my properties for the menu displayed at:
http://www.ihets.org/coverpage2005/index8.html

I need to customize and can't seem to get things working.
I need you to help me sample the correct properties.

1. What is the correct property for displaying an image in the header category? NOT an arrow, an actual image to replace text. Also, if my "menu" folder needs to reside at root in order for images to work... please advise the correctness of path.

2. I need to customize the background color property for the sub-categories. I have tried several options in several places... and it does not work. Please advise.
Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;

var browsername = navigator.appName;
var browser;



with(menuStyle=new mm_style()){
/* bordercolor="#999999"; */
/* borderstyle="solid";  */
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="80%";
fontstyle="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#4573B3";
offcolor="#FFFFFF";
onbgcolor="#4573B3";
oncolor="#FFFFFF";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=1)";
padding=4;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#4573B3";

/* subimage="arrow.gif"; */
subimagepadding=2;
}

with(milonic=new menuname("About Ihets")){
alwaysvisible=1;
left=27;
orientation="horizontal";
style=menuStyle;
top=233;
aI("showmenu=AboutIhets;menubgimage='progserv1.gif';text=ABOUT IHETS");
}

with(milonic=new menuname("Programs Services")){
alwaysvisible=1;
left=159;
orientation="horizontal";
style=menuStyle;
top=233;

aI("showmenu=ProgServ;text=PROGRAMS & SERVICES;");
}

with(milonic=new menuname("News Events")){
alwaysvisible=1;
left=345;
orientation="horizontal";
style=menuStyle;
top=233;

aI("showmenu=NewsEvents;text=NEWS & EVENTS;");
}

with(milonic=new menuname("Support")){
alwaysvisible=1;
left=493;
orientation="horizontal";
style=menuStyle;
top=233;

aI("showmenu=Support1;text=SUPPORT;");
}

with(milonic=new menuname("Information For")){
alwaysvisible=1;
left=578;
orientation="horizontal";
style=menuStyle;
top=233;

aI("showmenu=InfoFor;text=INFORMATION FOR...");
}

with(milonic=new menuname("AboutIhets")){
style=menuStyle;

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("ProgServ")){
style=menuStyle;

aI("status=(aq) Web Server Hosting & Services;text=(aq) Web Hosting;url=http://www.a-q.co.uk/;");
aI("text=WebSmith;url=websmith;");
aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
}

with(milonic=new menuname("NewsEvents")){
style=menuStyle;
aI("status=Apache Web Server, the basis of Milonic's Web Site;text=Apache Web Server;url=http://www.apache.org/;");
aI("status=MySQL, Milonic's Prefered Choice of Database Server;text=MySQL Database Server;url=http://ww.mysql.com/;");
aI("status=PHP - Web Server Scripting as used by Milonic;text=PHP - Development;url=http://www.php.net/;");
aI("status=PHP Based Web Forum, Milonic's Recommended Forum Software;text=phpBB Web Forum System;url=http://www.phpbb.net/;");
aI("showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;text=Anti Spam Tools;");
}

with(milonic=new menuname("Support1")){
style=menuStyle;
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("InfoFor")){
style=menuStyle;
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;");
}


Poster: Ruth
Dated: Friday March 4 2005 - 15:35:18 GMT

gjensen wrote:
1. What is the correct property for displaying an image in the header category? NOT an arrow, an actual image to replace text


("image=whateverimage; is the code for showing an image in any item.

images should work from any folder as long as you make sure the path to them is correct in the menu_data.js file. I can't tell you the correct path since I don't know what your directory structure is.

If you want the submenus to be a different color, you can create a new style. If it's going to be the same as the menuStyle except for the offbgcolor/onbgcolor then you can use the copyOf method to do it. Right now all the menus use style=menuStyle; so they will all have whatever colors are listed there. The easiest way if you don't have all the info on copyOf would be to copy and paste the menuStyle and then rename it subStyle or such, then change the colors and assign it to the menus you want to have that color.

Ruth


Poster: gjensen
Dated: Friday March 4 2005 - 15:47:21 GMT

Ruth, thanks.
Got things working. All I needed was a little push.
More later.