zoukankan      html  css  js  c++  java
  • layload

    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style type="text/css">
    div{margin-bottom: 350px;}
    </style>
    <script src="jquery-1.10.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    $(function () {
        
        $(window).scroll(function () {
            $('img').each(function (i,elem) {
                if ($(elem).offset().top<$(window).height()+$(document).scrollTop()) {
    
                    $(elem).attr('src',$(elem).attr('_src'));
                }
            })
        });
        
    })    
    </script>
    </head>
    <body>
        <div><img _src="img/miaov (5).jpg" alt="" /></div>
        <div><img _src="img/miaov (15).jpg" alt="" /></div>
        <div><img _src="img/miaov (25).jpg" alt="" /></div>
        <div><img _src="img/miaov (35).jpg" alt="" /></div>
        <div><img _src="img/miaov (45).jpg" alt="" /></div>
        <div><img _src="img/miaov (55).jpg" alt="" /></div>
    </body>
    </html>
  • 相关阅读:
    Samba服务器配置
    Showdoc
    wkhtmltoimage(网页剪切功能)
    GTID数据库备份
    awstats日志分析
    docker桥接
    php的opcache缓存扩展(php页面代码刷新速度)
    Pureftp SSL/TLS配置
    ssh-keygen配置
    systemctl使用
  • 原文地址:https://www.cnblogs.com/masita/p/4574069.html
Copyright © 2011-2022 走看看