Jquery hide / FadeIn issue using google chrome

This code works fine in IE8 / 7 and Firefox ... But in Google Chrome I have a problem ...

My page has a menu, when the user clicks on it, hides the blocos div and shows the content (using the url parameter set in the menu)

My Jquery code: $ (document) .ready (function () {$ ('') Div.blocos hide (). $ ('# DIV divMenuBloco') show ();

    $('.clickable').click(function(){
        var _session = $(this).attr('url');             
        $('div.blocos').hide();
        $('div#' + _session).fadeIn('slow');
        return false;
    });
}

      

MENU item: ...

This part works great ... All menu links hide and disappear in the content ...

So I added a Back link inside the content div ...

<div class="clickable" id="divBack" style="float:right;margin-right:25px;cursor:pointer" url="divMenuBloco">Back</div>

      

When the user clicks on this, the "Start" content appears, but it is hidden after ... Only in Google Chrome ... IE8 and Firefox 3.5 work fine ... Any idea?

Edited: HTML code:

<div class="moldura">
    <div class="logo">
    </div>
    <div class="menu">
        <div class="navegacao-principal">
            <div class="clickable" url="div1">
                <img src="Arquivos/Imagens/Estrutura/iconeLocalizacao.png"" />
             </div>
            <div class="clickable" url="div2">
                <img src="Arquivos/Imagens/Estrutura/iconePadrinhos.png" />
            </div>
        </div>

 <div id="divMenuBloco" class="blocos">
    <strong>HOME</strong><br />
    <div class="bloco clickable" url="div3">
       <strong>LINK 3</strong><br /> 
    </div>        
</div>

     <div id="div1" class="blocos">               
         "TESTE 1" 
         <div class="clickable" id="divBack" style="float: right; margin-right: 25px; cursor: pointer" url="divMenuBloco"> Back</div>
....
     </div>                          
 </div>

      

+2


source to share


1 answer


I used "Show" instedOf "Fadein" and worked great in Chrome!



+3


source







All Articles