problems grasping with()

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
scottl
Advanced
Advanced
Posts: 10
Joined: Thu Feb 05, 2004 1:33 pm

problems grasping with()

Post by scottl »

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.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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

Regards,
maz
Post Reply