$(function(){ $(".lanrenzhijia .tab a").mouseover(function(){ $(this).addClass('on').siblings().removeClass('on'); var index = $(this).index(); number = index; $('.lanrenzhijia .content li').hide(); $('.lanrenzhijia .content li:eq('+index+')').show(); }); var auto = 1; //等于1则自动切换,其他任意数字则不自动切换 if(auto ==1){ var number = 0; var maxNumber = $('.lanrenzhijia .tab a').length; function autotab(){ number++; number == maxNumber? number = 0 : number; $('.lanrenzhijia .tab a:eq('+number+')').addClass('on').siblings().removeClass('on'); $('.lanrenzhijia .content ul li:eq('+number+')').show().siblings().hide(); } var tabChange = setInterval(autotab,3000); //鼠标悬停暂停切换 $('.lanrenzhijia').mouseover(function(){ clearInterval(tabChange); }); $('.lanrenzhijia').mouseout(function(){ tabChange = setInterval(autotab,3000); }); } }); Heibei Foreign Studies University
               
                 
 
  Home About HFSU Acdemics Global Campus Life Contact Us  
Ministry of Education of P.R.C. Confucius Institute Headquarters(Hanban) Hebei Education Department State Administration of Foreign Experts Affairs(H.B.) Exit-Entrry Administration Bureau Of ShiJiazhuang
Address: No.29 West Huifeng Road, Shijiazhuang City, Hebei Province

Tel:+86 311 85237002 Fax: +86 311 85233797

Email: intercom002@hbwy.com.cn