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,262 Responses

  1. WilliamNop表示:

    buy generic 100mg viagra online: order viagra – Generic 100mg Easy

  2. Dwayneseisa表示:

    buy generic 100mg viagra online Generic 100mg Easy Generic 100mg Easy

  3. This is a great tip particularly to those fresh to the blogosphere. Short but very precise info… Many thanks for sharing this one. A must read article!

  4. Dwayneseisa表示:

    Generic100mgEasy buy generic 100mg viagra online Buy generic 100mg Viagra online

  5. TerryDus表示:

    http://tadalafileasybuy.com/# TadalafilEasyBuy.com

  6. Kennethslity表示:

    https://tadalafileasybuy.com/# Tadalafil Easy Buy

  7. sex表示:

    Buy Drugs

  8. Kennethslity表示:

    http://generic100mgeasy.com/# Generic100mgEasy

  9. Статья предлагает глубокий анализ темы и рассматривает ее со всех сторон.

  10. GregoryJough表示:

    Generic100mgEasy: buy generic 100mg viagra online – Generic 100mg Easy

  11. porn表示:

    Pornstar

  12. WilliamNop表示:

    Generic 100mg Easy: Cheap Sildenafil 100mg – buy Viagra over the counter

  13. TerryDus表示:

    https://tadalafileasybuy.shop/# Tadalafil Easy Buy

  14. Kennethslity表示:

    https://kamagrakopen.pro/# kamagra 100mg kopen

  15. vfhmpqpdz表示:

    The top real money online casinos available in the US are BetMGM Casino, DraftKings Casino, FanDuel Casino and Caesars Palace Casino. These platforms allow for several withdrawal methods, including debit cards, PayPal, ACH transfers and more. Real Money Casinos offer authentic online gambling, and that’s why they need licensing to operate in legal states. You can trust that these five online casinos will pay you real money: BetMGM Online Casino, FanDuel Online Casino, BetRivers Online Casino, DraftKings Online Casino, and PointsBet Online Casino. Yes. Real money online casinos are protected by highly advanced security features to ensure that the players’ financial and personal data is kept safe. The secure online casinos that we recommend have a solid reputation for ensuring their customer data is secure. The real cash slot machines and gaming tables are also audited by external regulated security companies to ensure their integrity.
    https://runcithero.my/jetx-position-wager-money-from-the-internet-casino/
    Even without the numerous no deposit or welcome bonuses and player promos offered at the leading NetEnt casino sites, the range of themes, exclusive features and the high RTPs and jackpots are bound to make players rather happy with their choice of providers. NetEnt’s iconic games, including Starburst and Book of Dead, are yours to play for free. Our daily-updated list of NetEnt no deposit bonuses ensures you never miss the latest offers for this premier software provider. Bonus codes play the role of keys to unlock specific bonuses from an online casino. For NetEnt casinos, they let you play specific games with bonus credits or free spins: Players can get informed regarding the games where they can make use of the extra cash or spins credited straight to their new player account. Considering the relatively regular releases from NetEnt, as well as the popularity of their established game products, most offers at NetEnt casinos center around this portion of their game selection.

  16. EverettMibra表示:

    анализ на наркотики купить https://analiz-kupit-spb.ru/

  17. Kennethslity表示:

    http://generic100mgeasy.com/# Sildenafil Citrate Tablets 100mg

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

  19. porn表示:

    Buy Drugs

  20. Dwayneseisa表示:

    Generic100mgEasy Generic100mgEasy Generic 100mg Easy

  21. GregoryJough表示:

    cheap viagra: Generic 100mg Easy – Generic 100mg Easy

  22. GregoryJough表示:

    KamagraKopen.pro: kamagra jelly kopen – Kamagra Kopen Online

  23. KennethElact表示:

    Печать рекламных буклетов https://tipografiya-buklety.ru ярко, качественно, профессионально. Форматы A4, евро, индивидуальные размеры. Работаем с частными и корпоративными заказами.

  24. Dwayneseisa表示:

    kamagra kopen nederland Kamagra Kopen Online kamagra pillen kopen

  25. Fortunately for investors on this side of the Atlantic, the troubles in Europe will make tax free municipal bonds a more valuable and profitable investment.

發佈留言

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