Effects of the jquery navigation bar (CSS selector control) _jquery

Source: Internet
Author: User
<div class= "All" > <div class= "M1" jquery1274844839136= "1" > Title 1</div> <div class= "m2" jquery1274844839136= "2" > title 2</div> <div class= "M3" jquery1274844839136= "3" > title 3</div> <div Class= "M4" jquery1274844839136= "4" > title 4</div> <div class= "M5" jquery1274844839136= "5" > title 5</div > <div class= "M6" jquery1274844839136= "6" > title 6</div> </div> <div> Enter to see the effect! </div> <script type= "Text/javascript" src= "Http://code.jquery.com/jquery-1.4.2.min.js" ></script ><script type= "Text/javascript" > $ (document). Ready (function () {myhide (); }); function Myhide () {//alert ("Hello"); Register event $ (". M1"). Bind (' mouseover ', m1_mouseover); $ (". M1"). Bind (' mouseout ', m1_mouseout); $ (". M2"). Bind (' mouseover ', m2_mouseover); $ (". M2"). Bind (' mouseout ', m2_mouseout); $ (". M3"). Bind (' mouseover ', m3_mouseover); $ (". M3"). Bind (' mouseout ', m3_mouseout); $ (". M4"). Bind (' mouseover ', m4_mouseover); $ (". M4"). Bind (' Mouseout ', m4_mouseout); $ (". M5"). Bind (' mouseover ', m5_mouseover); $ (". M5"). Bind (' mouseout ', m5_mouseout); $ (". M6"). Bind (' mouseover ', m6_mouseover); $ (". M6"). Bind (' mouseout ', m6_mouseout); }; function M1_mouseover () {$ (". M1"). Animate ({width: "100px", Height: "30px", FontSize: "22px"}, "fast"); function M1_mouseout () {$ (". M1"). Animate ({width: "70px", Height: "20px", FontSize: "14px"}, "fast"); function M2_mouseover () {$ (". M2"). Animate ({width: "100px", Height: "30px", FontSize: "22px"}, "fast"); function M2_mouseout () {$ (". M2"). Animate ({width: "70px", Height: "20px", FontSize: "14px"}, "fast"); function M3_mouseover () {$ (". M3"). Animate ({width: "100px", Height: "30px", FontSize: "22px"}, "fast"); function M3_mouseout () {$ (". M3"). Animate ({width: "70px", Height: "20px", FontSize: "14px"}, "fast"); function M4_mouseover () {$ (". M4"). Animate ({width: "100px", Height: "30px", FontSize: "22px"}, "fast"); function M4_mouseout () {$ (". M4"). Animate ({width:" 70px ", Height:" 20px ", FontSize:" 14px "}," fast "); function M5_mouseover () {$ (". M5"). Animate ({width: "100px", Height: "30px", FontSize: "22px"}, "fast"); function M5_mouseout () {$ (". M5"). Animate ({width: "70px", Height: "20px", FontSize: "14px"}, "fast"); function M6_mouseover () {$ (". M6"). Animate ({width: "100px", Height: "30px", FontSize: "22px"}, "fast"); function M6_mouseout () {$ (". M6"). Animate ({width: "70px", Height: "20px", FontSize: "14px"}, "fast"); } </script> <style type= "Text/css" >. m1,.m2,.m3,.m4,.m5,.m6 {width:70px; height:20px; Background-color: #cccccc; Border:thin solid #9999ff; font-size:14px; }. all {width:80px; height:160px; Text-align:center; } </style>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
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.