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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver/fireworks menu creation with frames

Status
Not open for further replies.

outra9e

Programmer
Oct 2, 2001
31
GB
Hi guys I wonder if anyone can help me.

I have created a frames page - left, top and main.

I have created a graphic to be used in the left frame for the menu and then edited it in fireworks to apply hotspots to the graphic for menu purposes. this all works fine, but I want the pages to open in the mainframe and not in the left frame which they are doing at the moment.

I have tried using a number of "target" commands but I am having no luck.

As it is Dreamweaver/Fireworks generated code I do not know if I am missing something. I have attached the code, could anyone tell me what I need to change to make the pages open in mainframe.htm?

Cheers guys


Code attached here:

'<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; 'charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>function fwLoadMenus() {
if (window.fw_menu_0) return;
window.fw_menu_0 = new Menu(&quot;root&quot;,85,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_0.addMenuItem(&quot;TEE Careers&quot;,&quot;location='careers.asp'&quot;);
fw_menu_0.bgImageUp=&quot;fwmenu1_85x16_up.gif&quot;;
fw_menu_0.bgImageOver=&quot;fwmenu1_85x16_over.gif&quot;;
fw_menu_0.hideOnMouseOut=true;
window.fw_menu_1 = new Menu(&quot;root&quot;,139,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_1.addMenuItem(&quot;TEL Service Advantage&quot;,&quot;location='TSA.asp'&quot;,&quot;target='child&quot;);
fw_menu_1.bgImageUp=&quot;fwmenu2_139x16_up.gif&quot;;
fw_menu_1.bgImageOver=&quot;fwmenu2_139x16_over.gif&quot;;
fw_menu_1.hideOnMouseOut=true;
window.fw_menu_2 = new Menu(&quot;root&quot;,108,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_2.addMenuItem(&quot;Corporate Vision&quot;,&quot;location='Corporatevision.asp'&quot;);
fw_menu_2.bgImageUp=&quot;fwmenu3_108x16_up.gif&quot;;
fw_menu_2.bgImageOver=&quot;fwmenu3_108x16_over.gif&quot;;
fw_menu_2.hideOnMouseOut=true;
window.fw_menu_3 = new Menu(&quot;root&quot;,174,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_3.addMenuItem(&quot;Environmental Health & Safety&quot;,&quot;location='EHS.asp'&quot;);
fw_menu_3.bgImageUp=&quot;fwmenu4_174x16_up.gif&quot;;
fw_menu_3.bgImageOver=&quot;fwmenu4_174x16_over.gif&quot;;
fw_menu_3.hideOnMouseOut=true;
window.fw_menu_4 = new Menu(&quot;root&quot;,103,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_4.addMenuItem(&quot;Office Locations&quot;,&quot;location='officelocations.asp'&quot;);
fw_menu_4.bgImageUp=&quot;fwmenu5_103x16_up.gif&quot;;
fw_menu_4.bgImageOver=&quot;fwmenu5_103x16_over.gif&quot;;
fw_menu_4.hideOnMouseOut=true;
window.fw_menu_5 = new Menu(&quot;root&quot;,90,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_5.addMenuItem(&quot;view products&quot;,&quot;location='products.asp'&quot;);
fw_menu_5.bgImageUp=&quot;fwmenu6_90x16_up.gif&quot;;
fw_menu_5.bgImageOver=&quot;fwmenu6_90x16_over.gif&quot;;
fw_menu_5.hideOnMouseOut=true;
window.fw_menu_6 = new Menu(&quot;root&quot;,101,16,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,9,&quot;#000000&quot;,&quot;#ffffff&quot;,&quot;#cccccc&quot;,&quot;#000084&quot;);
fw_menu_6.addMenuItem(&quot;TEE Home page&quot;,&quot;location='home.asp'&quot;);
fw_menu_6.hideOnMouseOut=true;

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

//-->
</script>
<script language=&quot;JavaScript1.2&quot; src=&quot;fw_menu.js&quot;></script>
</head>

<body bgcolor=&quot;#006699&quot; text=&quot;#000000&quot; topmargin=&quot;0&quot;>
<script language=&quot;JavaScript1.2&quot;>fwLoadMenus();</script>
<img name=&quot;leftmenu&quot; src=&quot;leftmenu.gif&quot; width=&quot;195&quot; height=&quot;495&quot; border=&quot;0&quot; usemap=&quot;#m_leftmenu&quot;>
<!-- fwtable fwsrc=&quot;leftmenu.png&quot; fwbase=&quot;leftmenu&quot; fwstyle=&quot;Dreamweaver&quot; fwdocid = &quot;742308039&quot; fwnested=&quot;0&quot; -->
<map name=&quot;m_leftmenu&quot;>
<area shape=&quot;rect&quot; coords=&quot;133,427,180,481&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_0,104,426);&quot; >
<area shape=&quot;rect&quot; coords=&quot;23,355,99,438&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_1,7,356);&quot; >
<area shape=&quot;rect&quot; coords=&quot;111,268,173,335&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_2,83,269);&quot; >
<area shape=&quot;rect&quot; coords=&quot;25,173,93,254&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_3,4,174);&quot; >
<area shape=&quot;rect&quot; coords=&quot;137,143,181,196&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_4,87,145);&quot; >
<area shape=&quot;rect&quot; coords=&quot;113,24,169,99&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_5,102,25);&quot; >
<area shape=&quot;rect&quot; coords=&quot;19,13,66,66&quot; href=&quot;#&quot; onMouseOut=&quot;FW_startTimeout();&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_6,21,14);&quot; target=&quot;_child&quot;

>
</map>
</body>
</html>
 
I''m seeing this: target=&quot;_child&quot;
Target should = 'main frame', or whatever the name of the frame you want it to open in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top