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

Give some menu items a different font


Poster: PhDJ
Dated: Friday February 25 2011 - 13:02:48 GMT

Is there a way to give certain menu items a different font ?

I have a menu where some items behave differently, some show a submenu, others a page certain products cannot be ordered online, I would like to display them in italic and in a different color.

If I do this :

Code:
with(milonic=new menuname("Main Menu")){

alwaysvisible=1;
left=10;
margin=2;
orientation="horizontal";
style=XPMainStyleItalic;
top=10;

aI("image=/img/SagamGraphicLogo.gif;showmenu=li0;");
aI("text=Film;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("text=Offsetplaten;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
margin=2;
orientation="horizontal";
style=XPMainStyle;
top=10;

aI("text=EPP Shop;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("showmenu=DIV 04;text=inkten/lakken;");
aI("showmenu=DIV 05;text=perschemie;");
aI("text=Rubberdoeken;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("text=Rotatieprodukten;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("showmenu=DIV 08;text=diverse prepress en pressproducten;");
aI("text=Basket;url=javascript:JSRPC('basket.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("text=Historiek;url=javascript:JSRPC('history.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("text=Zoek product;url=javascript:JSRPC('products.php?lang=N', 'divresult', 'reserverparm', false, false);");
}



I get two different menu's on the screen, I would like them to be in one menu.

Re: Give some menu items a different font


Poster: PhDJ
Dated: Tuesday March 1 2011 - 12:35:56 GMT

Found the answer after finding this page http://www.milonic.com/itemproperties.php

Code:
aI("fontstyle=italic;text=EPP Shop;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("showmenu=DIV 04;text=inkten/lakken;");
aI("showmenu=DIV 05;text=perschemie;");
aI("fontstyle=italic;text=Rubberdoeken;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("fontstyle=italic;text=Rotatieprodukten;url=javascript:JSRPC('divisionNotUsed.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("showmenu=DIV 08;text=diverse prepress en pressproducten;");
aI("fontstyle=italic;text=Basket;url=javascript:JSRPC('basket.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("fontstyle=italic;text=Historiek;url=javascript:JSRPC('history.php?lang=N', 'divresult', 'reserverparm', false, false);");
aI("fontstyle=italic;text=Zoek product;url=javascript:JSRPC('products.php?lang=N', 'divresult', 'reserverparm', false, false);");


Adding
Code:
fontstyle=italic;
did the trick !