溫州龍?zhí)┗び邢薰?/h1> 已認證 天眼查

主營:切削液消泡劑,水處理消泡劑,紡織印染消泡劑,工業(yè)清洗消泡劑,減水劑消泡劑,水泥砂漿消泡劑,石油工業(yè)消泡劑,涂料油墨消泡劑

  • 1
  • 2

供應(yīng)產(chǎn)品分類

精品推薦

$(document).ready(function () { // @文字滾動 (function ($) { $.fn.textSlider = function (settings) { settings = jQuery.extend({ speed: "normal", line: 2, timer: 3000 }, settings); return this.each(function () { $.fn.textSlider.scllor($(this), settings); }); }; $.fn.textSlider.scllor = function ($this, settings) { var ul = $("ul:eq(0)", $this); var timerID; var li = ul.children(); var liHight = $(li[0]).height(); var upHeight = 0 - settings.line * liHight;//滾動的高度; var scrollUp = function () { ul.animate({ marginTop: upHeight }, settings.speed, function () { for (i = 0; i < settings.line; i++) { ul.find("li:first", $this).appendTo(ul); } ul.css({ marginTop: 0 }); }); }; var autoPlay = function () { timerID = window.setInterval(scrollUp, settings.timer); }; var autoStop = function () { window.clearInterval(timerID); }; //事件綁定 ul.hover(autoStop, autoPlay).mouseout(); }; })(jQuery); $("#li_goods_g").textSlider({ line: 1, speed: 500, timer: 3000 }); });

留言咨詢
企業(yè)新聞