Home > Web Front-end > JS Tutorial > 2 Sharing of jQuery special effects written by myself_jquery

2 Sharing of jQuery special effects written by myself_jquery

WBOY
Release: 2016-05-16 16:12:58
Original
1000 people have browsed it

Post the code first

Copy code The code is as follows:


This code is a function of JQ’s button to randomly display a sentence

The main point is

Copy code The code is as follows:

$("#p1").html(msg[Math.floor(Math.random() * msg.length)]);

This sentence is above.

Okay, next piece of code

Copy code The code is as follows:




This is a tab switching effect

The key point is

In the div block of the tab tab: float displays multiple

  • in one row.

    Within the corresponding contentdiv block below: multiple divs,


    The first display: block. The rest are none.

    The number and order of elements in the upper and lower div blocks must be consistent.


    Bind click on

  • later.

    Just correspond to the corresponding ideas!

    Okay, the two jQuery special effects shared today are here first. I will share some other special effects slowly in the future. I hope you all like them.

  • Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template