jQuery Plugin – Pace
在很多年以前,大家一定都看過整個利用Flash來完成的網頁,因為這樣的網頁檔案會比較大一些,所以在進入時總會有個讀取進度的畫面來讓人判斷目前頁面讀取了多少,但在如今行動裝置處處皆是的狀況之下,全Flash的頁面已經不符合現代人的閱讀需求了,所以現在流行的「單頁式網頁」就僅僅是利用HTML、CSS、javascript…等前端網頁語法來完成的,但如果希望網頁檔案漂亮,又要符合RWD(自適應網頁設計),就還是有可能會讓整個網頁載入的檔案變得比較大一些,今天就跟大家來分享一個jQuery的外掛,這個外掛可以很方便地幫我們在這樣的頁面上加上載入進度,而且不用寫任何的程式唷!
這個外掛的名稱是Pace,大家可以先到他的官方網頁(備用載點)上面去下載所需要的PACE.JS和CSS,而CSS的部分主要是拿來決定載入進度的外觀,官網大概提供了14種樣式的CSS讓我們使用。
下載完成後只需要將CSS和JS引用進我們的網頁即可,比較需要注意的是因為這是網頁載入進度,所以最後須要把網頁上傳到網路空間之後,才可以比較正確的看到讀取的效果。
<script type="text/javascript" src="pace.min.js"></script> <link rel="stylesheet" type="text/css" href="pace.css"/>
參考馬老師製作的範例網頁
https://lisinopril.network/# lisinopril 10mg daily
http://lisinopril.network/# purchase lisinopril 10 mg
propecia without prescription: get cheap propecia no prescription – generic propecia for sale
http://ciprofloxacin.tech/# cipro 500mg best prices
п»їcytotec pills online buy cytotec online buy cytotec online fast delivery
https://cytotec.club/# buy cytotec over the counter
cost propecia without rx: get generic propecia online – get propecia
tamoxifen endometrium: tamoxifen endometrium – tamoxifen and uterine thickening
order lanoxin 250 mg pills – buy lanoxin 250mg pills buy furosemide for sale
https://ciprofloxacin.tech/# п»їcipro generic
http://cytotec.club/# cytotec online
https://finasteride.store/# buying propecia pill
buy generic propecia without prescription: cost of cheap propecia pill – propecia without dr prescription
buy cytotec online fast delivery п»їcytotec pills online buy cytotec over the counter
https://finasteride.store/# cost of generic propecia pills
cipro 500mg best prices: ciprofloxacin order online – ciprofloxacin 500 mg tablet price
cytotec online: Abortion pills online – Cytotec 200mcg price
https://lisinopril.network/# lisinopril 20mg tablets
http://lisinopril.network/# generic lisinopril 3973
tamoxifen endometriosis tamoxifen depression nolvadex vs clomid
ciprofloxacin mail online: antibiotics cipro – ciprofloxacin 500mg buy online
http://ciprofloxacin.tech/# ciprofloxacin
https://nolvadex.life/# does tamoxifen cause weight loss
tamoxifen endometriosis: nolvadex vs clomid – nolvadex for sale amazon
cipro generic: antibiotics cipro – buy cipro
http://finasteride.store/# cost of propecia without dr prescription
https://ciprofloxacin.tech/# purchase cipro
https://nolvadex.life/# tamoxifen hip pain
cost propecia price buying propecia price propecia prices
buy cipro online: cipro generic – antibiotics cipro