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

JQuery switching display effect example code_jquery

WBOY
WBOYOriginal
2016-05-16 17:41:201126browse

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
                               

                               

                               
                           

                   

Statement:
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