Home > Web Front-end > JS Tutorial > JQuery switching display effect example code_jquery

JQuery switching display effect example code_jquery

WBOY
Release: 2016-05-16 17:41:20
Original
1124 people have browsed it

JQuery is so powerful and beautiful!

Jquery code is as follows:

Copy code The code is as follows:

$(function () {
$(" .n_zyb_gzright .n_zyb_gzrightlist").hover(function () {
         $(this).find(".n_zyb_gzrightlistc").attr("style", "display:block").parent().siblings(). find(".n_zyb_gzrightlistc").attr("style", "display:none");
})
})

Html code is as follows:

Copy code The code is as follows:

       
                           

                               
                                    我们都能幸福着
人气:1
                               

                               

                               

                                   

                                       
                                           

                                   

                                        jstu001

                                       
                                            作品:18
  

                                   

                                   

                               

                           

                           

                               
                                    开心就好了。
人气:1
                               

                               

                               
                           

                           

                               
人气:0
                               

                               

                               
                           

                   

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