jquery--commonly used functions 2

Source: Internet
Author: User

<! DOCTYPE html>. div1{width:600px; height:300px; background:red;}. div2{width:300px; height:200px; background:yellow;}</style><script src= '. /jquery-3.1.1.min.js ' ></script><script>$(function(){    $('. Div1 '). Hover (function(){    //$ (this). CSS (' background ', ' blue ');    //$ ('. Div2 '). Show (+);    //$ ('. Div2 '). FadeOut ();$ ('. Div2 ')). Slideup (); },    function(){    //$ (this). CSS (' background ', ' yellow ');    //$ ('. Div2 '). Hide (+);    //$ ('. Div2 '). FadeIn ();$ ('. Div2 ')). Slidedown (); });});</script>hover (), mouse move out parameter 1 move in Parameter 2 move out<br/> Hover (function(){},function() {}) <br/> Show (), Hide (), Hidden <br/> $ ('. Div2 '). The show () parameter is the motion time &LT;BR/&G TFadeOut () fades in FadeIn fades $ ('. Div2 '). FadeIn (); parameter is change time <br/> slideup (); Change upward slidedown ();     Change down <br/> $ ('. Div2 '). Slidedown (); parameter is change time <br/> </div><div class= "Div2" ></div></body>

jquery--commonly used functions 2

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.