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

15,834 Responses

  1. wow excellent blog for certain i will come again to study new subject matter thanks

  2. i’d love to share this posting with the readers on my site. thanks for sharing!

  3. The evening storm also induced injury in areas of new Jersey, including Seashore Haven, Hammonton, Folsom, Port Republic, and Mullica Township.

  4. New Menhera Coords web page.

  5. SamuelBix表示:

    cipro pharmacy: CiPharmDelivery – buy generic ciprofloxacin

  6. Henrybut表示:

    https://rxguides.net/codes Unlock the latest Roblox codes for exclusive rewards and boosts! Stay updated with fresh codes to enhance your gameplay and level up faster. Don’t miss out on special items and bonuses to get ahead in your favorite Roblox games!

  7. RobertJar表示:

    ciprofloxacin 500mg buy online: buy ciprofloxacin over the counter – buy cipro online canada

  8. KelvinBrutt表示:

    Доставка дизельного топлива https://neftegazlogistic.ru в Москве – оперативно и качественно! Поставляем ДТ для автотранспорта, строительной и спецтехники. Гарантия чистоты топлива, выгодные цены и быстрая доставка прямо на объект.

  9. ThomasPer表示:

    Torlab.net https://torlab.net новый торрент-трекер для поиска и обмена файлами! Здесь вы найдете фильмы, игры, музыку, софт и многое другое. Быстрая скорость загрузки, удобный интерфейс и активное сообщество. Подключайтесь, делитесь, скачивайте — ваш доступ к миру качественного контента!

  10. You will Become profitable On-line in Nigeria in 5 minutes “Guaranteed” on any device related to the internet (cell phone, computer, pill, Ipad).

  11. Way cool! Some very valid points! I appreciate you penning this article and also the rest of the site is also really good.

  12. mini scaffold表示:

    This is a great blog” and i want to visit this every day of the week .   

  13. Alongside Darth Nihilus, he served as considered one of Traya’s apprentices, till finally betraying her and driving her into exile.

  14. SamuelBix表示:

    can you buy clomid without insurance: clomid on pharm – order generic clomid pill

  15. I have been asked by many people to file my version of Angel From Montgomery by John Prine, so that’s also on the agenda.

  16. It has taken me forever to find your blog. Thank goodness. This is just the information I was after.

  17. If there’s a vivid spot, specialists say, it’s that extra young people are pursuing schooling packages other than a 4-12 months diploma.

  18. Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you aided me.

  19. This web page is often a walk-through for all of the info you wanted about this and didn’t know who need to. Glimpse here, and you’ll definitely discover it.

  20. Timothyjeavy表示:

    Геосинтетические материалы https://geobentomat.ru надежное решение для строительства и укрепления грунтов. Геотекстиль, георешетки, геомембраны и другие материалы для дренажа, армирования и защиты конструкций.

  21. Davidrib表示:

    Инженерные изыскания в Москве https://geology-kaluga.ru точные исследования для строительства и проектирования. Геологические, гидрологические, экологические и геодезические работы для строительства.

  22. alloy tower表示:

    you can always tell the quality of USB cables by looking at the thickness of the cable. thicker usb cables have higher quality;;

發佈留言

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