Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/10/2009, 08:36
MadDunDee
 
Fecha de Ingreso: octubre-2006
Mensajes: 199
Antigüedad: 17 años, 6 meses
Puntos: 3
Respuesta: Funcion JS solo para navs q no sean IE

El script en custion es el siguiente:

<script type="text/javascript">

$(document).ready(function() {

$("ul.galeria li").hover(function() { //On hover...

var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

//Set a background image(thumbOver) on the &lt;a&gt; tag
$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
//Animate the image to 0 opacity (fade it out)
$(this).find("span").stop().animate({opacity: 0}, 300);
} , function() { //on hover out...
//Animate the image back to 100% opacity (fade it back in)
$(this).find("span").stop().animate({opacity: 1}, 300);
});

});

</script>