Learn how to use jQuery at the Blog

We Follow « visit

  • Added 9 months ago
  • 28 Lines of Code shown
  • 0 Links of Interest
http://wefollow.com
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to We Follow - http://wefollow.com

var WeFollow = {
    init: function() {
        WeFollow.bindButtons();

        $('#go').click(function() {
            var location = '/tag/' + $('#goto')[0].value;
            window.location = location;
            return false;
        });
    },
    unBindButtons: function() {
        $('.a-info').unbind().click(function() {
            return false;
        });
    },
    bindButtons: function() {
        $('.a-info').click(function() {
            WeFollow.unBindButtons();
            $('.more-info:not(#info-' + this.id + ')').hide('fast');
            $('#info-' + this.id).toggle('fast', WeFollow.bindButtons);
            return false;
        });
    }
};

$(document).ready(function() {
    WeFollow.init();
});