Ciao a tutti,
sto impazzendo dietro ad uno stupido script jquery.
Ho un div con un'immagine, ho bisogno che al passaggio del mouse
appaia del testo. Poi, quando toglierò il mouse dovrà tornare l'immagine.
Potete vedere tutto qui: http://www.publifutura.it/index2.htm
Come si può notare pare funzionare. Se però si passa velocemente il mouse il testo appare sotto l'immagine e ci rimane..
Vi posto il css e lo script jQuery:
Il css della classe text che è impostato inizialmente a none:codice:$('#wrap').mouseenter( function(){ $('#wrap .image').fadeOut(500, function(){ $('#wrap1 .text').css('display', 'inline'); $('#wrap .text').fadeIn(500); }); } ); $('#wrap').mouseleave( function(){ $('#wrap .text').fadeOut(500, function(){ $('#wrap1 .text').css('display', 'none'); $('#wrap .image').fadeIn(500); }); } );
Perchè fa così??codice:.text{ display: none; }![]()