0

だから私は、ページの読み込み中にこのロードグラフィックを表示するために使用されるこのスクリプトを持っています.

    $(window).load(function() { // makes sure the whole site is loaded
        $("#status").fadeOut(); // will first fade out the loading animation
        $("#preloader").delay(100).fadeOut("fast"); // will fade out the white DIV that covers the website.
    })

これは、ページの読み込み時にすぐに表示されます。ページの終了時にこのショーを表示する方法はありますか? ユーザーにとって、クリックから読み込みまで一貫しているのでしょうか?

4

1 に答える 1

0

を使用しunloadます。

$(window).unload(function() {
        $("#status").fadeOut(); 
        $("#preloader").delay(100).fadeOut("fast"); 
});
于 2013-01-22T03:35:38.963 に答える