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

20,046 Responses

  1. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем:ремонт бытовой техники в мск
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  2. Stevenkated表示:

    https://alo789.auction/# dang nh?p alo789

  3. Rubengax表示:

    k8 bet k8 bet k8 bet

  4. Curtismence表示:

    http://88betviet.pro/# 188bet 88bet

  5. Alternatives to land investing and property funds embody stocks, bonds, commodities, hedge funds, treasured metals (gold, silver), forestry merchandise, energy (fossil fuels and renewables), and rarities resembling artwork and antiques.

  6. Автор предоставляет разнообразные источники для более глубокого изучения темы.

  7. Josephsip表示:

    alo789hk: dang nh?p alo789 – dang nh?p alo789

  8. The other crew will then think of another track that options a number of the phrases in the present tune.

  9. Josephsip表示:

    alo 789: alo789 chinh th?c – alo789in

  10. 854083 381468Id ought to verify with you here. Which isnt something I often do! I enjoy studying a publish that can make individuals feel. Also, thanks for permitting me to remark! 254561

  11. Hi! This post couldn’t be written any better! Reading this post reminds me of my good old room mate! He always kept talking about this. I will forward this write-up to him. Fairly certain he will have a good read. Many thanks for sharing!

  12. Curtismence表示:

    https://alo789.auction/# alo789 dang nh?p

  13. Henry Vincent Mulligan. For companies to the Housing Affiliation movement in Scotland.

  14. Your style is unique compared to other folks I have read stuff from. Thank you for posting when you’ve got the opportunity, Guess I’ll just book mark this web site.

  15. Автор предлагает читателю разные взгляды на проблему, что способствует формированию собственного мнения.

  16. Or you can spend a day cooking and packaging meals for the coming week.

  17. Josephsip表示:

    k8vip: k8 – nha cai k8

  18. Josephsip表示:

    alo789 dang nh?p: 789alo – alo789in

  19. Rubengax表示:

    keo nha cai 88bet 88bet slot nha cai 88bet

  20. There’s certainly a great deal to learn about this topic. I like all of the points you’ve made.

  21. The hub is Amazon’s principal transport hub and was constructed on 1,129 acres (457 ha) of land at the airport with a 3,000,000 sq ft (280,000 m2) sorting facility and parking positions for over a hundred aircraft.

  22. Curtismence表示:

    http://88betviet.pro/# 88bet slot

  23. Josephsip表示:

    alo789hk: alo 789 – alo789 dang nh?p

  24. Josephsip表示:

    k8vip: k8vip – k8 bet

  25. Good blog! I truly love how it is simple on my eyes and the data are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your RSS which must do the trick! Have a nice day!

  26. Тут можно преобрести сейфы москва сейфы

發佈留言

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