上下滚动公告

上下滚动公告,参考滑动

公告:

    
  • 11111111115
var gg=$('#gg ul').html(); gg+=gg; var ggUL=parseInt($('#gg ul li').length)*parseInt($('#gg ul li').height()); console.log(ggUL) $('#gg ul').html(gg); $('#gg ul').css('height',ggUL); var twoGGUL='-'+(ggUL/2); setInterval(function(){ var thisUL=parseInt($('#gg ul').css('top')); //获取当前top var ulTop=thisUL-parseInt($('#gg ul li').height()); if(thisUL

你可能感兴趣的:(jq,滑动)