CSS代碼: javascript代碼
: 在主題目錄header.php中,增補以下代碼,彩色欢乐斗地主残局破解大全困难放在body標簽下(最後一行) //進度條加載顯示$(window).scroll(function() { var a = $(window).scrollTop(), c = $(document).height(), b = $(window).height(); scrollPercent = a / (c - b) * 100; scrollPercent = scrollPercent.toFixed(1); $("#percentageCounter").css({ width: scrollPercent + "%" });}).trigger("scroll");
//進度條加載顯示$(window).scroll(function() { var a = $(window).scrollTop(), c = $(document).height(), b = $(window).height(); scrollPercent = a / (c - b) * 100; scrollPercent = scrollPercent.toFixed(1); $("#percentageCounter").css({ width: scrollPercent + "%" });}).trigger("scroll");