Código HTML:
Ver original<!DOCTYPE html>
ul{
list-style-type: none;
}
.top div{
display:none;
border:1px solid #666;
background-color: #DDD;
margin:20px;
padding:20px;
}
.top-button-current{
padding:5px;
background:#fe0000;
color:#fff;
}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){
$('#tags').click(function(){
$('li').removeClass('top-button-current');
$(this).addClass('top-button-current');
$('.top > div').css('display', 'none');
$('.tags').css('display', 'block');
});
$('#popular').click(function(){
$('li').removeClass('top-button-current');
$(this).addClass('top-button-current');
$('.top > div').css('display', 'none');
$('.posts-populares').css('display', 'block');
});
$('#blog-archives').click(function(){
$('li').removeClass('top-button-current');
$(this).addClass('top-button-current');
$('.top > div').css('display', 'none');
$('.blog-archives').css('display', 'block');
});
});
<li class="top-button-current" id="blog-archives">texto
</li> <li id="popular">texto
</li> <div class="blog-archives">Blog archives
</div> <div class="posts-populares">Posts populares
</div>
ejemplo completo