JQuery如何实现这种简单的效果?新人求助。
大概就是上图的意思,鼠标触碰其中一个图片的时候其他的透明度为80%。
我也在w3school上看了两天,也尝试自己写了几个例子,但是这个问题我始终没弄明白。希望能帮帮忙,提供个方法也行。我去百度搜索都不知道应该怎么输入关键字。。哎。
------解决方案--------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>无标题页</title>
 <script src="jquery-1.8.1.min.js" type="text/javascript"></script>
</head>
<body>
 <form>
  <img src="http://avatar.profile.csdn.net/C/9/4/2_net_lover.jpg" />  
  <img src="http://avatar.profile.csdn.net/C/9/4/2_net_lover.jpg" />  
  <img src="http://avatar.profile.csdn.net/C/9/4/2_net_lover.jpg" />  
  <img src="http://avatar.profile.csdn.net/C/9/4/2_net_lover.jpg" />
 <script type="text/javascript">
   $(document).ready(function () {
     $("img").each(function (i) {
       $(this).css({ opacity: 0.8 })
       $(this).bind("mouseover", function () {
         $(this).css({ opacity: 1 })
       });
       $(this).bind("mouseout", function () {
         $(this).css({ opacity: 0.8 })
       })
     });
   })
 </script>
 </form>
</body>
</html>