3
我試圖宣傳廣告客戶,當用戶點擊廣告客戶鏈接時,它會在到達廣告客戶的網站之前通過不同鏈接重定向5-6次(用於跟蹤目的)。完全加載鏈接
是否可以在用戶點擊鏈接的頁面上顯示某種加載圖標,然後在鏈接完全加載時將用戶重定向到廣告商的網站?
我搜索,發現這個代碼,但我不知道如何在我的情況下實現這一點:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.js"></script>
//paste this code under the head tag or in a separate js file.
\t // Wait for window load
\t $(window).load(function() {
\t \t // Animate loader off screen
\t \t $(".se-pre-con").fadeOut("slow");;
\t });
.no-js #loader { display: none; }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
\t position: fixed;
\t left: 0px;
\t top: 0px;
\t width: 100%;
\t height: 100%;
\t z-index: 9999;
\t background: url(images/loader-64x/Preloader_2.gif) center no-repeat #fff;
}
<div class="se-pre-con"></div>
向我們展示你的代碼中迄今所做的什麼,究竟要達到 – Zeeshan
一切都是可能的。但問題是你已經做了什麼來實現它? –