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
create listmenus with rawcss
Poster: nwilcox
Dated: Monday February 25 2008 - 17:52:52 GMT
can you create a ul based menu and style individual li items with rawcss like you can do for regular Milonic Menus?
I'm trying to recreate an existing Milonic menu in the list based method but I can't figure out how to apply the itemlevel styles. For example:
Code:
with(milonic=new menuname("MenuDevelopment")){
style=menuStyleDevelopment;
alwaysvisible=1;
menuwidth="237px";
orientation="vertical";
position="relative";
aI("itemwidth=237px;title=DEVELOPMENT;status=DEVELOPMENT;image=images/btn_development_over.gif;url=development.aspx;");
aI("type=disabled;image=images/spacer.gif;imageheight=5;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Capabilities;showmenu=MenuCapabilitiesHome;type=tree;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Our Process;url=http://www.milonic.com/mylicenses.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Partnerships;url=http://www.milonic.com/myinvoices.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Portfolio;url=http://www.milonic.com/reqsupport.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=How We Work;url=http://www.milonic.com/mysupport.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Requests For Quotation (Development);url=http://www.milonic.com/mydetails.php;");
}
style=menuStyleDevelopment;
alwaysvisible=1;
menuwidth="237px";
orientation="vertical";
position="relative";
aI("itemwidth=237px;title=DEVELOPMENT;status=DEVELOPMENT;image=images/btn_development_over.gif;url=development.aspx;");
aI("type=disabled;image=images/spacer.gif;imageheight=5;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Capabilities;showmenu=MenuCapabilitiesHome;type=tree;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Our Process;url=http://www.milonic.com/mylicenses.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Partnerships;url=http://www.milonic.com/myinvoices.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Portfolio;url=http://www.milonic.com/reqsupport.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=How We Work;url=http://www.milonic.com/mysupport.php;");
aI("rawcss=padding:0 12px 0 12px;itemheight=17px;text=Requests For Quotation (Development);url=http://www.milonic.com/mydetails.php;");
}
Re: create listmenus with rawcss
Poster: Ruth
Dated: Monday March 3 2008 - 6:10:10 GMT
Hi,
Since the menu that shows up is built from items in a list menu and not from items in an aI string inside the menu data file you can't apply rawcss to each item. What you could do is create rawcss in the style for a particular menu that is built from the lists, but that would apply the same rawcss to each item built from the ul/li.
Ruth