换一换js

(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();
      });


})();

 

posted @ 2014-08-12 14:18  唸随爱  阅读(709)  评论(0编辑  收藏  举报