ericgui
V2EX  ›  PHP

能否帮忙看看这个网站用到了哪个轮子?谢谢

  •  
  •   ericgui · Dec 16, 2016 · 2837 views
    This topic created in 3506 days ago, the information mentioned may be changed or developed.
    http://www.zimuzu.tv/
    这个网站往下拉有个“热门话题”,就是不断滚动最新的评论。
    哪位能帮忙看一下这个是用什么做出来的效果?

    我搜到有类似的 js 组件,叫 vTicker http://richhollis.github.io/vticker/
    看着挺好的,准备试试。
    但不知道这个网站用的是不是也是 vTicker 。
    5 replies    2016-12-20 13:14:01 +08:00
    clijiac
        1
    clijiac  
       Dec 17, 2016
    无聊看了下 在这个 js 里面 http://js.rrsub.net/js/global.js?v=20160922

    GLOBAL.JQUERY.Scroll({obj:$('#commentList')});

    ```js
    GLOBAL.JQUERY.Scroll = function(a) {
    var b = {
    obj: {},
    time: 500
    };
    b = $.extend(b, a);
    _obj = b.obj;
    if (_obj.outerHeight() <= _obj.parent().outerHeight()) {
    return
    }
    _obj.wrap("<div></div>");
    _parent = _obj.parent();
    _parent.data("time", b.time);
    b.parent = _parent;
    scroll_create = function() {
    b.parent.css("marginTop", 0).children().eq(1).remove();
    $copy = b.parent.children().first().clone();
    $copy.prependTo(b.parent);
    b.parent.css("marginTop", "-" + $copy.outerHeight() + "px");
    b.order = 1
    }
    ;
    scroll_autoStart = function(c) {
    timer = setInterval(function() {
    _obj = c.children().eq(0);
    _size = _obj.children().size();
    _order = b.order;
    c.animate({
    marginTop: "+=" + _obj.children().eq(_size - _order).outerHeight() + "px"
    }, c.data("time"), function() {
    _order = b.order;
    if (_order == b.parent.children().eq(0).children().size()) {
    scroll_create(b.parent)
    } else {
    b.order = _order + 1
    }
    })
    }, 3000);
    b.parent.data("timer", timer)
    }
    ;
    scroll_autoStop = function(c) {
    clearTimeout(c.data("timer"))
    }
    ;
    _parent.bind("mouseover", function() {
    scroll_autoStop(b.parent)
    }).bind("mouseout", function() {
    scroll_autoStart(b.parent)
    });
    scroll_create(b.parent);
    scroll_autoStart(b.parent)
    }
    ```
    aixiaoge
        2
    aixiaoge  
       Dec 17, 2016
    chrome 有个扩展, BuiltWith Technology Profiler
    Find out what the website you are visiting is built with using this extension.
    ericgui
        3
    ericgui  
    OP
       Dec 17, 2016
    @clijiac 意思说,他们自己写的一个小组件?
    ericgui
        4
    ericgui  
    OP
       Dec 17, 2016
    @aixiaoge 好的,我试试,谢谢
    cevincheung
        5
    cevincheung  
       Dec 20, 2016
    不是最新的吧。永远都是那几个来回轮
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3301 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:05 · PVG 20:05 · LAX 05:05 · JFK 08:05
    ♥ Do have faith in what you're doing.