Read more: http://nsxcrew.blogspot.com/2011/05/membuat-scroll-back-to-topskip-to.html#ixzz1bg47Gg1D

Monday, October 24, 2011

bad

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js'
type='text/javascript' />
<link href='http://bloggerblogwidgets.googlecode.com/svn/trunk/auto-hide-social-bookmarking-way2blogging.css'
rel='stylesheet' type='text/css' />
<script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery('.sexy-bookmarks a.external').attr("target", "_blank");
        var sexyBaseHeight = jQuery('.sexy-bookmarks').height();
        var sexyFullHeight = jQuery('.sexy-bookmarks ul.socials').height();
        if (sexyFullHeight > sexyBaseHeight) {
            jQuery('.sexy-bookmarks-expand').hover(

            function() {
                jQuery(this).animate({
                    height: sexyFullHeight + 15 + 'px'
                }, {
                    duration: 800,
                    queue: false
                });
            }, function() {
                jQuery(this).animate({
                    height: sexyBaseHeight + 'px'
                }, {
                    duration: 800,
                    queue: false
                });
            });
        }
        if (jQuery('.sexy-bookmarks-center')) {
            var sexyFullWidth = jQuery('.sexy-bookmarks').width();
            var sexyBookmarkWidth = jQuery('.sexy-bookmarks:first ul.socials li').width();
            var sexyBookmarkCount = jQuery('.sexy-bookmarks:first ul.socials li').length;
            var numPerRow = Math.floor(sexyFullWidth / sexyBookmarkWidth);
            var sexyRowWidth = Math.min(numPerRow, sexyBookmarkCount) * sexyBookmarkWidth;
            var sexyLeftMargin = (sexyFullWidth - sexyRowWidth) / 2;
            jQuery('.sexy-bookmarks-center').css('margin-left', sexyLeftMargin + 'px');
        }
    });
</script>
Read more: http://nsxcrew.blogspot.com/2011/05/membuat-scroll-back-to-topskip-to.html#ixzz1bg4XFsbl