12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- $(function(){
-
-
- var _line=0;
- $(window).scroll(function(){
-
-
-
-
-
-
-
- $('.list_btn li a').eq(0).addClass('on');
-
- $('.list_r_box .list_cen').each(function(){
-
- var _target=parseInt($(this).offset().top-$(window).scrollTop()-_line);
- var _i=$(this).index();
- if (_target<=0) {
- $('.list_btn li a').removeClass('on');
- $('.list_btn li a').eq(_i).addClass('on');
- }
-
- else if($(document).height()==$(window).scrollTop()+$(window).height()){
- $('.list_btn li a').removeClass('on');
- $('.list_btn li a').eq($('.list_r_box .list_cen').length-1).addClass('on');
- }
- });
- });
- $('.list_btn li').click(function(){
- $(this).find('a').addClass('on').siblings().removeClass('active');
- var _i=$(this).index();
- $('body, html').animate({scrollTop:$('.list_r_box .list_cen').eq(_i).offset().top-_line},500);
- });
-
- PublicAction.AjaxSend(
- {
- CORID:'apply_submit',
- }
- );
-
- })
|