日期:2014-05-16 浏览次数:20464 次
<script type="text/javascript">
$(function(){
$(".sub1 .pic ul li img").click(function(e){
var imgurl,index=$(this).parent().index(),_that=$(this);
$(".sub1_1").show();//好友选择层
$(".sub1 .pic ul li img").removeAttr("me");
$(this).attr("me","1");
});
$(".sub1_1 .agree").click(function(e){//点击确定选中一个好友
var friend_inp = $(".friends input[type='radio']:checked").val(),
userinfo = friend_inp.split('|*|'),
imgurl=userinfo[2];
$(".sub1_1").hide();
$(".sub1 .pic ul li img[me='1']").attr("src",imgurl);
});
})
</script>
<div class="sub1 w960">
<div class="xz1 xz" style="display:none;"><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/d.jpg" width="22" height="22" alt=""/></div>
<div class="xz2 xz" style="display:none;"><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/d.jpg" width="22" height="22" alt=""/></div>
<div class="xz3 xz" style="display:none;"><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/d.jpg" width="22" height="22" alt=""/></div>
<div class="xz4 xz"style="display:none;"><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/d.jpg" width="22" height="22" alt=""/></div>
<div class="xz5 xz"style="display:none;"><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/d.jpg" width="22" height="22" alt=""/></div>
<div class="xz6 xz"style="display:none;"><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/d.jpg" width="22" height="22" alt=""/></div>
<div class="pic">
<ul>
<li><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/11.jpg" width="180" height="180" alt=""></li>
<li><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/11.jpg" width="180" height="180" alt=""></li>
<li><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/11.jpg" width="180" height="180" alt=""></li>
<li><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/11.jpg" width="180" height="180" alt=""></li>
<li><img src="http://new-img1.ol-img.com/feature/173/2371173/img-subject/sub/11.jpg" width="180" hei