i am using a drop down menu in the top frame of my frameset. When i check it in the ie browser the visible buttons open in the mainframe where i want it to open but.... the drop down menu buttons open in the topframe.please what can i change to make the drop down buttons open in the mainframe? please help...
here is my code
<html>
<head>
<title>top_frame.gif</title>
<meta http-equiv="Content-Type" content="text/html;">
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Tue Jul 30 18:00:59 GMT+0100 (GMT Standard Time) 2002-->
<script language="JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v3.0
status=msgStr; document.MM_returnValue = true;
}
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"
)>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#"
!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function fwLoadMenus() {
if (window.fw_menu_0) return;
window.fw_menu_0 = new Menu("root",80,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
;
fw_menu_0.addMenuItem("company","location='company.htm'"
;
fw_menu_0.addMenuItem("FAQs","location='faq.htm'"
;
fw_menu_0.addMenuItem("newsletter","location='newsletter.htm'"
;
fw_menu_0.hideOnMouseOut=true;
window.fw_menu_1 = new Menu("root",70,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
;
fw_menu_1.addMenuItem("junior","location='junior.htm'"
;
fw_menu_1.addMenuItem("senior","location='senior.htm'"
;
fw_menu_1.addMenuItem("portfolio","location='portfolio.htm'"
;
fw_menu_1.hideOnMouseOut=true;
window.fw_menu_2 = new Menu("root",60,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
;
fw_menu_2.addMenuItem("search","location='search.htm'"
;
fw_menu_2.hideOnMouseOut=true;
window.fw_menu_3 = new Menu("root",82,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
;
fw_menu_3.addMenuItem("comments","location='comments.htm'"
;
fw_menu_3.hideOnMouseOut=true;
window.fw_menu_4 = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
;
fw_menu_4.hideOnMouseOut=true;
fw_menu_4.writeMenus();
} // fwLoadMenus()
//-->
</script>
<script language="JavaScript1.2" src="fw_menu.js"></script>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#009999" onLoad="MM_preloadImages('dropdown_pop/top_frame_r2_c2_f2.gif','dropdown_pop/top_frame_r2_c4_f2.gif','dropdown_pop/top_frame_r2_c6_f2.gif','dropdown_pop/top_frame_r2_c8_f2.gif','dropdown_pop/top_frame_r2_c10_f2.gif');">
<script language="JavaScript1.2">fwLoadMenus();</script>
<table border="0" cellpadding="0" cellspacing="0" width="760">
<!-- fwtable fwsrc="TOP_FR~1.png" fwbase="top_frame.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="dropdown_pop/spacer.gif" width="178" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="60" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="26" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="11"><img name="top_frame_r1_c1" src="dropdown_pop/top_frame_r1_c1.gif" width="760" height="36" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="36" border="0"></td>
</tr>
<tr>
<td rowspan="2"><img name="top_frame_r2_c1" src="dropdown_pop/top_frame_r2_c1.gif" width="178" height="184" border="0"></td>
<td><a href="welcome.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('greetings');window.FW_showMenu(window.fw_menu_0,166,62);MM_swapImage('top_frame_r2_c2','','dropdown_pop/top_frame_r2_c2_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c2" src="dropdown_pop/top_frame_r2_c2.gif" width="62" height="18" border="0" alt="welcome to maggiehollins webdesign website"></a></td>
<td rowspan="2"><img name="top_frame_r2_c3" src="dropdown_pop/top_frame_r2_c3.gif" width="60" height="184" border="0"></td>
<td><a href="services.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('services available');window.FW_showMenu(window.fw_menu_1,296,62);MM_swapImage('top_frame_r2_c4','','dropdown_pop/top_frame_r2_c4_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c4" src="dropdown_pop/top_frame_r2_c4.gif" width="62" height="18" border="0" alt="maggiehollins webdesign services"></a></td>
<td rowspan="2"><img name="top_frame_r2_c5" src="dropdown_pop/top_frame_r2_c5.gif" width="62" height="184" border="0"></td>
<td><a href="sitemap.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('sitemap');window.FW_showMenu(window.fw_menu_2,424,62);MM_swapImage('top_frame_r2_c6','','dropdown_pop/top_frame_r2_c6_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c6" src="dropdown_pop/top_frame_r2_c6.gif" width="62" height="18" border="0" alt="sitemap page"></a></td>
<td rowspan="2"><img name="top_frame_r2_c7" src="dropdown_pop/top_frame_r2_c7.gif" width="62" height="184" border="0"></td>
<td><a href="contact.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('contact ');window.FW_showMenu(window.fw_menu_3,536,62);MM_swapImage('top_frame_r2_c8','','dropdown_pop/top_frame_r2_c8_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c8" src="dropdown_pop/top_frame_r2_c8.gif" width="62" height="18" border="0" alt="contact maggiehollins webdesign "></a></td>
<td rowspan="2"><img name="top_frame_r2_c9" src="dropdown_pop/top_frame_r2_c9.gif" width="62" height="184" border="0"></td>
<td><a href="index.htm" target="_parent" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('home');window.FW_showMenu(window.fw_menu_4,772,46);MM_swapImage('top_frame_r2_c10','','dropdown_pop/top_frame_r2_c10_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c10" src="dropdown_pop/top_frame_r2_c10.gif" width="62" height="18" border="0" alt="return to the entry page"></a></td>
<td rowspan="2"><img name="top_frame_r2_c11" src="dropdown_pop/top_frame_r2_c11.gif" width="26" height="184" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="18" border="0"></td>
</tr>
<tr>
<td><img name="top_frame_r3_c2" src="dropdown_pop/top_frame_r3_c2.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c4" src="dropdown_pop/top_frame_r3_c4.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c6" src="dropdown_pop/top_frame_r3_c6.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c8" src="dropdown_pop/top_frame_r3_c8.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c10" src="dropdown_pop/top_frame_r3_c10.gif" width="62" height="166" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="166" border="0"></td>
</tr>
</table>
</body>
</html>
thankyou
newtek1
here is my code
<html>
<head>
<title>top_frame.gif</title>
<meta http-equiv="Content-Type" content="text/html;">
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Tue Jul 30 18:00:59 GMT+0100 (GMT Standard Time) 2002-->
<script language="JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v3.0
status=msgStr; document.MM_returnValue = true;
}
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#"
}
function fwLoadMenus() {
if (window.fw_menu_0) return;
window.fw_menu_0 = new Menu("root",80,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
fw_menu_0.addMenuItem("company","location='company.htm'"
fw_menu_0.addMenuItem("FAQs","location='faq.htm'"
fw_menu_0.addMenuItem("newsletter","location='newsletter.htm'"
fw_menu_0.hideOnMouseOut=true;
window.fw_menu_1 = new Menu("root",70,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
fw_menu_1.addMenuItem("junior","location='junior.htm'"
fw_menu_1.addMenuItem("senior","location='senior.htm'"
fw_menu_1.addMenuItem("portfolio","location='portfolio.htm'"
fw_menu_1.hideOnMouseOut=true;
window.fw_menu_2 = new Menu("root",60,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
fw_menu_2.addMenuItem("search","location='search.htm'"
fw_menu_2.hideOnMouseOut=true;
window.fw_menu_3 = new Menu("root",82,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
fw_menu_3.addMenuItem("comments","location='comments.htm'"
fw_menu_3.hideOnMouseOut=true;
window.fw_menu_4 = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#cccccc","#cccccc","#009999"
fw_menu_4.hideOnMouseOut=true;
fw_menu_4.writeMenus();
} // fwLoadMenus()
//-->
</script>
<script language="JavaScript1.2" src="fw_menu.js"></script>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#009999" onLoad="MM_preloadImages('dropdown_pop/top_frame_r2_c2_f2.gif','dropdown_pop/top_frame_r2_c4_f2.gif','dropdown_pop/top_frame_r2_c6_f2.gif','dropdown_pop/top_frame_r2_c8_f2.gif','dropdown_pop/top_frame_r2_c10_f2.gif');">
<script language="JavaScript1.2">fwLoadMenus();</script>
<table border="0" cellpadding="0" cellspacing="0" width="760">
<!-- fwtable fwsrc="TOP_FR~1.png" fwbase="top_frame.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="dropdown_pop/spacer.gif" width="178" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="60" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="62" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="26" height="1" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="11"><img name="top_frame_r1_c1" src="dropdown_pop/top_frame_r1_c1.gif" width="760" height="36" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="36" border="0"></td>
</tr>
<tr>
<td rowspan="2"><img name="top_frame_r2_c1" src="dropdown_pop/top_frame_r2_c1.gif" width="178" height="184" border="0"></td>
<td><a href="welcome.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('greetings');window.FW_showMenu(window.fw_menu_0,166,62);MM_swapImage('top_frame_r2_c2','','dropdown_pop/top_frame_r2_c2_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c2" src="dropdown_pop/top_frame_r2_c2.gif" width="62" height="18" border="0" alt="welcome to maggiehollins webdesign website"></a></td>
<td rowspan="2"><img name="top_frame_r2_c3" src="dropdown_pop/top_frame_r2_c3.gif" width="60" height="184" border="0"></td>
<td><a href="services.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('services available');window.FW_showMenu(window.fw_menu_1,296,62);MM_swapImage('top_frame_r2_c4','','dropdown_pop/top_frame_r2_c4_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c4" src="dropdown_pop/top_frame_r2_c4.gif" width="62" height="18" border="0" alt="maggiehollins webdesign services"></a></td>
<td rowspan="2"><img name="top_frame_r2_c5" src="dropdown_pop/top_frame_r2_c5.gif" width="62" height="184" border="0"></td>
<td><a href="sitemap.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('sitemap');window.FW_showMenu(window.fw_menu_2,424,62);MM_swapImage('top_frame_r2_c6','','dropdown_pop/top_frame_r2_c6_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c6" src="dropdown_pop/top_frame_r2_c6.gif" width="62" height="18" border="0" alt="sitemap page"></a></td>
<td rowspan="2"><img name="top_frame_r2_c7" src="dropdown_pop/top_frame_r2_c7.gif" width="62" height="184" border="0"></td>
<td><a href="contact.htm" target="mainFrame" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('contact ');window.FW_showMenu(window.fw_menu_3,536,62);MM_swapImage('top_frame_r2_c8','','dropdown_pop/top_frame_r2_c8_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c8" src="dropdown_pop/top_frame_r2_c8.gif" width="62" height="18" border="0" alt="contact maggiehollins webdesign "></a></td>
<td rowspan="2"><img name="top_frame_r2_c9" src="dropdown_pop/top_frame_r2_c9.gif" width="62" height="184" border="0"></td>
<td><a href="index.htm" target="_parent" onMouseOut="MM_swapImgRestore();FW_startTimeout();" onMouseOver="MM_displayStatusMsg('home');window.FW_showMenu(window.fw_menu_4,772,46);MM_swapImage('top_frame_r2_c10','','dropdown_pop/top_frame_r2_c10_f2.gif',1);return document.MM_returnValue" ><img name="top_frame_r2_c10" src="dropdown_pop/top_frame_r2_c10.gif" width="62" height="18" border="0" alt="return to the entry page"></a></td>
<td rowspan="2"><img name="top_frame_r2_c11" src="dropdown_pop/top_frame_r2_c11.gif" width="26" height="184" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="18" border="0"></td>
</tr>
<tr>
<td><img name="top_frame_r3_c2" src="dropdown_pop/top_frame_r3_c2.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c4" src="dropdown_pop/top_frame_r3_c4.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c6" src="dropdown_pop/top_frame_r3_c6.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c8" src="dropdown_pop/top_frame_r3_c8.gif" width="62" height="166" border="0"></td>
<td><img name="top_frame_r3_c10" src="dropdown_pop/top_frame_r3_c10.gif" width="62" height="166" border="0"></td>
<td><img src="dropdown_pop/spacer.gif" width="1" height="166" border="0"></td>
</tr>
</table>
</body>
</html>
thankyou
newtek1