$('.p_01').each(function(i){$(this).css("opacity","1")})
.hover(function(){
 var pid=$(this).attr('id');
 $('#product_Tab_'+pid).show();
 $(this).bind("click",function(){
  alert(3333333);
 })
});为什么再click事情 不起作用的!

解决方案 »

  1.   

    你这样试试
    <script type="text/javascript">
                $(function(){
                    $(".test").hover(function(){
                        $("#div_"+this.id).show();
                    },function(){
                        $("#div_"+this.id).hide();
                    });
                    }).click(function(){alert("fewfefeef");});
            </script>
      

  2.   

    $('.p_01').hover(function(){
    var pid=$(this).attr('id');
    $('#product_Tab_'+pid).show();
    $(this).bind("click",function(){
    alert(3333333);
    })
    }).each(function(i){$(this).css("opacity","1")});
    交換位置