Jquery switches the sample code of different images

Source: Internet
Author: User

Jquery switches the sample code of different images

There are many ways to switch between different images. This article introduces how jquery is used.

The Code is as follows:

# Sidebar div # live_chat {

Background: url ("scroll/live_chat1.jpg ");

Height: 76px;

}

# Sidebar div # live_chat a: hover {

Background: url ("scroll/live_chat2.jpg ");

}

# Sidebar div # customer_survey {

Background: url ("scroll/survey1.jpg ");

Height: 75px;

}

# Sidebar div # customer_survey a: hover {

Background: url ("scroll/survey2.jpg ");

}

# Sidebar div # newsletter_sign {

Background: url ("scroll/newsletter_sign_bg.jpg ");

Height: 76px;

}

# Sidebar div # newsletter_sign a: hover {

Background: url ("scroll/newsletter_sign_bg1.jpg ");

Height: 76px;

}

# Sidebar div # back_top {

Background: url ("scroll/back_top1.jpg ");

Height: 40px;

}

# Sidebar div # back_top a: hover {

Background: url ("scroll/back_top2.jpg ");

}

# Sidebar div {

Cursor: pointer;

Display: block;

Width: 77px;

}

 

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.