jquery to achieve a simple web page skin-changing effect example _jquery

Source: Internet
Author: User

This article describes jquery to achieve a simple web page skin-changing effect. Share to everyone for your reference, specific as follows:

Here are 4 files: skin.html, Blue.css, green.html, red.html, all in the same directory.

1, skin.html

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">  

There's only one point, that's the few lines of JavaScript code. To get everyone to see the whole picture, put the entire HTML code out.

2, Blue.css

Li {color:blue;}

3, Green.css

Li {color:green;}

4, Red.css

Li {color:red;}

may have netizens feel a word also hair css file, here is small, laughed. ^_^

5, the screenshot is as follows:

More interested readers of jquery-related content can view the site topics: "jquery Extended Tips," "jquery common Plug-ins and Usage summary", "jquery drag-and-drop effects and tips summary", "jquery table (table) Operation Tips Summary", " A summary of Ajax usage in jquery, a summary of common classic effects in jquery, a summary of jquery animation and special effects usage, and a summary of jquery selector usage

I hope this article will help you with the jquery program design.

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.