汇盛国际注册:jquery插件之文字间歇自动向上滚动

标签:游戏玩法    日期:2018-02-16 23:16    录入:汇盛国际平台    浏览:

  

  
      
  • 01???Ч??д?
  •   
  • 02???Ч??д?
  •   
  • 03???Ч??д?
  •   
  • 04???Ч??д?
  •   
  • 05???Ч??д?
  •   
  • 06???Ч??д?
  •   
  • 07???Ч??д?
  •   
  • 08???Ч??д?
  •   
  • 09???Ч??д?
  •   
  
  /*  * textSlider 0.1  * Dependence jquery-1.7.1.js  */  ;(function($){  $.fn.textSlider=function(options){  var defaults={ //?

  scrollHeight:25,  line:1,  speed:'normal',  timer:2000  };  var opts=$.extend(defaults,options);  this.each(function(){  var timerID;  var obj=$(this);  var $ul=obj.children("ul");  var $height=$ul.find("li").height();  var $Upheight=0-opts.line*$height;  obj.hover(function(){  clearInterval(timerID);  },function(){  timerID=setInterval(moveUp,opts.timer);  });  function moveUp(){  $ul.animate({"margin-top":$Upheight},opts.speed,function(){  for(i=0;i

★★★小编:汇盛国际注册 整理文章,欢迎大家转载 ★★★