Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

another drop down menu problem...with a difference

Status
Not open for further replies.

newtek1

Technical User
Mar 11, 2002
22
AU
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=&quot;Content-Type&quot; content=&quot;text/html;&quot;>
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Tue Jul 30 18:00:59 GMT+0100 (GMT Standard Time) 2002-->
<script language=&quot;JavaScript&quot;>
<!--
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(&quot;?&quot;))>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(&quot;#&quot;)!=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(&quot;root&quot;,80,17,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#000000&quot;,&quot;#cccccc&quot;,&quot;#cccccc&quot;,&quot;#009999&quot;);
fw_menu_0.addMenuItem(&quot;company&quot;,&quot;location='company.htm'&quot;);
fw_menu_0.addMenuItem(&quot;FAQs&quot;,&quot;location='faq.htm'&quot;);
fw_menu_0.addMenuItem(&quot;newsletter&quot;,&quot;location='newsletter.htm'&quot;);
fw_menu_0.hideOnMouseOut=true;
window.fw_menu_1 = new Menu(&quot;root&quot;,70,17,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#000000&quot;,&quot;#cccccc&quot;,&quot;#cccccc&quot;,&quot;#009999&quot;);
fw_menu_1.addMenuItem(&quot;junior&quot;,&quot;location='junior.htm'&quot;);
fw_menu_1.addMenuItem(&quot;senior&quot;,&quot;location='senior.htm'&quot;);
fw_menu_1.addMenuItem(&quot;portfolio&quot;,&quot;location='portfolio.htm'&quot;);
fw_menu_1.hideOnMouseOut=true;
window.fw_menu_2 = new Menu(&quot;root&quot;,60,17,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#000000&quot;,&quot;#cccccc&quot;,&quot;#cccccc&quot;,&quot;#009999&quot;);
fw_menu_2.addMenuItem(&quot;search&quot;,&quot;location='search.htm'&quot;);
fw_menu_2.hideOnMouseOut=true;
window.fw_menu_3 = new Menu(&quot;root&quot;,82,17,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#000000&quot;,&quot;#cccccc&quot;,&quot;#cccccc&quot;,&quot;#009999&quot;);
fw_menu_3.addMenuItem(&quot;comments&quot;,&quot;location='comments.htm'&quot;);
fw_menu_3.hideOnMouseOut=true;
window.fw_menu_4 = new Menu(&quot;root&quot;,140,17,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#000000&quot;,&quot;#cccccc&quot;,&quot;#cccccc&quot;,&quot;#009999&quot;);
fw_menu_4.hideOnMouseOut=true;

fw_menu_4.writeMenus();
} // fwLoadMenus()

//-->
</script>
<script language=&quot;JavaScript1.2&quot; src=&quot;fw_menu.js&quot;></script>
</head>
<body topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; bgcolor=&quot;#009999&quot; onLoad=&quot;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');&quot;>
<script language=&quot;JavaScript1.2&quot;>fwLoadMenus();</script>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;760&quot;>
<!-- fwtable fwsrc=&quot;TOP_FR~1.png&quot; fwbase=&quot;top_frame.gif&quot; fwstyle=&quot;Dreamweaver&quot; fwdocid = &quot;742308039&quot; fwnested=&quot;0&quot; -->
<tr>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;178&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;60&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;62&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;26&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
</tr>

<tr>
<td colspan=&quot;11&quot;><img name=&quot;top_frame_r1_c1&quot; src=&quot;dropdown_pop/top_frame_r1_c1.gif&quot; width=&quot;760&quot; height=&quot;36&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;1&quot; height=&quot;36&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td rowspan=&quot;2&quot;><img name=&quot;top_frame_r2_c1&quot; src=&quot;dropdown_pop/top_frame_r2_c1.gif&quot; width=&quot;178&quot; height=&quot;184&quot; border=&quot;0&quot;></td>
<td><a href=&quot;welcome.htm&quot; target=&quot;mainFrame&quot; onMouseOut=&quot;MM_swapImgRestore();FW_startTimeout();&quot; onMouseOver=&quot;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&quot; ><img name=&quot;top_frame_r2_c2&quot; src=&quot;dropdown_pop/top_frame_r2_c2.gif&quot; width=&quot;62&quot; height=&quot;18&quot; border=&quot;0&quot; alt=&quot;welcome to maggiehollins webdesign website&quot;></a></td>
<td rowspan=&quot;2&quot;><img name=&quot;top_frame_r2_c3&quot; src=&quot;dropdown_pop/top_frame_r2_c3.gif&quot; width=&quot;60&quot; height=&quot;184&quot; border=&quot;0&quot;></td>
<td><a href=&quot;services.htm&quot; target=&quot;mainFrame&quot; onMouseOut=&quot;MM_swapImgRestore();FW_startTimeout();&quot; onMouseOver=&quot;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&quot; ><img name=&quot;top_frame_r2_c4&quot; src=&quot;dropdown_pop/top_frame_r2_c4.gif&quot; width=&quot;62&quot; height=&quot;18&quot; border=&quot;0&quot; alt=&quot;maggiehollins webdesign services&quot;></a></td>
<td rowspan=&quot;2&quot;><img name=&quot;top_frame_r2_c5&quot; src=&quot;dropdown_pop/top_frame_r2_c5.gif&quot; width=&quot;62&quot; height=&quot;184&quot; border=&quot;0&quot;></td>
<td><a href=&quot;sitemap.htm&quot; target=&quot;mainFrame&quot; onMouseOut=&quot;MM_swapImgRestore();FW_startTimeout();&quot; onMouseOver=&quot;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&quot; ><img name=&quot;top_frame_r2_c6&quot; src=&quot;dropdown_pop/top_frame_r2_c6.gif&quot; width=&quot;62&quot; height=&quot;18&quot; border=&quot;0&quot; alt=&quot;sitemap page&quot;></a></td>
<td rowspan=&quot;2&quot;><img name=&quot;top_frame_r2_c7&quot; src=&quot;dropdown_pop/top_frame_r2_c7.gif&quot; width=&quot;62&quot; height=&quot;184&quot; border=&quot;0&quot;></td>
<td><a href=&quot;contact.htm&quot; target=&quot;mainFrame&quot; onMouseOut=&quot;MM_swapImgRestore();FW_startTimeout();&quot; onMouseOver=&quot;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&quot; ><img name=&quot;top_frame_r2_c8&quot; src=&quot;dropdown_pop/top_frame_r2_c8.gif&quot; width=&quot;62&quot; height=&quot;18&quot; border=&quot;0&quot; alt=&quot;contact maggiehollins webdesign &quot;></a></td>
<td rowspan=&quot;2&quot;><img name=&quot;top_frame_r2_c9&quot; src=&quot;dropdown_pop/top_frame_r2_c9.gif&quot; width=&quot;62&quot; height=&quot;184&quot; border=&quot;0&quot;></td>
<td><a href=&quot;index.htm&quot; target=&quot;_parent&quot; onMouseOut=&quot;MM_swapImgRestore();FW_startTimeout();&quot; onMouseOver=&quot;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&quot; ><img name=&quot;top_frame_r2_c10&quot; src=&quot;dropdown_pop/top_frame_r2_c10.gif&quot; width=&quot;62&quot; height=&quot;18&quot; border=&quot;0&quot; alt=&quot;return to the entry page&quot;></a></td>
<td rowspan=&quot;2&quot;><img name=&quot;top_frame_r2_c11&quot; src=&quot;dropdown_pop/top_frame_r2_c11.gif&quot; width=&quot;26&quot; height=&quot;184&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;1&quot; height=&quot;18&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td><img name=&quot;top_frame_r3_c2&quot; src=&quot;dropdown_pop/top_frame_r3_c2.gif&quot; width=&quot;62&quot; height=&quot;166&quot; border=&quot;0&quot;></td>
<td><img name=&quot;top_frame_r3_c4&quot; src=&quot;dropdown_pop/top_frame_r3_c4.gif&quot; width=&quot;62&quot; height=&quot;166&quot; border=&quot;0&quot;></td>
<td><img name=&quot;top_frame_r3_c6&quot; src=&quot;dropdown_pop/top_frame_r3_c6.gif&quot; width=&quot;62&quot; height=&quot;166&quot; border=&quot;0&quot;></td>
<td><img name=&quot;top_frame_r3_c8&quot; src=&quot;dropdown_pop/top_frame_r3_c8.gif&quot; width=&quot;62&quot; height=&quot;166&quot; border=&quot;0&quot;></td>
<td><img name=&quot;top_frame_r3_c10&quot; src=&quot;dropdown_pop/top_frame_r3_c10.gif&quot; width=&quot;62&quot; height=&quot;166&quot; border=&quot;0&quot;></td>
<td><img src=&quot;dropdown_pop/spacer.gif&quot; width=&quot;1&quot; height=&quot;166&quot; border=&quot;0&quot;></td>
</tr>
</table>
</body>
</html>

thankyou
newtek1
 
not possible i think...youll have to put it in the main frame
[afro]
whos that behind you?
 
thankyou
you have given me great advice
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top