2017-03-07 30 views
-2

我使用此模板:http://www.themenesia.com/themeforest/archi-light/index-onepage.html我想要刪除顯示頁面加載百分比進度的預加載程序進度欄。這個預加載的文件是我無法從網站中刪除此加載程序

裝載機CSS文件 - 萬維網[點] themenesia [點] com/themeforest /阿爾基光/ CSS/jpreloader.css

JS文件 - 萬維網[點] themenesia [點] com /themeforest/archi-light/js/jpreloader.js

頁CSS文件 - 萬維網[點] themenesia [點] com/themeforest /阿爾基光/ CSS/style.css中

我試圖同時刪除並從頁面中刪除css鏈接和腳本。我也從頁面中刪除了這種風格CSS文件55行:

body { 
    display:none; 
} 

但仍然頁面不加載並顯示空白屏幕上。請幫忙!

回答

-2
body { 
    display: block !important; 
} 

將此添加到您的CSS的底部。

UPDATE

designesia.js

// -------------------------------------------------- 
    // preloader 
    // -------------------------------------------------- 

    //calling jPreLoader function with properties 
    jQuery('body').jpreLoader({ 
     splashID: "#jSplash", 
     splashFunction: function() { //passing Splash Screen script to jPreLoader 
      jQuery('#jSplash').children('section').not('.selected').hide(); 
      jQuery('#jSplash').hide().fadeIn(800); 
      init_de(); 
      var timer = setInterval(function() { 
       splashRotator(); 
      }, 1500); 
     } 
    }, function() { //jPreLoader callback function 
     clearInterval(); 

     jQuery(function() { 
      var v_url = document.URL; 

      if (v_url.indexOf('#') != -1) { 
       var v_hash = v_url.substring(v_url.indexOf("#") + 1); 


       jQuery('html, body').animate({ 
        scrollTop: jQuery('#' + v_hash).offset().top - 70 
       }, 200); 
       return false; 
      } 
     }); 


    }); 

    // End of jPreLoader script 
+0

什麼壞主意... – Mistalis

+0

@Mistalis,是的,我知道。快速修復,但讓我以正確的方式修復它。 – Aslam

+0

感謝lott @ hunzaboy,它的工作:) 我加 機構{ display:block!important; } 並從designesia.js中刪除腳本 –

-1

刪除以下行屏幕是空白的,因爲你是藏匿屍體。加載器很可能是用JavaScript編寫的,所以爲了去掉那個javascript和加載器的html。一併刪除此行:

body { 
    display: none; 
} 

然後在主網頁會再次出現,並加載不會。

0

我認爲裝載機有以下ID:#jpreOverlay

嘗試添加:

#jpreOverlay { display: none !important; } 

到你的CSS。

+0

它!重要不重要,但是,你是對的 –

+0

是的,真的,!重要的。原諒我:P :) –

0

添加在你的CSS這樣的:

#jpreOverlay { 
    display: none !important; 
}