Submenu in other framedoesn't close while im on the mainmenu

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Baka
Beginner
Beginner
Posts: 4
Joined: Tue Sep 24, 2002 3:39 pm
Contact:

Submenu in other framedoesn't close while im on the mainmenu

Post by Baka »

Hi, first of all, i'm very glad the forum is back!
Well, im having some problems with frames.... look: http://www.1litro.com.br/solai/frames_capa.htm

I have 5 main menu items and just one of them has a sub-menu, which appears on the other frame. The problem is that when im over the main options with the mouse and pass through the option that has the sub-menu, it opens and doesn't close until i click on the other frame and then back.

I tried everything I could, read all FAQ, but the example in the FAQ doesn't use images, just text.

Here is the code i used on the menu:


,"<img src=images/menu_home.gif border=0>","capa.htm target=internas swapimage=images/menu_home_over.gif;",,,1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<img src=images/menu_empresa.gif border=0>","empresa.htm target=internas swapimage=images/menu_empresa_over.gif;",,,1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar" offfunction=undefined;
,"","show-menu=lancamentos sourceframe=internas","lancamentos.htm target=internas backimage=images/menu_lancamentos.gif;overbackimage=images/menu_lancamentos_over.gif;",,1
,"<img src=images/menu_parcerias.gif border=0>","parcerias.htm target=internas swapimage=images/menu_parcerias_over.gif;",,,1
,"<img src=images/menu_fale.gif border=0>","fale.htm target=internas swapimage=images/menu_fale_over.gif;",,,0


Thanks in advance!

Charlie.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Charlie,

Three suggestions:

(1) In menu_navigado.js, you have the 13th element in your "mainmenu" array set to 1. This is the Keep Alive property; you should set it to 0 or leave it blank. This may have an interactive effect on what's happening.

(2) More importantly, you should specify the sourceframe property in each of your main menu items, even though they are not opening a submenu. So, for example,

Code: Select all

,"<img src=images/menu_home.gif border=0>","capa.htm target=internas swapimage=images/menu_home_over.gif;",,,1
should be

Code: Select all

,"<img src=images/menu_home.gif border=0>","capa.htm target=internas;sourceframe=internas;swapimage=images/menu_home_over.gif;",,,1
Note also the use of semicolons (;) between adjacent properties in the URL field.

(3) You should also specify the name of the target frame in the call to show-menu. So

Code: Select all

,"","show-menu=lancamentos sourceframe=internas","lancamentos.htm target=internas backimage=images/menu_lancamentos.gif;overbackimage=images/menu_lancamentos_over.gif;",,1
should be

Code: Select all

,"","show-menu=lancamentos target=internas;sourceframe=internas","lancamentos.htm target=internas backimage=images/menu_lancamentos.gif;overbackimage=images/menu_lancamentos_over.gif;",,1
Hope that helps,

Kevin
Baka
Beginner
Beginner
Posts: 4
Joined: Tue Sep 24, 2002 3:39 pm
Contact:

Post by Baka »

Hehe, there's nothing like the answer from the creator huh! :)

You were right Kevin, the problem was I didn't especify the source frame on the other mainmenu items. Damn, how the hell they were supposed to know there were frames?? : ))))

Well, now it works. Thank you very much... I was almost getting mad with that.

See ya,

Charlie.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Charlie,

Glad it worked! I thought I should point out, however, that I'm not one of the creators of the menu system. Just another user like you.

Cheers,

Kevin
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I thought I should point out, however, that I'm not one of the creators of the menu system. Just another user like you.
Heh - 'creator' sounds almost Biblical...

That's one of the best things about this forum (besides the menu itself). Not only will you get posts from The Crea... - umm, the author (Andy), but from regular users as well. Most everybody is willing to help, something this world could use more of. Better quit before I get started... :?
John
Baka
Beginner
Beginner
Posts: 4
Joined: Tue Sep 24, 2002 3:39 pm
Contact:

Post by Baka »

1) Hey Kevin.... I could sware you were one of the menu AUTHORS! :)
But thanks anyway!

2) Jgillett, sorry by the "CREATOR", my spoken language is portuguese, and in portuguese, "creator" and "author" and "maker" mean the same thing.

I was in a hurry, so I didn't even think about that... but at least you understood what I was trying to say huh? :)

Bye,

Charlie.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

2) Jgillett, sorry by the "CREATOR", my spoken language is portuguese, and in portuguese, "creator" and "author" and "maker" mean the same thing.
I know - should have put a :) on that reply :!:
John
Post Reply