Give some menu items a different font

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
PhDJ
Beginner
Beginner
Posts: 3
Joined: Thu Sep 30, 2010 10:16 am

Give some menu items a different font

Post by PhDJ »

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: Select all

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.
PhDJ
Beginner
Beginner
Posts: 3
Joined: Thu Sep 30, 2010 10:16 am

Re: Give some menu items a different font

Post by PhDJ »

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

Code: Select all

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: Select all

fontstyle=italic;
did the trick !
Post Reply