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

  1. CurtisBam表示:

    indian pharmacy: Indian pharmacy that ships to usa – Best online Indian pharmacy

  2. Abigail Adams referred to Chews’ daughters as part of a “constellation of beauties” in Philadelphia.

  3. VITA — Volunteers in Technical Assistance: US-based mostly private, nonprofit, worldwide development group, labored for forty two years helping to empower the poor and fostering self-sufficiency in creating nations.

  4. Brandonnot表示:

    pharmacies in mexico that ship to usa: mexican rx online – mexican rx online

  5. CurtisBam表示:

    medicine in mexico pharmacies: Mexican Easy Pharm – best online pharmacies in mexico

  6. The more traditional version of the triple option uses a quarterback below middle and is advocated by the service academy coaches, including Fisher DeBerry, previously of Air Pressure, and Paul Johnson, formerly head coach of Navy and Georgia Tech (who put in this offense at Hawai’i and Georgia Southern, the latter college successful a number of Division I Soccer Championship Subdivision titles using it).

  7. Born in Uttarpara, West Bengal, Kotal started taking part in soccer on the age of 4 after being impressed by his uncle, who was also a footballer.

  8. Brandonnot表示:

    medicine in mexico pharmacies: medicine in mexico pharmacies – buying prescription drugs in mexico

  9. Jorgewooff表示:

    Mexican Easy Pharm: Mexican Easy Pharm – mexican online pharmacies prescription drugs

  10. Mrs Johnson died in a Spokane nursing dwelling May 25.

  11. Higher R-values will usually mean you will have to pay more for the windows, so curtains could also be a inexpensive manner of raising your R-value.

  12. CurtisBam表示:

    purple pharmacy mexico price list: buying prescription drugs in mexico – Mexican Easy Pharm

  13. When the second child was born I’d carry down his bottle and snacks so he could eat strong foods that helped his teething while we performed.

  14. Additionally downtown are the Artistic Discovery Museum, a arms-on youngsters’s museum dedicated to science, artwork, and music; an IMAX 3D Theatre, and the newly expanded Hunter Museum of American Art.

  15. Chief Petty Officer Cook (S) Henry George Barnett, D/Mx.50792.

  16. However, in the event of a slow market or slow remodeling turnaround the disregard of finding the best mortgage can be expensive to your profiting efforts.

  17. Vallejo, Jody Agius (December 2010).

  18. Brandonnot表示:

    online shopping pharmacy india: Indian Cert Pharm – Online medicine

  19. 33win表示:

    33win – Trang giải trí hàng đầu với nhiều trò chơi hấp dẫn, trải nghiệm ngay tại 33win để tận hưởng!

  20. CurtisBam表示:

    Best online Indian pharmacy: Indian pharmacy that ships to usa – Online medicine

  21. kypit 1s_hwor表示:

    1с бухгалтерия купить 1с бухгалтерия купить .

  22. AndreDib表示:

    northern pharmacy canada https://mexicaneasypharm.com/# Mexican Easy Pharm
    cheapest online pharmacy india

  23. kypit 1s_ajor表示:

    программы фирмы 1с программы фирмы 1с .

  24. kypit 1s_cfEn表示:

    купить 1с бухгалтерия купить купить 1с бухгалтерия купить .

  25. Nonetheless, Nihilus was later drawn out and tricked into launching an assault on Telos, believing it to comprise the last Jedi.

  26. The trick of purchase low and sell high is an efficient strategy to generate income but this may take a very long time acquire.

  27. kypit 1s_exEn表示:

    купить программу 1с бухгалтерия https://www.svarog.forum24.ru/?1-0-0-00000330-000-0-0 .

  28. It is tempting to jump into the action, but you are taking a big risk, what if you do not understand stocks, and how to operate the stock exchange.

發佈留言

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