为了账号安全,请及时绑定邮箱和手机立即绑定

var JWin = $(window);

jWin.scroll(function()){

  var scrollHeight = jWin.scrollTop();

  var screenHeight = jWin.height();

  var sideHeight = $('#J_BdSide').height();

  if(scrollHeight+screenHeight>sideHeight){

    $('#J_Bdside').css({

      'position':'fixed',

      'top':-(sideHeight-screenHeight),

      'right':0

    })

  }else{

    $('#J_Bdside').css({

      'position':'static'

    })

  }

}

正在回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信