开发者

Blink an div with jquery

开发者 https://www.devze.com 2023-01-22 23:11 出处:网络
How can i blin开发者_开发知识库k a div. I have a hover on the div element. How can i make with jQuery. That the div is blink up andblink down. And then on the 10 seconds.

How can i blin开发者_开发知识库k a div. I have a hover on the div element. How can i make with jQuery. That the div is blink up and blink down. And then on the 10 seconds.

Thanks


Is something like this what you are looking for? This code will make the div appear and disappear every 10 seconds:

<script type="text/javascript">
    var blink = function(){
        $('#blinker').toggle();
    };
    $(document).ready(function() {
        setInterval(blink, 10000);
    });
</script>

<div id="blinker">This will blink</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号