sanntanna Postado Julho 7, 2008 Denunciar Share Postado Julho 7, 2008 (editado) Valeu Editado Julho 24, 2008 por sanntanna Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 fercosmig Postado Julho 7, 2008 Denunciar Share Postado Julho 7, 2008 posta seu código ae Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 sanntanna Postado Julho 7, 2008 Autor Denunciar Share Postado Julho 7, 2008 (editado) segue todo o codigo<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Tecmov</title><style type="text/css">@import url("css/style_accordion.css");body { background-color: #FFFFFF; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}</style><script type="text/javascript" src="js/mootools.svn.84.HACKED.js"></script><script language="javascript">///////////////////////////////////////////////////////////// START OF CHRIS ESLER FUNCTIONS/////////////////////////////////////////////////////////////// QUICK TOGGLE FUNCTION// objClass is the target flag className//function toggleDisplay(objClass){ $S('.'+objClass).each(function(el){ if (el.className.indexOf("Hide") != -1) el.className = el.className.replace("Hide","Show"); else el.className = el.className.replace("Show","Hide"); });}///////////////////////////////////////////////////////////// SETUP KEYPRESS CONTROL VARS//var control = false;var nextKey = false;///////////////////////////////////////////////////////////// DETERMINE WHICH KEYPRESS FUNCTIONS TO // USE BY BROWSER TYPE//if (!/MSIE (5\.5|6|7\.)/.test(navigator.userAgent)) { ///////////////////////////////////////////////////////////// MOZILLA-STYLE PROPAGATE DOWN EVENT ARCHITECTURE//// Much better than IE's. Actually captures key combo's// and doesn't affect other key combo's function detectspecialkeys(e){ var evtobj= e var keyCode = e.which; if (evtobj.ctrlKey){ toggleAccordion(keyCode); } } document.onkeypress=detectspecialkeys;}else{/////////////////////////////////////////////////////////////// MICROSOFT-STYLE BUBBLE UP EVENT ARCHITECTURE//// retarded IE requires this funky capture system// checks if control key pressed, then marks true// then captures next key, then marks it true// if control key true and next key true, then it does// conditional statement document.onkeydown = function () { var keyCode=event.keyCode // if its control key, mark it true // and reset nextKey if(keyCode == 17){ control = true; nextKey = false; // if control is true, then flag nextKey }else{ nextKey = true; } // if both control and next key, then do our conditional statements if (control && nextKey) { if(keyCode == 49 || keyCode == 50 || keyCode == 51 || keyCode == 52 || keyCode == 53){ //alert ('control key pressed + '+keyCode); toggleAccordion(keyCode); } // reset control vars control = false; nextKey = false; // this is here last, so it nullifies IE beviours for these buttons // otherwise we don't want it to nullify other bbuttons such as Control-P (for print), etc if(keyCode == 49 || keyCode == 50 || keyCode == 51 || keyCode == 52 || keyCode == 53){ return false; } } else { return true; } }///////////////////////////////////////////////////////////}///////////////////////////////////////////////////////////// SETUP ACCORDION ASSOCIATIVE ARRAY// maps key presses to the accordion toggle// 49 = number 1 key, 50 = number 2 key, and so on//var accArray = [0, 1, 2, 3, 4]; var keyArray = [49, 50, 51, 52, 53]; var newAccArray = accArray.associate(keyArray);var currentArrow = 0;///////////////////////////////////////////////////////////// FUNCTION TO TOGGLE ACCORDION BASED ON KEYPRESS COMBO// control key + number 1 key opens accordion[0]//function toggleAccordion(obj) { // check if the 1-5 keys are pressed in conjunction with the control key if(obj == 49 || obj == 50 || obj == 51 || obj == 52 || obj == 53) { // get the associated accordion to the key pressed var newAccObj = newAccArray[obj]; // grab our accordion object var newArrow = $('arrow'+newAccArray[obj]); // set the new current Arrow currentArrow = newAccArray[obj]; // toggle the accordion //myAccordion.showThisHideOpen(newAccArray[obj]); myAccordion.showThisHideOpen(newAccArray[obj]); }}///////////////////////////////////////////////////////////// FUNCTIONS TO TOGGLE THE PILL IMAGE AND SET CURRENT TOGGLE//// change pill to ONfunction toggleAccordionImageShow(el) { // grab our pill image var obj = el.getLast().getFirst(); // get our arrow id / accordion id var newArrowId = obj.id.replace(/arrow/g,''); // set current Arrow currentArrow = newArrowId; // set the new source if(!obj.src.test('Lite')){ obj.setProperty('src',obj.src.replace(/.gif/g,'Lite.gif')); }}// change pill to offfunction toggleAccordionImageHide(el) { // grab our pill image var obj = el.getLast().getFirst(); // set the new source obj.setProperty('src',obj.src.replace(/Lite/g,''));}///////////////////////////////////////////////////////////// ACCORDION VARS SETUP// var myAccordion;var myStretch;var myStretcher;///////////////////////////////////////////////////////////// WINDOW ONLOAD STUFF - onDomReady from Moottools//Window.onDomReady(function() { // get accordion elements myStretch = document.getElementsByClassName('toggler'); myStretcher = document.getElementsByClassName('accordion'); // setup the accordion elements by clearing display styles myStretcher.each(function(el){ el.style.display = ''; }); // Create the accordion myAccordion = new fx.Accordion(myStretch, myStretcher, { /*fixedHeight: 125,*/ opacity : true, openClose : true, onActive : function(el){toggleAccordionImageShow(el)}, onBackground : function(el){toggleAccordionImageHide(el)}, itemsOpen : [], /* itemsOpen : [0,1,2], start : 'first-open' */ }); ///////////////////////////////////////////////////////// // // SETUP THE TOOLTIPS // // tooltip array var as = []; // grab all images that are supposed to have a tooltip $S('img.hasTooltip').each(function(a){ if (a.getAttribute('title')) as.push(a); }); // create tooltip instance new Tips(as, {maxOpacity: 0.9, maxTitleChars: 300}); });//---></script><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-278350-1";urchinTracker();</script><script src="/mint/?js" type="text/javascript"></script><script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script></head><body><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1000','height','163','src','flash/menu','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/menu' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="163"> <param name="movie" value="flash/menu.swf" /> <param name="quality" value="high" /> <embed src="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="163"></embed> </object></noscript></td> </tr> <tr> <td valign="top" background="img/back.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="715" valign="top"><table width="715" border="0" cellpadding="0" cellspacing="19"> <tr> <td valign="top"><table width="715" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="715" height="33" valign="top" background="img/curva_branca.png"> </td> </tr> <tr> <td height="450" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="left" cellpadding="8" cellspacing="5" > <tr> <td align="left" valign="top"><table width="685" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="3"><img src="produtos/titulo_podutos.jpg" alt="Fale conosco" width="680" height="30" /></td> </tr> <tr> <td width="200" valign="top"><img src="produtos/btn_rodas.jpg" alt="Contato" width="200" height="20" /></td> <td width="200" valign="top"><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','200','height','20','src','produtos/btn_paleteiras','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','produtos/btn_paleteiras' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="200" height="20"> <param name="movie" value="produtos/btn_paleteiras.swf" /> <param name="quality" value="high" /> <embed src="produtos/btn_paleteiras.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="20"></embed> </object></noscript></td> <td width="280" valign="top"><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','200','height','20','src','produtos/btn_carrinhos','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','produtos/btn_carrinhos' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="200" height="20"> <param name="movie" value="produtos/btn_carrinhos.swf" /> <param name="quality" value="high" /> <embed src="produtos/btn_carrinhos.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="20"></embed> </object></noscript></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="300%" border="0" cellspacing="10" cellpadding="5"> <tr> <td><div class="wrap"> <div class="toggler" onmouseover="this.className = 'togglerHover';" onmouseout="this.className = 'toggler';"> <div><img src="images/marcador_inv.jpg" width="1" height="1" /> <span>Industriais</span></div> </div> <div class="accordion"> <div> <div> <div align="left"> <table width="100%" border="0" cellspacing="2" cellpadding="4"> <tr> <td width="90"> </td> <td width="153" bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_L10.html">Série L-10</a></td> <td width="280" bgcolor="#EBEBEB"><a href="rodas_ind_s_L10.html" class="style5"></a></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 80 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_L12.html">Série L-12<br /> </a></td> <td width="280" bgcolor="#EBEBEB"><a href="rodas_ind_s_L12-14.html" class="style5"></a></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 170 kg<br /></td> </tr> <tr> <td> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_L14.html">Série L-14</a></td> <td width="280" bgcolor="#EBEBEB"> </td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 300 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_PCX.html">Série PCX</a></td> <td width="280" bgcolor="#EBEBEB" class="style5">Pneumático Axial</td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 300 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_S14.html">Série S14</a></td> <td width="280" bgcolor="#EBEBEB"><span class="style5">Export</span></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 400 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_PMX.html">Série PMX</a></td> <td width="280" bgcolor="#EBEBEB"><span class="style5">Pneumacico Axial</span></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 500 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_EXTREMES.html">Série Extremes</a></td> <td width="280" bgcolor="#EBEBEB"><span class="style5">Inox</span></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 700 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_S2.html">Série S2</a></td> <td width="280" bgcolor="#EBEBEB"><span class="style5">Export</span></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 700 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_M.html">Série M</a></td> <td width="280" bgcolor="#EBEBEB"><span class="style5">Médio Estampado</span></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 700 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_MX.html">Série MX</a></td> <td width="280" bgcolor="#EBEBEB"><span class="style5">Médio Axial</span></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5">até 900 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_CMX.html">Série CMX</a></td> <td bgcolor="#EBEBEB"><span class="style5">Mola Anti-choque Médio axial</span></td> <td align="right" bgcolor="#EBEBEB" class="style5">até 1200 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_PMX.html">Série PMX</a></td> <td bgcolor="#EBEBEB"><span class="style5">Meio Pesado Axial</span></td> <td align="right" bgcolor="#EBEBEB" class="style5">até 1400 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_PX.html">Série PX</a></td> <td bgcolor="#EBEBEB"><span class="style5">Super Pesado Axial</span></td> <td align="right" bgcolor="#EBEBEB" class="style5">até 1400 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_CPX.html">Série CPX</a></td> <td bgcolor="#EBEBEB"><span class="style5">Mola Anti-choque Pesado axial</span></td> <td align="right" bgcolor="#EBEBEB" class="style5">até 2000 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_PEX.html">Série PEX</a></td> <td bgcolor="#EBEBEB"><span class="style5">Extra Pesado Axial</span></td> <td align="right" bgcolor="#EBEBEB" class="style5">até 2800 kg</td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodas_ind_s_DE-DERX.html">Série DE / DERX</a></td> <td bgcolor="#EBEBEB"><span class="style5">Dolly Extra Axial</span></td> <td align="right" bgcolor="#EBEBEB" class="style5">até 6000 kg</td> </tr> </table> </div> </div> <div class="bottomMargin"> </div> </div> </div> <div class="toggler" onmouseover="this.className = 'togglerHover';" onmouseout="this.className = 'toggler';"> <div><img src="images/marcador_inv.jpg" width="1" height="1" /> <span>Móveis</span> </div> </div> <div class="accordion"> <div> <div> <table width="100%" border="0" cellspacing="2" cellpadding="4"> <tr> <td width="90"> </td> <td width="152" bgcolor="#EBEBEB" class="style10"><a href="rodizios_mov_classic.html">Classic</a></td> <td width="280" bgcolor="#EBEBEB"><a href="rodas_ind_s_L10.html" class="style5"></a></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5"> </td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodizios_mov_color_gel.html">Color Gel </a></td> <td width="280" bgcolor="#EBEBEB"><a href="rodas_ind_s_L12-14.html" class="style5"></a></td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5"> </td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodizios_mov_disney.html">Disney</a></td> <td width="280" bgcolor="#EBEBEB" class="style5"> </td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5"> </td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodizios_mov_evidence.html">Evidence</a></td> <td width="280" bgcolor="#EBEBEB"> </td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5"> </td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodizios_mov_mobile.html">Mobile</a></td> <td width="280" bgcolor="#EBEBEB"> </td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5"> </td> </tr> <tr> <td width="90"> </td> <td bgcolor="#EBEBEB" class="style10"><a href="rodizios_mov_squadroni.html">Squadroni</a></td> <td width="280" bgcolor="#EBEBEB"> </td> <td width="78" align="right" bgcolor="#EBEBEB" class="style5"> </td> </tr> </table> </div> <div class="bottomMargin"> </div> </div> </div> </div></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="30" cellpadding="0"> <tr> <td align="center"><img src="img/banner_dir.jpg" width="187" height="269" /></td> </tr> <tr> <td valign="top"><img src="img/banner_bit.png" width="188" height="113" /></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="img/rodape.jpg" width="1000" height="110" /></td> </tr> <tr> <td align="right"><a href="http://www.len.com.br/" target="_blank" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-decoration:none; color:#666666; font-size:10px;">LEN COMUNICAÇÃO & BRANDING ©</a></td> </tr> </table></td> </tr> </table></td> </tr></table></body></html>[/codebox]alguém? Editado Julho 7, 2008 por fercosmig Adicionar tag CODE Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 fercosmig Postado Julho 10, 2008 Denunciar Share Postado Julho 10, 2008 no ie apresentou erro nesta linha:AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0', 'width', '200', 'height', '20', 'src', 'produtos/btn_carrinhos', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'movie', 'produtos/btn_carrinhos' );erro: "objeto esperado"dá uma olhada para ver se não está utilizando algum objeto que ainda não foi criado. Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
sanntanna
Valeu
Editado por sanntannaLink para o comentário
Compartilhar em outros sites
3 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.