Estou criando uma página com o dreanweaver e quero colocar botões que tenham menus ,então estou utilizando o fireworks para fazer os pop menus,é ai q começa a minha dor de cabeça,acho q o evento do javascript q é gerado não funciona e cauza erro.Clicando ni icone do IE na barra de mensagem aparece a seguinte informação:
Pergunta
fraudinha
Estou criando uma página com o dreanweaver e quero colocar botões que tenham menus ,então estou utilizando o fireworks para fazer os pop menus,é ai q começa a minha dor de cabeça,acho q o evento do javascript q é gerado não funciona e cauza erro.Clicando ni icone do IE na barra de mensagem aparece a seguinte informação:
linha:395
caractere:4
erro:argumento invalido
código:0
url:file//c:\temp\frame1.htm
o q isso significa podem me ajudar?
Urgentissimo!!!!!!!!!!!!!!!
abaixo está o código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Elétrica Tempermar</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> <!-- function mmLoadMenus() { if (window.mm_menu_0013210610_0) return; window.mm_menu_0013210610_0_1 = new Menu("Trifásico",155,20,"Verdana, Arial, Helvetica, sans-serif",14,"#cccccc","#000099","#000099","#cccccc","left","middle",3,0,1000,-5,13,false,true,true,0,true,true); mm_menu_0013210610_0_1.addMenuItem("IP55 W21"); mm_menu_0013210610_0_1.addMenuItem("Alto Rendimento"); mm_menu_0013210610_0_1.addMenuItem("Prova de Explosão"); mm_menu_0013210610_0_1.bgImageUp="Botoes/pop/motor/mmmenu1_155x20_up.gif"; mm_menu_0013210610_0_1.bgImageOver="Botoes/pop/motor/mmmenu1_155x20_over.gif"; mm_menu_0013210610_0_1.fontWeight="bold"; mm_menu_0013210610_0_1.hideOnMouseOut=true; mm_menu_0013210610_0_1.bgColor='#555555'; window.mm_menu_0013210610_0 = new Menu("root",155,20,"Verdana, Arial, Helvetica, sans-serif",14,"#cccccc","#000099","#000099","#cccccc","left","middle",3,0,1000,-5,13,false,true,true,0,true,true); mm_menu_0013210610_0.addMenuItem(mm_menu_0013210610_0_1); mm_menu_0013210610_0.bgImageUp="Botoes/pop/motor/mmmenu1_155x20_up.gif"; mm_menu_0013210610_0.bgImageOver="Botoes/pop/motor/mmmenu1_155x20_over.gif"; mm_menu_0013210610_0.fontWeight="bold"; mm_menu_0013210610_0.hideOnMouseOut=true; mm_menu_0013210610_0.childMenuIcon="Botoes/pop/motor/arrows.gif"; mm_menu_0013210610_0.bgColor='#555555'; window.mm_menu_0013092006_0_1 = new Menu("Trifásico",145,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0013092006_0_1.addMenuItem("IP55 W21"); mm_menu_0013092006_0_1.addMenuItem("Alto Rendimento "); mm_menu_0013092006_0_1.addMenuItem("Prova de Explosão"); mm_menu_0013092006_0_1.addMenuItem("Não Acendivel"); mm_menu_0013092006_0_1.addMenuItem("Bombas Monobloco"); mm_menu_0013092006_0_1.addMenuItem("Motofreio"); mm_menu_0013092006_0_1.addMenuItem("Nema 50"); mm_menu_0013092006_0_1.addMenuItem("Dahlander"); mm_menu_0013092006_0_1.addMenuItem("Para Redutores"); mm_menu_0013092006_0_1.bgImageUp="Botoes/pop/motor/mmmenu1_145x16_up.gif"; mm_menu_0013092006_0_1.bgImageOver="Botoes/pop/motor/mmmenu1_145x16_over.gif"; mm_menu_0013092006_0_1.fontWeight="bold"; mm_menu_0013092006_0_1.hideOnMouseOut=true; mm_menu_0013092006_0_1.bgColor='#cccccc'; window.mm_menu_0013092006_0 = new Menu("root",145,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0013092006_0.addMenuItem(mm_menu_0013092006_0_1); mm_menu_0013092006_0.bgImageUp="Botoes/pop/motor/mmmenu1_145x16_up.gif"; mm_menu_0013092006_0.bgImageOver="Botoes/pop/motor/mmmenu1_145x16_over.gif"; mm_menu_0013092006_0.fontWeight="bold"; mm_menu_0013092006_0.hideOnMouseOut=true; mm_menu_0013092006_0.childMenuIcon="Botoes/pop/motor/arrows.gif"; mm_menu_0013092006_0.bgColor='#cccccc'; window.mm_menu_0013084926_0 = new Menu("root",141,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0013084926_0.addMenuItem("Linha F"); mm_menu_0013084926_0.addMenuItem("Linha Master"); mm_menu_0013084926_0.addMenuItem("Anéis Linha F"); mm_menu_0013084926_0.addMenuItem("Motores Síncronos"); mm_menu_0013084926_0.bgImageUp="Botoes/pop/popmaqui/mmmenu1_141x16_up.gif"; mm_menu_0013084926_0.bgImageOver="Botoes/pop/popmaqui/mmmenu1_141x16_over.gif"; mm_menu_0013084926_0.fontWeight="bold"; mm_menu_0013084926_0.hideOnMouseOut=true; mm_menu_0013084926_0.bgColor='#cccccc'; window.mm_menu_0009095608_0_1 = new Menu("Interruptores",244,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009095608_0_1.addMenuItem("Diferenciais"); mm_menu_0009095608_0_1.addMenuItem("Seccionadores"); mm_menu_0009095608_0_1.bgImageUp="Botoes/pop/acionamento/mmmenu1_244x16_up.gif"; mm_menu_0009095608_0_1.bgImageOver="Botoes/pop/acionamento/mmmenu1_244x16_over.gif"; mm_menu_0009095608_0_1.fontWeight="bold"; mm_menu_0009095608_0_1.hideOnMouseOut=true; mm_menu_0009095608_0_1.bgColor='#cccccc'; window.mm_menu_0009095608_0_2 = new Menu("Capacitores",244,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009095608_0_2.addMenuItem("Correção de Fator de Potência"); mm_menu_0009095608_0_2.addMenuItem("Polipropileno"); mm_menu_0009095608_0_2.bgImageUp="Botoes/pop/acionamento/mmmenu1_244x16_up.gif"; mm_menu_0009095608_0_2.bgImageOver="Botoes/pop/acionamento/mmmenu1_244x16_over.gif"; mm_menu_0009095608_0_2.fontWeight="bold"; mm_menu_0009095608_0_2.hideOnMouseOut=true; mm_menu_0009095608_0_2.bgColor='#cccccc'; window.mm_menu_0009095608_0 = new Menu("root",244,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009095608_0.addMenuItem(mm_menu_0009095608_0_1); mm_menu_0009095608_0.addMenuItem(mm_menu_0009095608_0_2); mm_menu_0009095608_0.addMenuItem("Chaves de Partida"); mm_menu_0009095608_0.addMenuItem("Comando e Sinalização"); mm_menu_0009095608_0.addMenuItem("Controladores Auxiliares"); mm_menu_0009095608_0.addMenuItem("Contatores e Relés de Sobrecarga"); mm_menu_0009095608_0.addMenuItem("Disjuntor Para Motores"); mm_menu_0009095608_0.addMenuItem("Disjuntores em Caixa Moldada"); mm_menu_0009095608_0.addMenuItem("Fúsiveis"); mm_menu_0009095608_0.addMenuItem("Manobra e Proteção de Geradores"); mm_menu_0009095608_0.addMenuItem("Minidisjuntores MBW"); mm_menu_0009095608_0.bgImageUp="Botoes/pop/acionamento/mmmenu1_244x16_up.gif"; mm_menu_0009095608_0.bgImageOver="Botoes/pop/acionamento/mmmenu1_244x16_over.gif"; mm_menu_0009095608_0.fontWeight="bold"; mm_menu_0009095608_0.hideOnMouseOut=true; mm_menu_0009095608_0.childMenuIcon="Botoes/pop/motor/arrows.gif"; mm_menu_0009095608_0.bgColor='#cccccc'; window.mm_menu_0009100238_0 = new Menu("root",257,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009100238_0.addMenuItem("Controladores Programaveis"); mm_menu_0009100238_0.addMenuItem("Soft Starters"); mm_menu_0009100238_0.addMenuItem("Inversores de Frequência"); mm_menu_0009100238_0.addMenuItem("Conversores CA/CC"); mm_menu_0009100238_0.addMenuItem("Motor Drive"); mm_menu_0009100238_0.addMenuItem("Servo Motores e Servo Conversores"); mm_menu_0009100238_0.addMenuItem("Tacogeradores"); mm_menu_0009100238_0.bgImageUp="Botoes/pop/automacao/mmmenu1_257x16_up.gif"; mm_menu_0009100238_0.bgImageOver="Botoes/pop/automacao/mmmenu1_257x16_over.gif"; mm_menu_0009100238_0.fontWeight="bold"; mm_menu_0009100238_0.hideOnMouseOut=true; mm_menu_0009100238_0.bgColor='#cccccc'; window.mm_menu_0009100607_0 = new Menu("root",119,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009100607_0.addMenuItem("A Seco"); mm_menu_0009100607_0.addMenuItem("Autoprotegidos"); mm_menu_0009100607_0.addMenuItem("Distribuição"); mm_menu_0009100607_0.addMenuItem("Força"); mm_menu_0009100607_0.addMenuItem("Industriais"); mm_menu_0009100607_0.addMenuItem("Subterraneos"); mm_menu_0009100607_0.bgImageUp="Botoes/pop/transforma/mmmenu1_119x16_up.gif"; mm_menu_0009100607_0.bgImageOver="Botoes/pop/transforma/mmmenu1_119x16_over.gif"; mm_menu_0009100607_0.fontWeight="bold"; mm_menu_0009100607_0.hideOnMouseOut=true; mm_menu_0009100607_0.bgColor='#cccccc'; window.mm_menu_0009101047_0 = new Menu("root",66,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009101047_0.addMenuItem("Abs"); mm_menu_0009101047_0.addMenuItem("Dancor"); mm_menu_0009101047_0.bgImageUp="Botoes/pop/bombas/mmmenu1_66x16_up.gif"; mm_menu_0009101047_0.bgImageOver="Botoes/pop/bombas/mmmenu1_66x16_over.gif"; mm_menu_0009101047_0.fontWeight="bold"; mm_menu_0009101047_0.hideOnMouseOut=true; mm_menu_0009101047_0.bgColor='#cccccc'; window.mm_menu_0009101149_0 = new Menu("root",15,16,"Verdana, Arial, Helvetica, sans-serif",12,"#cccccc","#000099","#000099","#cccccc","left","middle",2,0,1000,-5,11,false,true,true,11,true,true); mm_menu_0009101149_0.bgImageUp="Botoes/pop/fios e cabos/mmmenu1_15x16_up.gif"; mm_menu_0009101149_0.bgImageOver="Botoes/pop/fios e cabos/mmmenu1_15x16_over.gif"; mm_menu_0009101149_0.fontWeight="bold"; mm_menu_0009101149_0.hideOnMouseOut=true; mm_menu_0009101149_0.bgColor='#cccccc'; mm_menu_0009101149_0.writeMenus(); } // mmLoadMenus() function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 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[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); 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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="JavaScript1.2" src="Botoes/pop/motor/mm_menu.js"></script> </head> <body> <table width="101%" height="300" border="0"> <tr> <td width="20%" height="22"><div align="center"><img src="Botoes/botão%20home.gif" width="140" height="18"></div> </td> <td width="27%"><img src="Botoes/noticias.gif" width="200" height="18"></td> <td width="27%"><img src="Botoes/bot%E3o%2024hs.gif" width="200" height="18"></td> <td width="26%"><img src="Botoes/bot%E3o%20fale%20conosco.gif" width="190" height="18"></td> </tr> <tr valign="top"> <td colspan="4"><table width="19%" border="0" cellspacing="2" cellpadding="0"> <tr> <td><div align="center"><img src="Botoes/produtos.gif" width="137" height="25"></div></td> </tr> <tr> <td height="19"><div align="center"> <a href="#" onMouseOut="MM_swapImgRestore();MM_startTimeout()" onMouseOver="MM_showMenu(window.mm_menu_0013092006_0,120,18,null,'motor'); MM_swapImage('motor','','Botoes/pop/motor/motor_f2.gif',1);"> <img name="motor" src="Botoes/pop/motor/motor.gif" width="124" height="23" border="0" alt="Motores"> </a> <script language="JavaScript1.2">mmLoadMenus();</script> </div></td> </tr> <tr> <td><div align="center"> <a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0013084926_0,118,17,null,'motor');"><img name="motor_2" src="Botoes/pop/popmaqui/motor.gif" width="123" height="22" border="0" alt="Máquinas"></a> </div></td> </tr> <tr> <td><div align="center"> <a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0009095608_0,119,18,null,'acionamentos');"><img name="acionamentos" src="Botoes/pop/acionamento/acionamentos.gif" width="124" height="23" border="0" alt="acionamentos"></a> </div></td> </tr> <tr> <td><div align="center"> <a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0009100238_0,119,18,null,'automacao');"><img name="automacao" src="Botoes/pop/automacao/automacao.gif" width="124" height="23" border="0" alt="automação"></a></div></td> </tr> <tr> <td><div align="center"> <a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0009100607_0,119,18,null,'transformadores');"><img name="transformadores" src="Botoes/pop/transforma/transformadores.gif" width="124" height="23" border="0" alt="Transformadores"></a></div></td> </tr> <tr> <td><div align="center"> <a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0009101047_0,119,18,null,'bombas');"><img name="bombas" src="Botoes/pop/bombas/bombas.gif" width="124" height="23" border="0" alt="Bombas"></a></div></td> </tr> <tr> <td><div align="center"> <a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0009101149_0,119,18,null,'fios');"><img name="fios" src="Botoes/pop/fios e cabos/fios.gif" width="124" height="23" border="0" alt="Fios e cabos"></a></div></td> </tr> <tr> <td><div align="center"><img src="Botoes/serviços.gif" width="137" height="28"></div></td> </tr> <tr> <td><div align="center"><img src="Botoes/pop/eng%20campo/eng%20campo.gif" alt="Engenharia de Campo" width="124" height="23"></div></td> </tr> <tr> <td><div align="center"><img src="Botoes/pop/assitencia/assitencia.gif" alt="Assitência Técnica" width="124" height="23"></div></td> </tr> <tr> <td><div align="center"><img src="Botoes/pop/quadros/quadros.gif" alt="Quadros Elétricos" width="124" height="23"></div></td> </tr> </table> <div align="right"></div></td> </tr> </table> </body> </html>Link para o comentário
Compartilhar em outros sites
14 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.