Zblogphp uses infinite scroll to implement the page drop-down loading function
<script src="{$host}zb_system/script/common.js" type="text/javascript"></script> <script src="{$host}zb_users/theme/{$theme}/script/jquery.infinitescroll.js" type="text/javascript"></script>
<div class="navigation"> {if $pagebar} {foreach $pagebar.buttons as $k=>$v} {if $pagebar.PageNow==$k} <span class="page now-page">{$k}</span> {elseif $pagebar.PageNow+1==$k} <span class="next page"><a href="{$v}">Next</a></span> {else} <a href="{$v}"><span class="page">{$k}</span></a> {/if} {/foreach} {/if} </div>
<script> $(document).ready(function (){ $("# divMain"). initescroll ({//divMain is the ID of the large container NavSelector: ". navigation",//The navigation selector will be hidden NextSelector: ". next-page a",//The selector containing the link to the next page ItemSelector: ". post",//The option you are going to retrieve (content block) Debug: true,//Enable debugging information LoadingImg: "/img/loading. gif",//The image displayed when loading //Default:“ http://www.infinite-scroll.com/loading.gif " LoadingText: "I am loading for force...",//The text displayed when loading //The default display is: "<em>Loading the next set of posts...</em>" Animate: true,//Whether the page has animation effect when new data is loaded in. The default is none ExtraScrollPx: 50,//The number of pixels from the scroll bar to the bottom starts to load. The default value is 150 Donetext: "My guest has finished...",//The information displayed when the data is loaded //The default display is "<em>Configurations, you've reached the end of the internet.</em>" BufferPx: 40,//The display time of loading information is shorter ErrorCallback: function() {},//The function executed when there is an error, such as the 404 page LocalMode: true//Whether the page with the same function can be loaded. The default value is false }); }); </script>
Can't find a tutorial that can solve your problem?
-
Charging zblogphp template The 9th zblog enterprise theme of Tianxing Studio has its own form to submit email reminders, etc zero 2019-12-11 eleven thousand one hundred and ninety-five Price: four hundred and sixty-eight Online purchase -
Charging zblogphp template Tianxing Studio ppt download template is suitable for sites with resources to sell vips one 2019-10-03 nine thousand eight hundred and seventeen Price: one hundred and ninety-nine Online purchase -
Wordpress template Tianxing Studio wordpress download station theme is applicable to software/app/game and other download stations zero 2022-05-06 five thousand four hundred and twenty-three Price: three hundred and fifty-five Online purchase -
Charging zblogphp template Tianxing Studio zblogphp enterprise theme 6 Self configurable atmosphere zblog enterprise theme two 2018-06-26 forty-four thousand eight hundred and seventy-nine Price: two hundred and fifty-eight Online purchase
Related recommendations
-
How does zblog intercept a summary with a specified number of words? Introduction to the custom interception method of zblog summary 02-29 -
Zblog gets the title/link/ID and other attributes of the current page 02-02 -
Detailed description of zblog template article publishing time format 11-23 -
Zblog page opens slowly | Troubleshooting method for long TTFB loading time 05-19 -
Zblog application center download application prompt: App download failed 04-07 -
The reason and solution of the problem that zblog posts successfully but is not saved 01-12 -
Zblogphp calls the code of sub classification and descendant classification 08-06 -
Zblog A method of establishing multiple websites or multiple websites sharing a database 07-31 -
How does zblog call users? The method of zblog calling website users 07-27 -
Parameter description and usage of the new version of the GetList function of zblog 07-06 -
What if the "Fixed Website Domain Name" button of zblog 1.7 is missing? Steps for setting the zblog fixed website domain name function 04-19 -
Zblog Upgrade 1.7 Error "Invalid argument supplied for foreach" or "unserialize(): Error at offset" Solution 04-11 -
Version 1.7 of zblogphp is officially launched, with the upgrade guide and precautions for zblogphp 1.7 attached 02-08 -
Introduction to the code for zblog to determine whether the plug-in is installed or enabled 01-16 -
Zblogphp prompts "Call to undefined function openssl_pkey_get_public()" for reasons and solutions 12-25 -
The causes and solutions of "illegal access" reported by zblogphp 1.6 12-23
yes two Comments from netizens:
-
Netizens of Tianxing Studio 8 years ago (2016-01-07) reply What if the local test fails?
-
Netizens of Tianxing Studio Nine years ago (2015-08-21) reply Very good, Tianxing has shared the most zblog tips, very good! thank!!!
welcome you Comment: Cancel Reply
-
Zblog enterprise theme -
Zblog image theme -
Zblog resource topic -
Zblog CMS topic -
Wordpress template -
Zblog video theme -
Zblog Taobao guest theme -
Zblog navigation topic
Select a theme?
-
Latest articles -
Hot article ranking -
Most Comments
-
one Shopping activity on the official website of Tianxing Studio: unlimited number of times and amount of 20% discount coupons 04-17 -
two Tianxing Studio zblog pure blog theme vue3+applet dual version 03-19 -
three Error causes and solutions of introducing vant into vue3 project 03-12 -
four Tianxing Studio zblog encyclopedia theme can be matched with member plug-ins to realize knowledge payment profitability 03-06 -
five How does zblog intercept a summary with a specified number of words? Introduction to the custom interception method of zblog summary 02-29 -
six Tianxing Studio 2023 Double 11 Event: 50% discount coupons 11-05 -
seven Tencent Cloud 2023 Double 11 Activity: 2H2G3M lightweight server 88 new users for one year 11-05 -
eight AliCloud 2023 Double 11 Activity: 2-core 2G3M bandwidth ECS 99 yuan/year! 10-31 -
nine Tianxing Studio zblog free login paid reading plug-in supports Alipay WeChat payment Hupi Pepper payment 10-09
-
Label aggregation -
×1 Xiaomi Community ×1 Zblog secondary classification ×2 Zblog code ×1 Release time ×1 Mouse over the picture to fade ×1 Zblog purchase application ×2 zblogseo ×10 Tianxing Internet ×1 New account ×5 Zblog navigation bar ×1 Blue cms ×1 minitu ×1 GetCommentByID ×2 Advertising code ×3 Zblog resource template ×1 Insert Video ×2 Zblog call ×1 operateWXData ×1 Pseudo static configuration ×1 China Air Energy Network
Latest comments
-
Tianxing Studio 03-21 Yes, it will be repaired in the next version Commented on: Tianxing Studio zblog pure blog theme vue3+applet dual version -
visitor 03-20 This template has multiple side-by-side pictures. No matter which picture you click, the first picture will be displayed. There is no carousel button, and you can only manually close it. System: win7+Firefox Commented on: Tianxing Studio zblog pure blog theme vue3+applet dual version -
Tianxing Studio 01-19 I don't understand. Do you want to create categories in batches? This is not considered by the theme of plug-ins Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration -
visitor 01-18 It is too troublesome to classify and set one by one. Can you add classification settings in the theme settings. Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration -
Tianxing Studio 01-16 I don't quite understand your requirements. Please contact our online qq2076496616 to provide the order number to specify your requirements Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration