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

17,208 Responses

  1. Nintendo anticipated that it could sell two million copies in a month, an expectation that Principal acknowledged was unprecedented however was “based mostly on the off-the-chart reactions we have received from recreation gamers and retailers”.

  2. Furthermore, with the occasion administration company knowing your spending limit for various issues, he can attract on his expertise to offer you affordable choices and choices if need be.

  3. With the right help and treatment, it is possible to overcome clinical depression and dwell a fulfilling life.

  4. Buncombe, Andrew (19 September 2011).

  5. 賃借料表示:

    He with a walking cane, a silk high hat and a plain waistcoat beneath his topcoat.

  6. рейтинг игровых процессоров http://www.topcpu.ru .

  7. 体 痺れ表示:

    There are different tread patterns for various kinds of tires.

  8. Policymakers can, therefore, cut back the unemployment rate briefly, transferring from point A to level B via expansionary policy.

  9. So are elaborate window treatments comparable to tassel-trimmed swags and jabots.

  10. BrettTIT表示:

    get ed prescription online: ed pills for sale – ed prescriptions online

  11. Barrybib表示:

    where to buy erectile dysfunction pills: FastPillsEasy – ed medicines

  12. A journey manager can plan your journey so that you can take the stress away.

  13. “And if you happen to don’t have dollars, how on the earth are you going to buy a house in the event you can’t even assist your loved ones?

  14. Hickey Legislation Firm can assist in case you sustained injuries or trauma while on a cruise.

  15. Eiji Kawashima (川島 永嗣, Kawashima Eiji, born 20 March 1983) is a Japanese professional footballer who performs as a goalkeeper for J1 League club Júbilo Iwata.

  16. Although shades that match the wall covering or another fabric print found within the room can work when correctly designed, contrasting prints reserved just for the shades ensure the window’s function as a focal point of the room.

  17. In search of a forex trading product that allows you to be confident of incomes good dividends from buying and selling programs?

  18. UK, however only for “Academic providers” (class 41) reasonably than “Monetary services” (class 36) under which the try to register “Chartered Monetary Analyst” had been made.

  19. Ford F-150 affords 14,000 lbs maximum towing capacity with excessive strength steel body and aluminum physique.

  20. What’s the correct terminology to use when speaking about RCA VideoDiscs?

  21. BrettTIT表示:

    buy viagra here: Fast Pills For Men – Cheap Sildenafil 100mg

  22. Barrybib表示:

    п»їed pills online: buy erectile dysfunction pills – buy erectile dysfunction pills online

  23. The company manages property throughout a variety of international and UK based mutual funds, investment corporations and institutional mandates, in addition to providing wealth management companies.

  24. сколько стоит сделать загранпаспорт сколько стоит сделать загранпаспорт .

  25. This 5-door wagon was launched in 2016.

  26. срочное изготовление загранпаспорта срочное изготовление загранпаспорта .

  27. BrettTIT表示:

    Buy Tadalafil 10mg: buy cialis online – Buy Tadalafil 20mg

  28. Loading communities in your area.

發佈留言

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