}

miércoles, 22 de junio de 2011

Hacer del título de las entrads un efecto deslizante

Busca la etiqueta </body> y encima añade estos scripts:


<!-- jQuery -->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
$(function(){$('a[href*=#]').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var $target=$(this.hash);$target=$target.length&&$target||$('[name='+this.hash.slice(1)+']');if($target.length){var targetOffset=$target.offset().top;$('html,body').animate({scrollTop:targetOffset},1000);return false}}})});
//]]>
</script>
<!-- Fin JQuery -->

<!-- Efecto links -->
<script type='text/javascript'>
$(document).ready(function() {
$(&#39;#Label1 li, .post-labels, .post h3, #BlogArchive1 li&#39;).hover(function() { //mouse in
$(this).animate({ marginLeft: &#39;12px&#39; }, 400);
}, function() { //mouse out
$(this).animate({ marginLeft: 0 }, 400);
});
});
</script>
<!-- Fin efecto links -->


No hay comentarios: