25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
884 B

  1. var inSec3Row = $('.inSec3Row');
  2. $(window).load(function() {
  3. //左侧tab切换
  4. $('.inSec1Tab').on('click', '.inSec1TabBox', function() {
  5. var ind = $(this).index();
  6. $(this).addClass('active').siblings().removeClass('active');
  7. $('.indSec1Box .inSec1Box').removeClass('active').eq(ind).addClass('active');
  8. })
  9. //左侧菜单显示隐藏
  10. $('.index_sec1').on('click', '.inSecLeftCon', function() {
  11. var ind = $(this).index();
  12. var parents = $(this).parents('.index_sec1');
  13. parents.addClass('active').find('.inSec1TabBox').removeClass('active').eq(ind).addClass('active').end().end().find('.inSec1Box').removeClass('active').eq(ind).addClass('active');
  14. $('.indexSec3Box').css('paddingLeft', '510px')
  15. }).on('click', '.aLeft', function() {
  16. var parents = $(this).parents('.index_sec1');
  17. parents.removeClass('active');
  18. $('.indexSec3Box').css('paddingLeft', '0')
  19. })
  20. })