zoukankan      html  css  js  c++  java
  • iframe loading 效果

    <!DOCTYPE HTML>
    <html lang="zh-cn">
    <head>
    <meta charset="utf-8" />
    <meta name="keywords" content="" />
    <meta name="description"  content="" />
    <title>iframe  loading 效果</title>
    <link rel="stylesheet"  href=" " type="text/css"/>
    <script type="text/javascript" src=""></script>
    </head>
    <body>
    <iframe src="http://www.cnblogs.com/yansen/" frameborder="0" marginheight="0" marginwidth="0"
            scrolling="auto" width="100%" id="alarmframe" onreadystatechange="stateChangeIE(this)"
            style="display: none" onload="stateChangeFirefox(this)" ></iframe>
        <div id="LoadDiv" align="center">
            <img src="ajax-loader.gif" />
        </div>
        <script type="text/javascript">
            function stateChangeIE(_frame) {
                if (_frame.readyState == "complete")//state: loading, interactive, complete
                {
                    var loader = document.getElementById("LoadDiv");
                    //loader.innerHTML = "加载中";
                    loader.style.display = "none";
                    _frame.style.visibility = "visible";
                    _frame.style.display = "block"
                }
            }
            function stateChangeFirefox(_frame) {
                var loader = document.getElementById("LoadDiv");
                //loader.innerHTML = "加载中";
                loader.style.display = "none";
                _frame.style.visibility = "visible";
                _frame.style.display = "block"
            }
        </script>
    </body>
    </html>

  • 相关阅读:
    我与ARM的那些事儿1初识ARM
    WP的万能小应用时钟表
    单片机的模拟智能灌溉系统
    android的计算器
    C语言经典面试题目(转的,不过写的的确好!)
    数据库sqlite3在linux中的使用
    认识域模型
    认识JMS
    认识JDOM
    认识RMI
  • 原文地址:https://www.cnblogs.com/yansen/p/2387845.html
Copyright © 2011-2022 走看看