loop twice

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cms-user
Beginner
Beginner
Posts: 1
Joined: Mon May 30, 2005 10:32 pm

loop twice

Post by cms-user »

the way the menu is built i have to loop the navigation twice. unfortunately i'm in a stupid cms and cannot do that, unless i hack around.

why can't i define my menu like this?

menu_main=new menuname("Main Menu");
menu_main.alwaysvisible=1;
menu_main.left=10;
menu_main.orientation="vertical";
menu_main.style=menuStyle;
menu_main.top=10;
menu_main.aI("status=Back To Home Page;text=Home;url=http://milonic.com/;");
menu_main.aI("showmenu=Samples;text=Menu Samples;");

menu_x=new menuname("Samples");
menu_x.overflow="scroll";
menu_x.style=menuStyle;
menu_x.aI("text=Plain Text Horizontal Style DHTML Menu Bar;url=http://milonic.com/menusample1.php;")
menu_x.aI("text=Vertical Plain Text Menu;url=http://milonic.com/menusample2.php; ... on=showtip('Another common sample This time, the sub<br>menus are opened from a vertical main menu') ;")
menu_x.aI("text=All Horizontal Menus;url=http://milonic.com/menusample25.php ... on=showtip('If space is limited, this menu sample shows how<br>to open sub-menus in a horizontal orientation') ;")
menu_x.aI("text=Using The Popup Menu Function Positioned by Images;url=http://milonic.com/menusample24.php ... on=showtip('The popup function can also open menus<br>based on mouse action but also positioned<br>relative to an image') ;")

menu_main.aI("showmenu=Milonic;text=Milonic;");

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("text=Product Purchasing Page;url=http://milonic.com/cbuy.php;");
aI("text=Contact Us;url=http://milonic.com/contact.php;");
}

menu_main.aI("showmenu=Partners;text=Partners;");
menu_main.aI("showmenu=Links;text=Links;");
menu_main.aI("showmenu=MyMilonic;text=My Milonic;");


...

this doesn't give an error but only shows the first 2 main nav elements.

greetings
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I think anyone who might know about this is away at the moment. By the absence of questions on the menu and cms, I have to think people get it to work, but I did find a couple of posts that refer to cms, but I have no idea what they are saying, if there is anything that might give you some info :?


viewtopic.php?p=19014

viewtopic.php?p=27261

Ruth
Post Reply