<head runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 32%;
}
.imgclass{ position:absolute; border:solid 1px #eee; width:200px; height:350px; display:none;}
</style>
<script src="Jquery1.7.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#Checkbox4').click(function () {
$('table :checkbox').attr('checked', this.checked);
});
$('#Button1').click(function () {
var ck = $('#form1 :checkbox:not(#Checkbox4)');
ck.each(function (index) {
if (this.checked) {
$('table tr[id=' + this.value + ']').remove();
}
})
})
$('table tr td img').mousemove(function (m) {
$('#show').attr('src', this.src).css({ top: (m.pageY + 5), left: (m.pageX + 5) }).show();
})
$('table tr td img').mouseout(function () {
$('#show').hide();
})
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table class="style1">
<tr>
<td>
操作</td>
<td>
编号</td>
<td>
封面</td>
<td>
作者</td>
<td>
数量</td>
<td>
单价</td>
</tr>
<tr id="0">
<td>
<input id="Checkbox1" type="checkbox" value="0"/></td>
<td>
001</td>
<td>
<img alt="" src="images/11.jpg" width="30px" height="40px"/></td>
<td>
大姐</td>
<td>
22</td>
<td>
20</td>
</tr>
<tr id="1">
<td>
<input id="Checkbox2" type="checkbox" value="1"/></td>
<td>
002</td>
<td>
<img alt="" src="images/林志玲.jpg" width="30px" height="40px"/></td>
<td>
阿拉蕾</td>
<td>
23</td>
<td>
32</td>
</tr>
<tr id="2">
<td>
<input id="Checkbox3" type="checkbox" value="2"/></td>
<td>
003</td>
<td>
<img alt="" src="images/林志颖.jpg" width="30px" height="40px"/></td>
<td>
刘宁</td>
<td>
33</td>
<td>
15</td>
</tr>
</table>
<img alt="" id="show" name="imgclass"/>
全选:<input id="Checkbox4" type="checkbox" /><input id="Button1" type="button"
value="删除" /></div>
</form>
</body>