主營(yíng): 大幅面數(shù)控雕刻機(jī),數(shù)控雕銑機(jī),數(shù)控切割機(jī)等等。
$(document).ready(function () {
// @文字滾動(dòng)
(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;//滾動(dòng)的高度;
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 });
});
聯(lián)系我們
【鋁道網(wǎng)】第20屆R+TAsia亞洲門窗遮陽展觀眾預(yù)登記正式上線,將繼續(xù)攜手BUILDASIAMega [詳情]
【鋁道網(wǎng)】神鋼集團(tuán)神戶制鋼有限公司旗下子公司,位于中國(guó)天津的工廠--神鋼汽車鋁材( [詳情]
【鋁道網(wǎng)】近日,萬宇科技在有色金屬焊接技術(shù)領(lǐng)域再創(chuàng)新高,正式發(fā)布超大焊深2D臥式重 [詳情]
【鋁道網(wǎng)】近日,安徽省經(jīng)濟(jì)和信息化廳揭曉了2024年度安徽省首臺(tái)套重大技術(shù)裝備認(rèn)定名 [詳情]