In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the WordPress article title link to add tips in the loading method, the article is very detailed, has a certain reference value, interested friends must read it!
WordPress article title link how to add a prompt in the process of loading?
We will see a lot of friends who use wordpress blog when we click on the article title, we will first prompt that it is loading, and then enter the article, here we will introduce the WordPress article title link to add the prompt effect in loading.
First open the header.php template file for the theme you are using and add the following code in front of the tag:
The code is as follows:
If your theme has already loaded JQuery, you don't need to do this, and add the following code to the tag as follows:
The code is as follows:
$(document) .ready (function () {$('h3a dint h4a') .click (function () {myloadoriginal = this.text; $(this) .text (' being loaded...') ; var myload = this; setTimeout (function () {$(myload) .text (myloadoriginal);}, 2011);};})
Among them, "H3a" is the tag selector for the title of the theme article, which can be modified according to the specific theme template. If changed to "a", you can add this special effect to all links. The following number 2011 is the display time (milliseconds) of this special effect, which can be modified as appropriate.
The above is all the content of the WordPress article title link to add the method that is being loaded, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.