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

problems grasping with()


Poster: scottl
Dated: Wednesday February 18 2004 - 11:53:14 GMT

Hi,
I'm having difficulty getting my head around the functionality of the code below:

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("url=/menusample.php;status=Back To Home Page;image=register.gif");
aI("text=Menu Samples;url=/menusample.php;showmenu=Samples;");
aI("text=Milonic;url=/menusample.php;showmenu=Milonic;");
aI("text=Partners;url=/menusample.php;showmenu=Partners;");
aI("text=Links;url=/menusample.php;showmenu=Links;");
aI("text=My Milonic;url=/menusample.php;showmenu=MyMilonic;");

I understand what the values inside the aI() bit represents, its the chunk of code as a whole that gets me and how its connected to the drawMenus() function. I'm looking this from the point of view of populating the menus dynamically which i'd done for version 3. Any light which could be shed on the subject would be greatly appreciated.
Thanks

scott.


Poster: Maz
Dated: Wednesday February 18 2004 - 17:24:00 GMT

Although I know little about php, to get you started search the forum, there are a few posts on it.

Regards,
maz