大概扒下来的,这个是html文件 <html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script>
function voteShow(id){
   var voteId= id;
   $.ajax({
      type:"GET",
  url:"test.php",
  data:"voteId="+voteId,
  success:function(msg){
       $("#"+voteId).fadeOut('slow');
   $("#vote_"+voteId).html(msg).fadeIn('slow');
      //alert(msg);
      
  }    });
}
</script>
</head>
<body>
  <ul id="contain" >
  <div id="weibo_1">
 <img src="vote_pic_01.gif" id="1" onclick="voteShow(this.id)" >
 <div id="vote_1"></div>
      </div>
  <div id="weibo_2" >
 <img src="vote_pic_01.gif" id="2" onclick="voteShow(this.id)" >
 <div id="vote_2"></div>
  </div>
  
 </ul>
 
</body>
</html>以下是接到html请求的php文件<div class="MIB_assign">                          
<div class="onevote_title">
<div class="lf">
<cite><a href="javascript:void(0);" class="close_1">收起</a></cite>
</div>
</div>
</div>
<?php
   $id = $_GET['voteId'];
  echo '<script type="text/javascript">
  $(function(){
$(".close_1").click(function(){
alert("'.$id.'");
$("#vote_'.$id.'").fadeOut("slow");
$("#vote_'.$id.'").siblings("img").fadeIn("slow");
  });
  });
</script>';?>
在ie和chrome下都能实现收起效果,但是在ff下就不行,请各位前辈赐教~