jQuery Plugin – Pace

在很多年以前,大家一定都看過整個利用Flash來完成的網頁,因為這樣的網頁檔案會比較大一些,所以在進入時總會有個讀取進度的畫面來讓人判斷目前頁面讀取了多少,但在如今行動裝置處處皆是的狀況之下,全Flash的頁面已經不符合現代人的閱讀需求了,所以現在流行的「單頁式網頁」就僅僅是利用HTML、CSS、javascript…等前端網頁語法來完成的,但如果希望網頁檔案漂亮,又要符合RWD(自適應網頁設計),就還是有可能會讓整個網頁載入的檔案變得比較大一些,今天就跟大家來分享一個jQuery的外掛,這個外掛可以很方便地幫我們在這樣的頁面上加上載入進度,而且不用寫任何的程式唷!

pace 官網截圖
pace 官網截圖

這個外掛的名稱是Pace,大家可以先到他的官方網頁備用載點)上面去下載所需要的PACE.JS和CSS,而CSS的部分主要是拿來決定載入進度的外觀,官網大概提供了14種樣式的CSS讓我們使用。

pace 官網下載說明圖
pace 官網下載說明圖

下載完成後只需要將CSS和JS引用進我們的網頁即可,比較需要注意的是因為這是網頁載入進度,所以最後須要把網頁上傳到網路空間之後,才可以比較正確的看到讀取的效果。

<script type="text/javascript" src="pace.min.js"></script>
<link rel="stylesheet" type="text/css" href="pace.css"/>

參考馬老師製作的範例網頁

You may also like...

14,036 Responses

  1. Darrelherse表示:

    casino slot siteleri: slot siteleri 2024 – slot oyun siteleri

  2. You made some first rate factors there. I regarded on the web for the problem and located most people will go together with with your website.

  3. This plot doesn’t reveal itself; it has to be explained.

  4. Darrelherse表示:

    slot bahis siteleri: oyun siteleri slot – yasal slot siteleri

  5. KevinSounc表示:

    http://sweetbonanza.network/# guncel sweet bonanza

  6. Way cool! Some extremely valid points! I appreciate you penning this write-up and also the rest of the website is very good.

  7. This web site definitely has all the information I wanted about this subject and didn’t know who to ask.

  8. Автор старается быть нейтральным, предоставляя читателям возможность самих оценить представленные доводы.

  9. KevinSounc表示:

    https://slotsiteleri.bid/# en iyi slot siteleri

  10. Darrelherse表示:

    slot oyunlar? siteleri: deneme bonusu veren siteler – guvenilir slot siteleri 2024

  11. In many cases, you are looking for growth investments and those are ownership-type investments.

  12. Under a UBI scheme, every single American adult would receive a check – $500 or even $1,000 a month – with absolutely no strings attached.

  13. There are inherent risks in doing so, but in many cases, the business ventures usually go into long term relationships with such agencies.

  14. Are there conveniences you’re willing to give up for services that would fit your needs better?

  15. Not like the ECU, the euro is an actual foreign money, although not all member states participate (for particulars on euro membership see Eurozone).

  16. Close all positions before the end of the day, even if you expect a favorable course of your assets.

  17. Unable to win broad help, it concentrated on taking control of labor unions and labor parties, such as the American Labor Occasion in New York.

  18. Darrelherse表示:

    casino slot siteleri: deneme veren slot siteleri – en cok kazandiran slot siteleri

  19. The denominator of the ratio of labour productivity, the input measure is the most important factor that influences the measure of labour productivity.

  20. The most important thing to look for is whether an equity release UK plan has been approved by the Safe Home Income Plans or SHIP, which is a necessity.

  21. If the world economy is going to revive, the Firm believes commodities are going to lead it back up.

  22. If you are on the lookout for a property, consider these factors before going out hunting for land for sale, because they could have a significant impact on the price you are willing to pay.

  23. If that is for an adopted pet, typically the victim is expected to pay some fee reminiscent of insurance, food or transport.

  24. The Pontiac brand was started in 1926 by General Motors and soon became a favorite with automobile shoppers.

  25. Industrial estates have been redesigned and prolonged in order that corporations have been able to increase and new firms have, in consequence, chosen Weeze as a house base.

  26. if this post was likened to a flavor of yogurt, what flavor would it be? Banana, I think.

  27. Hello! I merely would wish to offer a huge thumbs up for the excellent information you might have here with this post. We are returning to your website for more soon.

  28. KevinSounc表示:

    http://denemebonusuverensiteler.win/# deneme bonusu veren siteler

  29. Darrelherse表示:

    slot siteleri: slot siteleri – slot oyunlar? siteleri

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。