setInterOut的应用

Posted Hello_World!!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了setInterOut的应用相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <style type="text/css">
        body{
            background: url("images/sina.jpg")no-repeat center 0;
            text-align: center;
        }
        img{
            display: none;
        }
    </style>
    <title></title>
    <script>
        window.onload=function(){
            var miaov=document.getElementById(‘miaov‘);
            setTimeout(function(){
                miaov.style.display=‘inline-block‘;
                setTimeout(function(){
                    miaov.style.display=‘none‘;
                },8000);
            },2000);
        };
    </script>
</head>
<body>
    <img id="miaov" src="images/miaov.jpg">
</body>
</html>

  

以上是关于setInterOut的应用的主要内容,如果未能解决你的问题,请参考以下文章