PopUp Menu opening into an Inline Frame, how?

A

Applebrown

I'd like my javascript popup menu link to target the inline frame in the
middle of my page, but I'm unsure how to do this. The inline frame is named
"mainframe". Here is the code, with the line to the link denoted with **:

if (window.mm_menu_0127203047_0) return;
window.mm_menu_0127203047_0 = new Menu("root",140,18,"Tahoma, Arial,
Helvetica,
sans-serif",10,"#ffffff","#ffffff","#ffffff","#243f6f","left","middle",3,0,5
00,-5,7,true,true,true,0,false,true);

**
mm_menu_0127203047_0.addMenuItem(":: Level Design Screens","l
ocation='leveldesignscreens.html'");

mm_menu_0127203047_0.bgImageUp="images/mmmenu1_140x18_up.gif";
mm_menu_0127203047_0.bgImageOver="images/mmmenu1_140x18_over.gif";
mm_menu_0127203047_0.hideOnMouseOut=true;
mm_menu_0127203047_0.bgColor='#555555';


Any help with this is much appreciated!

Thanks,
Tyson
 
@

@SM

Applebrown a ecrit :
I'd like my javascript popup menu link to target the inline frame in the
middle of my page, but I'm unsure how to do this. The inline frame is named
"mainframe". Here is the code, with the line to the link denoted with **:

usualy it's used target="mainframe"
here your MacroMedia program has made something not simple in javascript :-(

you search in the mm code : location="blahblah
and replace it by : parent.mainframe.location="blahblah

certainly there is an option somewhere in the MacroMedia menus to do that
**
mm_menu_0127203047_0.addMenuItem(":: Level Design Screens",
"location='leveldesignscreens.html'");
^^^^^^^^^ here
"parent.mainframe.location='

if this code is in a separate popup from main window
try to change it to
"opener.mainframe.location='
or ?
"opener.document.mainframe.location='


--
******** (enlever/remove [OTER_MOI] du/from reply url) *******
Stéphane MORIAUX : mailto:[email protected]
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephane.moriaux/internet/
**************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top