DDR爱好者之家 Design By 杰米

jQuery实现类似淘宝购物车全选状态示例
复制代码 代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我是投资者</title>
<script type="text/javascript" src="/UploadFiles/2021-04-02/jquery.min.js"><style type="text/css">*{margin:0;padding:0;color:#727272;font-size:12px; outline:none;}
table{ border-collapse:collapse; border-spacing:0; }
a{color:#3A3A3A; text-decoration:none; color:#575757;}
a:hover{ text-decoration:none;}
.L_user .mailspage{ background:#fff;}
.L_user .mailspage .mail{padding-bottom:25px;}
.L_user .mailspage .mail p{margin:0px 0 5px 5px; padding-top:5px;}
.L_user .mailspage .mail table{width:745px; text-align:center;}
.L_user .mailspage .mail .table_box{ width:745px;border:1px solid #DDDDDD;margin:0 0 0px 10px;}
.L_user .mailspage .mail .firsttr{border-top:none;}
.L_user .mailspage .mail td{ height:30px; line-height:30px;}
.L_user .mailspage .sendmsm {margin-top:25px;}
.L_user .mailspage .sendmsm div{margin:0 0 10px 40px;}
.L_user .mailspage .sendmsm div label{ width:50px; text-align:right; display:inline-block; vertical-align:middle;margin-right:5px;}
.L_user .mailspage .sendmsm div input{margin-right:5px; border:1px solid #ccc; height:20px; line-height:20px; padding-left:5px; vertical-align:middle; border-radius:5px;}
.L_user .mailspage .sendmsm div textarea{ width:270px; height:130px; vertical-align:top;border:1px solid #ccc; padding:5px; border-radius:5px;}
.L_user .mailspage .sendmsm div a{width:108px; height:35px; display:inline-block; background:url(../images/L_btn0615.jpg) no-repeat -8px -72px; vertical-align:middle;margin-right:10px;}
.L_user .mailspage .sendmsm div a:hover{ background-position:-8px -115px;}
.L_user .mailspage{width:768px; border:1px solid #E5E5E5; float:left; overflow:hidden;}
.L_user .mailspage .loantab{background:#fff;border-bottom:1px solid #E5E5E5; }
.L_user .mailspage .loantab a{width:127px; height:40px; border:1px solid #E5E5E5; border-bottom:none;display:inline-block; text-align:center; border-left:none; border-top:none; line-height:40px; color:#464646; font-weight:bold; }
.L_user .mailspage .loantab a.c{ background:#F4F4F4; color:#CF161C;}
.L_user .mailspage .mail .markbtn a{ width:64px; height:27px; background:url(../images/L_btn0615.jpg) no-repeat -4px -6px; display:inline-block; text-align:center; line-height:25px; vertical-align:middle;}
.L_user .mailspage .mail .markbtn a:hover{ background-position:-4px -37px;}
.L_user .mailspage .mail .firsttr{ background:#F9F9F9; border-bottom:1px solid #DDDDDD;border-top:1px solid #DDDDDD; height:20px; line-height:20px;}</style>
</head>

<body>

<div class="L_user clear-fix">

<div class="mailspage">
<div class="loantab"><a href="javascript:void(0)" class="c">收件箱</a><a href="javascript:void(0)">已发送</a><a href="javascript:void(0)">发信息</a></div>
<div class="mail">
<p class="markbtn"><a href="javascript:void(0)" class="deletebtn">删除</a><a href="javascript:void(0)">标记已读</a><a href="javascript:void(0)">标记未读</a></p>
<div class="table_box">
<table>
<tr id="titletr">
<td class="firsttr"><input type="checkbox" id="allcheckbox" /></td>
<td class="firsttr"><img src="/UploadFiles/2021-04-02/L_mail.png"><td class="firsttr">发件人</td>
<td class="firsttr">标题</td>
<td class="firsttr">发送时间</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td>3</td>
<td>XXX</td>
<td>XXX</td>
<td>XXX</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td>3</td>
<td>XXX</td>
<td>XXX</td>
<td>XXX</td>
</tr>
<tr>
<td><input type="checkbox" /></td>
<td>3</td>
<td>XXX</td>
<td>XXX</td>
<td>XXX</td>
</tr>
</table>
<p class="page">共0条<a href="javascript:void(0)">首页</a><a href="javascript:void(0)">上一页</a><a href="javascript:void(0)">下一页</a><a href="javascript:void(0)">尾页</a></p>
</div>
</div>

</div>
</div>

复制代码 代码如下:
<script type="text/javascript">//删除选中:
$(".markbtn .deletebtn").click(function(){
$(".table_box tr").each(function(){
if($(this).find("input").attr("checked")&&$(this).index()!=0){
$(this).remove();
}
})
})
$("#allcheckbox").click(function(){
if($(this).attr("checked")){
$(".table_box td input").attr("checked","checked");
}else{
$(".table_box td input").attr("checked","")
}
})

$(".table_box input").not("#allcheckbox").click(function(){
$(".table_box input").not("#allcheckbox").each(function(){
if($(".table_box input[type='checkbox']:checked").not("#allcheckbox").length==$(".table_box tr").not("#titletr").length){
$("#allcheckbox").attr("checked","checked");
}else{
$("#allcheckbox").attr("checked","");
}
})

})</script>
</body>
</html>

DDR爱好者之家 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
DDR爱好者之家 Design By 杰米

稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!

昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。

这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。

而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?