How to add an excessive effect to the blog in load

Source: Internet
Author: User

See a lot of blogs have this, think of their own blog also need, so add a, method is this:

First look at your blog has not loaded jquery, if not, please add a reference to the header of this JS code:

<script type= "Text/javascript" src= "Http://jqueryjs.googlecode.com/files/jquery-1.2.3.min.js" ></script >

Then add the following code to the template file:

<script type= "Text/javascript" >

$ (document). Ready (function () {

$ (' H2 a '). Click (function () {

Myloadoriginal = This.text;

$ (this). Text (' Loading in force ... ');

var myload = this;

settimeout (function () {$ (myload). Text (myloadoriginal);}, 2011);

});

});

</script>

Can DIY is, H2 A for the selection code, if your blog post title is not

Unless noted, Hu Xiaoyi blog articles are original, reproduced please link form to indicate this address

This article address: http://huxiaoyi.com/website/20120727.html

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.