Clicking the link of article title will prompt that it is loadingIt looks fun, doesn't it.For specific effects, click the title link of my blog post.Now let's teach you how to add this special effect to your theme template.
This special effect is also inseparable from JQuery.
First, open the header.php template file of the theme you are using, and add the following before the tag:
"H2 a" is the tag selector for the title of the topic article, which can be modified according to the specific topic template. If it is changed to "a", the special effect can be added to all links.The following number 2011 is the display time of this special effect (milliseconds), which can be modified as appropriate.
How to add HotNews pro version 2.4
HotNews pro version 2.4 has loaded multiple header.php files, so it is more convenient to write directly to the loaded js file. Add the following code directly to the end of the custom.js file:
//Prompt during loading
$(document).ready(function(){
$('h3 a,.tab ul li ul a,.cat_post a').click(function(){
For the above JS code, if there is a bug in Opera browser proposed by children's shoes, it should be replaced by:
//Prompt during loading
$(document).ready(function(){
$('h3 a,.tab ul li ul a,.cat_post a,.r_comments a').click(function(){
$(this). text ('Loading force... ');
window.location = $(this).attr('href');
});
});
It is found that adding special effects will affect some multi tag browsers. Open the link in the new tag, and the current tag will jump to the link page at the same time.
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!
kaelseven Taizhou City, Zhejiang ProvinceoneF reply
The first one to grab the sofa~~Ha ha, finally it's used!
People who can see the windsix Huaihua City, Hunan ProvincetwoF reply
Why does the page display in Chrome remain unchanged after I add the code to the JS file, but it has changed in 360 browser- And how to add the inserted image at the top right of your comment bar~
@RobinI also use Chrome code effectively, but there is a problem that the current tag will jump to the link page at the same time when the link is opened in the new tag How to solve it
People who can see the windsix Huaihua City, Hunan ProvincethreeF reply
Another problem is that if I enable the WP No Category Base plug-in, the category in other places will not be displayed, but there is a category in the address of the current small icon in the column.
@RobinThis plug-in just wants to remove the category from the link address, reduce the hierarchy, and directly display the column name, followed by the article address.
remai8one Songzi City, Jingzhou City, Hubei ProvincefourF reply
I have changed to your topic now, but I can't comment or leave messages. What's the reason?Please give me some advice!! This is my website:http://www.remai8.info/
@remai8Probably because your Win host has function limitations It's better not to use a junk Win host when playing WP
People who can see the windsix Huaihua City, Hunan ProvincefiveF reply
Another question is, after enabling the wp share list plug-in, do you need to select to enable "jquery1.4.2 library for plug-in introduction" in the plug-in background
There is still another question. How to realize your "notify me by email when someone replies" method after replying to comments.Maybe I have a lot of questions, hope to get answers~~
Brother Bird, I found a slightly discordant place.According to your method, when you click on the latest articles, popular articles, random articles and other columns, the message "Loading with force..." will also appear, but it seems meaningless to see this here [img]http://www.ade-bug.com/ade-bug-picture/ade-bug.jpg[/img]
Add a class="nogeili" to the three tags and tags, and then $(this). text ('Loading under force... '); Exclusion judgment is added before: if($(this).attr(“class”).indexOf(“nogeili”)){ $(this). text ('Loading under force... '); }
@ordinary peopleAlso, my code above is wrong, ha ha. Should be: if($(this).attr(“class”).indexOf(“nogeili”)==-1){ $(this). text ('Loading under force... '); } But it doesn't work anymore.
It doesn't seem to be very useful. I won't do this for the time being.
wotryfour Jinhua City, Zhejiang Provincetwenty-oneF reply
It's fun, but I don't see the effect after adding it, whether in Google Chrome or Internet Explorer.It is useless to copy and upload the JS file of your website directly.Is it not loaded?
Brother Bird, I used 2.4After custom.js is changed, firefox does not display this effect, and other browsers can.Your blog also displays normally in Firefox.Thanks for your guidance.
@RobinBrother Bird, you really saw my site, which made me so happy!!HotNews pro 2.4 I have translated it into Uighur, and here is your website link, hey hey...Thank you very much.
It is found that adding special effects will affect some multi tag browsers. Open the link in the new tag, and the current tag will jump to the link page at the same time. This is the case with my Chrome. How can I solve or cancel this function? I use your latest version 2.7