zwei1121

博客园 首页 新随笔 联系 订阅 管理
<div id="abc">ads
</div>
<script language="javascript" type="text/javascript">
    function flashs(id) {
        if (id.style.color == "#ffffff") {
            id.style.color = "red";
        }
        else {
            id.style.color = "#ffffff";
        }
        var func = function(t) { return function() { flashs(t) } } (id);
        window.setTimeout(func, 300);
    }
    flashs(document.getElementById('abc'));
</script>
posted on 2010-03-02 17:57  zwei  阅读(156)  评论(0编辑  收藏  举报