Problems with showmenu and open url together

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
HiE
Beginner
Beginner
Posts: 4
Joined: Thu Sep 14, 2006 5:08 pm

Problems with showmenu and open url together

Post by HiE »

Hi, I want to use this line:

aI("showmenu=menu1;text=menu1;url=menu1.htm;openonclick=1;");

but it isn´t works.

I want that I click on the button open url, and showmenu.

It is possible??

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

Post by Ruth »

Hi,

If you set openonclick, then when you click on the item, even if the menu were to show for the second or so it takes for the page to change, when you get to the next page the menu wouldn't be open, you'd be back to a page with just the main menu. However, if you don't use open on click then when you mouseover the item the menu will show and when you click on the item you'd go to the next page.

If you want the menus to open on click, then I suggest that, instead of having a url in the item, you put the url in the first item of the submenu that you open on click.

Ruth
HiE
Beginner
Beginner
Posts: 4
Joined: Thu Sep 14, 2006 5:08 pm

my problem continue

Post by HiE »

Hi, the menu load in a iframe, so i need load some frames before the pages that load inside. So, I need that the menu button with openonclick=1, when click in the bmenu button than load a page with frames and showmenu, then I can clich on submenu item to load another page in the frame load before in the menu button.
If I put the line:
aI("showmenu=menu1;text=menu1;url=menu1.htm;openonclick=1;");
It load the page menu1.htm but don´t show the menu1.
Can someone help me??
Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hello,

We are going to need a link to the page so we can see if we can find a solution to what you want, and to clearly understand what it is you want

Ruth
HiE
Beginner
Beginner
Posts: 4
Joined: Thu Sep 14, 2006 5:08 pm

I resolve my problem

Post by HiE »

I resolve my problem with this line:

aI("showmenu=menu1;text=menu1;clickfunction=iframename.location.href='menu1.htm';");

iframename= iframe name to load de page
It´s OK.

Thanks
Post Reply