开发者

Blink an div with jquery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜