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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:34

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


Poster: Baka
Dated: Thursday February 6 2003 - 16:23:15 GMT

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.


Poster: kevin3442
Dated: Thursday February 6 2003 - 18:17:09 GMT

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:
,"<img src=images/menu_home.gif border=0>","capa.htm target=internas swapimage=images/menu_home_over.gif;",,,1

should be
Code:
,"<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:
,"","show-menu=lancamentos sourceframe=internas","lancamentos.htm target=internas backimage=images/menu_lancamentos.gif;overbackimage=images/menu_lancamentos_over.gif;",,1

should be
Code:
,"","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


Poster: Baka
Dated: Thursday February 6 2003 - 18:27:22 GMT

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.


Poster: kevin3442
Dated: Thursday February 6 2003 - 19:16:22 GMT

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


Poster: John
Dated: Monday February 10 2003 - 14:06:48 GMT

Quote:
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... :?


Poster: Baka
Dated: Monday February 10 2003 - 16:06:49 GMT

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.


Poster: John
Dated: Monday February 10 2003 - 16:16:16 GMT

Quote:
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 :!: