[JavaScript] jQuery给页面换肤代码 →→→→→进入此内容的聊天室

来自 , 2020-03-12, 写在 JavaScript, 查看 114 次.
URL http://www.code666.cn/view/30c0a496
  1.  
  2. $(document).ready(function(){
  3.         $('#styleSwitch .button').bind('click', function(){
  4.                 $('body').removeClass();//remove all the other classes
  5.                 $('#styleSwitch .button').removeClass('selected');
  6.                 $(this).addClass('selected');
  7.                 switch(this.id){
  8.                         case 'style1':
  9.                                 $('body').addClass('style1');
  10.                                 break;
  11.                         case 'style2':
  12.                                 $('body').addClass('style2');
  13.                                 break;
  14.                         case 'style3':
  15.                                 $('body').addClass('style3');
  16.                                 break;
  17.                 }
  18.                 return false;
  19.         });
  20. });
  21. //javascript/5124

回复 "jQuery给页面换肤代码"

这儿你可以回复上面这条便签

captcha