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

22,075 Responses

  1. Michaeltaisa表示:

    http://amoxil.icu/# amoxicillin order online no prescription

  2. MichaelSom表示:

    cost of generic clomid tablets: where to buy clomid – can you get clomid no prescription

  3. MichaelSom表示:

    cost cheap clomid without prescription: get cheap clomid without rx – how to buy cheap clomid prices

  4. Michaeltaisa表示:

    http://amoxil.icu/# amoxicillin price canada

  5. Antoniobus表示:

    https://ciprofloxacin.life/# ciprofloxacin mail online

  6. Timothyket表示:

    prednisone tabs 20 mg: average cost of generic prednisone – no prescription online prednisone

  7. MichaelSom表示:

    can you buy clomid no prescription: can i order cheap clomid – where buy cheap clomid no prescription

  8. Michaeltaisa表示:

    https://amoxil.icu/# amoxicillin 500 mg for sale

  9. Danielnek表示:

    http://amoxil.icu/# can i buy amoxicillin over the counter in australia

  10. Timothyket表示:

    how can i order prednisone: prednisone without prescription – prednisone 20 mg purchase

  11. Antoniobus表示:

    https://ciprofloxacin.life/# ciprofloxacin over the counter

  12. Timothyket表示:

    prednisone 30: non prescription prednisone 20mg – order prednisone online no prescription

  13. MichaelWence表示:

    can i buy clomid without prescription where buy cheap clomid without dr prescription – how to get clomid pills

  14. MichaelWence表示:

    can i buy generic clomid without a prescription can i get generic clomid without dr prescription – cost of generic clomid tablets

  15. MichaelSom表示:

    can i order generic clomid online: can i buy generic clomid without a prescription – clomid without a prescription

  16. Antoniobus表示:

    http://ciprofloxacin.life/# buy ciprofloxacin

  17. MichaelWence表示:

    where can i buy clomid no prescription cost of generic clomid without dr prescription – can you buy cheap clomid now

  18. Danielnek表示:

    https://amoxil.icu/# medicine amoxicillin 500mg

  19. Danielnek表示:

    http://amoxil.icu/# how to get amoxicillin over the counter

  20. Michaeltaisa表示:

    https://amoxil.icu/# order amoxicillin online no prescription

  21. MichaelWence表示:

    where can i get generic clomid no prescription can you buy generic clomid for sale – where can i get generic clomid without prescription

  22. Antoniobus表示:

    https://ciprofloxacin.life/# buy cipro online canada

  23. Danielnek表示:

    https://amoxil.icu/# order amoxicillin online no prescription

  24. Danielnek表示:

    https://amoxil.icu/# can you buy amoxicillin over the counter

  25. Etklar表示:

    allergy medications prescription list behind the counter allergy medicine best cold medicine without antihistamine

  26. Автор умело структурирует информацию, что помогает сохранить интерес читателя на протяжении всей статьи.

  27. JasonWaync表示:

    buy cipro online without prescription: cipro 500mg best prices – ciprofloxacin 500mg buy online

  28. AndrewRex表示:

    how to buy amoxicillin online: cost of amoxicillin 875 mg – amoxicillin medicine over the counter

  29. WillianSeEmO表示:

    buy amoxicillin 500mg online rexall pharmacy amoxicillin 500mg buy amoxicillin 250mg

  30. Stephenbum表示:

    https://clomid.site/# cost cheap clomid without prescription

發佈留言

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