鼠标经过图片或者文字 改变效果 css+jquery实现hover改变图片或者文字效果
JavaScript Code
- <script> /* JQUERY FUNCTIONS */
- $(document).ready(function(){
- $(".ss_white").hover(function(){
- $(this).animate({'opacity':0},250);
- }, function(){
- $(this).animate({'opacity':1},250);
- });
- });
- </script>
XML/HTML Code
- <div id="content">
- <div class="fb"><img class="ss" src="include/fb_blue.png" /><img class="ss_white" src="include/fb_white.png" /></div>
- <div class="tw"><img class="ss" src="include/tw_blue.png" /><img class="ss_white" src="include/tw_white.png" /></div>
- <div class="in"><img class="ss" src="include/in_blue.png" /><img class="ss_white" src="include/in_white.png" /></div>
- <div class="gp"><img class="ss" src="include/g+_blue.png" /><img class="ss_white" src="include/g+_white.png" /></a></div>
- </div>
原文地址:http://www.freejs.net/article_jquerywenzi_445.html