The example in this article describes how to achieve the most basic fade-in and fade-out effect based on jQuery. Share it with everyone for your reference. The specific analysis is as follows:
jQuery is a JavaScript library, which is an extension of JavaScript, used to meet the increasing needs for different special effects. Its essence is JavaScript
Let’s write a basic JQ program to illustrate JQ.
1. Basic goals
There are the following three buttons on the web page. One can only hide text, one can only display text, and one can hide and display text at the same time. Click once to display, click again to hide, and the cycle is endless. As shown below:
2. Production process
1. First, you need to download a JQ support file from the JQ official website and put it into your site folder. This support file is jQuery1.11 (click to open the link). You can go to the jQuery official website to download jQuery1.11 that is compatible with the old browser IE6 (click to open the link), instead of jQuery2 that is not compatible with the old browser IE6.
2. The entire web page code is as follows, divided into fragments for explanation:
被折腾的文本
(1)
部分
The tossed text
(2)
part