• html 加js 滚动animate


     function TimeControl(){
            $(".message_scroll_box").animate({marginTop:96},800,
                    function(){
                        $(".message_scroll_box").css({marginTop:0});    //把顶部的边界清零
                        $(".message_scroll_box .message_scroll:first").before($(".message_scroll_box .message_scroll:last"));    //在第一个新闻后面插入最后一个新闻
    
                    });
        }
        var T=setInterval(TimeControl,2300);    //开始定时
        $(".message_scroll_box").mouseenter(function(){
            clearInterval(T);    //停止定时
        })
                .mouseleave(function(){
                    T=setInterval(TimeControl,2500);    //再次定时
                })


     <div class="dataAllBorder01 cage_cl" style="margin-top: 1.5% !important; height: 32%; position: relative;">
                        <div class="dataAllBorder02" style="padding: 1.2%; overflow: hidden">
    
                            <div class="message_scroll_box">
                                <div class="message_scroll">
                                <div class="scroll_top">
                                    <span class="scroll_title">数据流量警示</span>
                                    <span class="scroll_level scroll_level01">一级</span>
                                    <a class="localize"></a>
                                    <span class="scroll_timer">17-09-13/9:52</span>
                                </div>
                                <div class="msg_cage">
                                    <a class="localize_title">下载大量视频</a>
                                </div>
                                <div class="msg_cage">
                                    <a class="localize_msg">xxx视频网站</a>
                                </div>
                               </div>
                                <div class="message_scroll">
                                    <div class="scroll_top">
                                        <span class="scroll_title">数据流量警示</span>
                                        <span class="scroll_level scroll_level03">三级</span>
                                        <a class="localize"></a>
                                        <span class="scroll_timer">17-09-13/9:52</span>
                                    </div>
                                    <div class="msg_cage">
                                        <a class="localize_title">下载大量视频</a>
                                    </div>
                                    <div class="msg_cage">
                                        <a class="localize_msg">xxx视频网站</a>
                                    </div>
                                </div>
                                <div class="message_scroll">
                                    <div class="scroll_top">
                                        <span class="scroll_title">数据流量警示</span>
                                        <span class="scroll_level scroll_level02">二级</span>
                                        <a class="localize"></a>
                                        <span class="scroll_timer">17-09-13/9:52</span>
                                    </div>
                                    <div class="msg_cage">
                                        <a class="localize_title">下载大量视频</a>
                                    </div>
                                    <div class="msg_cage">
                                        <a class="localize_msg">xxx视频网站</a>
                                    </div>
                                </div>
                                <div class="message_scroll">
                                    <div class="scroll_top">
                                        <span class="scroll_title">数据流量警示</span>
                                        <span class="scroll_level scroll_level01">一级</span>
                                        <a class="localize"></a>
                                        <span class="scroll_timer">17-09-13/9:52</span>
                                    </div>
                                    <div class="msg_cage">
                                        <a class="localize_title">下载大量视频</a>
                                    </div>
                                    <div class="msg_cage">
                                        <a class="localize_msg">xxx视频网站</a>
                                    </div>
                                </div>
                            </div>
    
                        </div>
                        <div class="scroll_tool_outbox">
                            <div class="scroll_tool_box">
                                <a class="scroll_tool" href="#">查看历史推送</a>
                            </div>
                        </div>
                    </div>
               
  • 相关阅读:
    数组中出现次数超过一半的数字
    Trie字典树算法
    字符串匹配算法 之 基于DFA(确定性有限自动机)
    实现栈最小元素的min函数
    有关有环链表的问题
    浅谈C中的malloc和free
    undefined reference to 'pthread_create'问题解决
    用两个栈实现队列
    resf规范
    单例模式
  • 原文地址:https://www.cnblogs.com/zuochanzi/p/13652855.html
Copyright © 2020-2023  润新知