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...

16,106 Responses

  1. It helps people to live a financially independent and steady life without becoming a parasite on their family.

  2. Usually, used vehicles aren’t sold at fair market value, but many donors try to claim the fair market value for their deduction when they donate a car.

  3. Stephenzek表示:

    http://cytotec.pro/# buy cytotec

  4. Stephenzek表示:

    https://tamoxifen.bid/# what happens when you stop taking tamoxifen

  5. Pretty! This was an extremely wonderful article. Thanks for supplying these details.

  6. I seriously love your website.. Great colors & theme. Did you create this amazing site yourself? Please reply back as I’m looking to create my very own site and would love to know where you got this from or what the theme is called. Kudos!

  7. DanielTet表示:

    cytotec online https://tamoxifen.bid/# who should take tamoxifen
    furosemide 40mg

  8. Stephenzek表示:

    http://cytotec.pro/# buy cytotec over the counter

  9. DanielTet表示:

    buy cytotec https://lipitor.guru/# price canada lipitor 20mg
    lasix 100 mg tablet

  10. Wonderful post! We will be linking to this particularly great content on our website. Keep up the great writing.

  11. Jamesric表示:

    cost of tamoxifen: tamoxifen bone density – tamoxifen citrate

  12. Jamesric表示:

    cytotec online: cheapest cytotec – order cytotec online

  13. Stephenzek表示:

    https://cytotec.pro/# buy cytotec pills

  14. Stanleyinolf表示:

    buy furosemide online lasix 20 mg buy lasix online

  15. DanielTet表示:

    buy cytotec pills online cheap https://cytotec.pro/# purchase cytotec
    furosemida

  16. DanielTet表示:

    buy cytotec over the counter https://lisinopril.guru/# cost of lisinopril 40 mg
    lasix 100 mg

  17. Jamesric表示:

    tamoxifen for gynecomastia reviews: buy tamoxifen online – does tamoxifen cause bone loss

  18. Stephenzek表示:

    https://tamoxifen.bid/# tamoxifen 20 mg

  19. Jamesric表示:

    tamoxifen breast cancer: п»їdcis tamoxifen – tamoxifen for men

  20. After exploring a few of the articles on your blog, I honestly like your way of blogging. I added it to my bookmark site list and will be checking back in the near future. Take a look at my website too and let me know how you feel.

  21. I blog quite often and I genuinely thank you for your information. This article has truly peaked my interest. I am going to take a note of your site and keep checking for new information about once per week. I subscribed to your RSS feed as well.

發佈留言

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