(function(){
  var tit = $("#changes"),
      con = $("#wday>ul"),
      page = con.length,
        index = 0;
      tit.click(function(){
            if(index < page){
                index++;
            }else{
                index = 0;
            }
          con.eq(index).show().siblings().hide();
      });
})();
原文:http://www.cnblogs.com/www561cn/p/3907824.html