0

我在页面的页脚中添加了这个脚本,一旦页面加载,它将闪烁页面通常为黑色的背景:

<script>
$(document).ready(function() {
        function highlight_background(){
            if(document.getElementById('content')) {
                //fading background:
                $('#content').css({backgroundColor:"#081108"});
                $('#content').animate({backgroundColor: "black"}, 2000);
            }
         }
         highlight_background();
)}
</script>

这在黑色背景上看起来很棒,就像在我的空间在线游戏中一样。

但现在我计划在我的一个有白色背景的客户的严肃应用程序中为用户实施反馈。那里看起来太好玩了。

知道如何在页面加载后管理不显眼的反馈吗?

4

1 回答 1

0

而是闪烁粉红色的屏幕:

<script>
$(document).ready(function() {
    function highlight_background(){
        if(document.getElementById('content')) {
            //fading background:
            $('#content').css({backgroundColor:"#081108"});
            $('#content').animate({backgroundColor: "pink"}, 2000);
        }
     }
     highlight_background();
)}
</script>
于 2013-10-25T07:50:35.677 回答