js全选,全不选,反选练习

<html>
    <head></head>
    <body>
        <table width="98%" cellspacing="1" cellpadding="2" border="0" bgcolor="#CFCFCF" align="center" style="margin-top:8px">
<tbody>
<tr height="25" bgcolor="#FBFCE2" align="center">
    <td width="6%">ID</td>
    <td width="4%">选择</td>
    <td width="28%">文章标题</td>
    <td width="10%">更新时间</td>
    <td width="10%">类目</td>
    <td width="8%">点击</td>
    <td width="6%">HTML</td>
    <td width="8%">权限</td>
    <td width="8%">发布人</td>
    <td width="10%">操作</td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2868    </td>
    <td>
        <input type="checkbox" class="np" value="2868" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2868">
            <a oncontextmenu="ShowMenu(event,this,2868,'90件元青花齐聚上海博物馆')" href="archives_do.php?aid=2868&amp;dopost=editArchives">
                <u>90件元青花齐聚上海博物馆</u>
            </a>
        </span>
        [<font color="red">头 推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=13"></a></td>
    <td>200</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2868, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2868);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2868);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2866    </td>
    <td>
        <input type="checkbox" class="np" value="2866" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2866">
            <a oncontextmenu="ShowMenu(event,this,2866,'南宋越窑莲瓣纹青釉香熏')" href="archives_do.php?aid=2866&amp;dopost=editArchives">
                <u>南宋越窑莲瓣纹青釉香熏</u>
            </a>
        </span>
        [<font color="red">头 推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=13"></a></td>
    <td>152</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2866, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2866);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2866);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2865    </td>
    <td>
        <input type="checkbox" class="np" value="2865" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2865">
            <a oncontextmenu="ShowMenu(event,this,2865,'村上隆:欧美审美标准下的艺术强者')" href="archives_do.php?aid=2865&amp;dopost=editArchives">
                <u>村上隆:欧美审美标准下的艺术强者</u>
            </a>
        </span>
            </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>179</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2865, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2865);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2865);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2864    </td>
    <td>
        <input type="checkbox" class="np" value="2864" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2864">
            <a oncontextmenu="ShowMenu(event,this,2864,'福建惠安举办汉白玉雕塑精品展')" href="archives_do.php?aid=2864&amp;dopost=editArchives">
                <u>福建惠安举办汉白玉雕塑精品展</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>90</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2864, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2864);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2864);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2863    </td>
    <td>
        <input type="checkbox" class="np" value="2863" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2863">
            <a oncontextmenu="ShowMenu(event,this,2863,'辗转4个月被盗明代石雕柱础终寻回')" href="archives_do.php?aid=2863&amp;dopost=editArchives">
                <u>辗转4个月被盗明代石雕柱础终寻回</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>155</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2863, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2863);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2863);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2862    </td>
    <td>
        <input type="checkbox" class="np" value="2862" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2862">
            <a oncontextmenu="ShowMenu(event,this,2862,'游客频伸咸猪手摩挲石雕女神胸前')" href="archives_do.php?aid=2862&amp;dopost=editArchives">
                <u>游客频伸咸猪手摩挲石雕女神胸前</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>58</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2862, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2862);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2862);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2861    </td>
    <td>
        <input type="checkbox" class="np" value="2861" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2861">
            <a oncontextmenu="ShowMenu(event,this,2861,'现代拉丁美洲美术之一')" href="archives_do.php?aid=2861&amp;dopost=editArchives">
                <u>现代拉丁美洲美术之一</u>
            </a>
        </span>
            </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>193</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2861, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2861);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2861);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2860    </td>
    <td>
        <input type="checkbox" class="np" value="2860" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2860">
            <a oncontextmenu="ShowMenu(event,this,2860,'点碎成金:瓷片收藏')" href="archives_do.php?aid=2860&amp;dopost=editArchives">
                <u>点碎成金:瓷片收藏</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>115</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2860, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2860);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2860);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2859    </td>
    <td>
        <input type="checkbox" class="np" value="2859" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2859">
            <a oncontextmenu="ShowMenu(event,this,2859,'冰心孙子毁墓碑遭索赔9万元')" href="archives_do.php?aid=2859&amp;dopost=editArchives">
                <u>冰心孙子毁墓碑遭索赔9万元</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>123</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2859, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2859);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2859);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2858    </td>
    <td>
        <input type="checkbox" class="np" value="2858" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2858">
            <a oncontextmenu="ShowMenu(event,this,2858,'银座首拍赏析:黄宾虹《山水》立轴')" href="archives_do.php?aid=2858&amp;dopost=editArchives">
                <u>银座首拍赏析:黄宾虹《山水》立轴</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>132</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2858, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2858);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2858);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2857    </td>
    <td>
        <input type="checkbox" class="np" value="2857" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2857">
            <a oncontextmenu="ShowMenu(event,this,2857,'画家历时两月创作《百虎图》')" href="archives_do.php?aid=2857&amp;dopost=editArchives">
                <u>画家历时两月创作《百虎图》</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>160</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2857, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2857);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2857);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2856    </td>
    <td>
        <input type="checkbox" class="np" value="2856" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2856">
            <a oncontextmenu="ShowMenu(event,this,2856,'书画研究员徐小虎:没有大师的艺术史')" href="archives_do.php?aid=2856&amp;dopost=editArchives">
                <u>书画研究员徐小虎:没有大师的艺术史</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>138</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2856, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2856);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2856);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2855    </td>
    <td>
        <input type="checkbox" class="np" value="2855" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2855">
            <a oncontextmenu="ShowMenu(event,this,2855,'回眸张光宇:可以超越但不能绕过的画家')" href="archives_do.php?aid=2855&amp;dopost=editArchives">
                <u>回眸张光宇:可以超越但不能绕过的画家</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>154</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2855, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2855);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2855);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2854    </td>
    <td>
        <input type="checkbox" class="np" value="2854" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2854">
            <a oncontextmenu="ShowMenu(event,this,2854,'书法要淡化创作意识')" href="archives_do.php?aid=2854&amp;dopost=editArchives">
                <u>书法要淡化创作意识</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>129</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2854, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2854);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2854);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2853    </td>
    <td>
        <input type="checkbox" class="np" value="2853" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2853">
            <a oncontextmenu="ShowMenu(event,this,2853,'韩光州市立美术馆接受中国作家捐赠')" href="archives_do.php?aid=2853&amp;dopost=editArchives">
                <u>韩光州市立美术馆接受中国作家捐赠</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>55</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2853, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2853);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2853);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2852    </td>
    <td>
        <input type="checkbox" class="np" value="2852" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2852">
            <a oncontextmenu="ShowMenu(event,this,2852,'忆书坛名家周而复先生')" href="archives_do.php?aid=2852&amp;dopost=editArchives">
                <u>忆书坛名家周而复先生</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>140</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2852, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2852);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2852);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2851    </td>
    <td>
        <input type="checkbox" class="np" value="2851" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2851">
            <a oncontextmenu="ShowMenu(event,this,2851,'20世纪山水画精品陈列展吸引参观者')" href="archives_do.php?aid=2851&amp;dopost=editArchives">
                <u>20世纪山水画精品陈列展吸引参观者</u>
            </a>
        </span>
        [<font color="red">推</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>109</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2851, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2851);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2851);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2850    </td>
    <td>
        <input type="checkbox" class="np" value="2850" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2850">
            <a oncontextmenu="ShowMenu(event,this,2850,'张大千花卉蔬果双绝册现身匡时秋拍')" href="archives_do.php?aid=2850&amp;dopost=editArchives">
                <u>张大千花卉蔬果双绝册现身匡时秋拍</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>166</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2850, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2850);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2850);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2849    </td>
    <td>
        <input type="checkbox" class="np" value="2849" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2849">
            <a oncontextmenu="ShowMenu(event,this,2849,'议村上隆艺术观:艺术创作不要向钱看')" href="archives_do.php?aid=2849&amp;dopost=editArchives">
                <u>议村上隆艺术观:艺术创作不要向钱看</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>176</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2849, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2849);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2849);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2848    </td>
    <td>
        <input type="checkbox" class="np" value="2848" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2848">
            <a oncontextmenu="ShowMenu(event,this,2848,'中国画常用的几种印章形式')" href="archives_do.php?aid=2848&amp;dopost=editArchives">
                <u>中国画常用的几种印章形式</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-09</td>
    <td><a href="content_list.php?cid=16"></a></td>
    <td>177</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2848, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2848);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2848);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2847    </td>
    <td>
        <input type="checkbox" class="np" value="2847" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2847">
            <a oncontextmenu="ShowMenu(event,this,2847,'2012歌德秋拍机构藏画无底价上拍')" href="archives_do.php?aid=2847&amp;dopost=editArchives">
                <u>2012歌德秋拍机构藏画无底价上拍</u>
            </a>
        </span>
        [<font color="red">图</font>]    </td>
    <td>2012-11-08</td>
    <td><a href="content_list.php?cid=14"></a></td>
    <td>184</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2847, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2847);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2847);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2846    </td>
    <td>
        <input type="checkbox" class="np" value="2846" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2846">
            <a oncontextmenu="ShowMenu(event,this,2846,'静远堂之旧藏将亮相保利2012年秋拍')" href="archives_do.php?aid=2846&amp;dopost=editArchives">
                <u>静远堂之旧藏将亮相保利2012年秋拍</u>
            </a>
        </span>
        [<font color="red">推 图 特</font>]    </td>
    <td>2012-11-08</td>
    <td><a href="content_list.php?cid=14"></a></td>
    <td>139</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2846, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2846);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2846);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2845    </td>
    <td>
        <input type="checkbox" class="np" value="2845" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2845">
            <a oncontextmenu="ShowMenu(event,this,2845,'保利秋拍“向大师致敬”推出重要李可染作品')" href="archives_do.php?aid=2845&amp;dopost=editArchives">
                <u>保利秋拍“向大师致敬”推出重要李可染作品</u>
            </a>
        </span>
        [<font color="red">图</font>]    </td>
    <td>2012-11-08</td>
    <td><a href="content_list.php?cid=14"></a></td>
    <td>158</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2845, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2845);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2845);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2844    </td>
    <td>
        <input type="checkbox" class="np" value="2844" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2844">
            <a oncontextmenu="ShowMenu(event,this,2844,'业内呼吁尽快出台文化消费指数 制定应分门别类')" href="archives_do.php?aid=2844&amp;dopost=editArchives">
                <u>业内呼吁尽快出台文化消费指数 制定应分门别类</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-08</td>
    <td><a href="content_list.php?cid=14"></a></td>
    <td>146</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2844, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2844);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2844);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2843    </td>
    <td>
        <input type="checkbox" class="np" value="2843" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2843">
            <a oncontextmenu="ShowMenu(event,this,2843,'韩国如何盘活博物馆业 政策上下足功夫')" href="archives_do.php?aid=2843&amp;dopost=editArchives">
                <u>韩国如何盘活博物馆业 政策上下足功夫</u>
            </a>
        </span>
        [<font color="red">推</font>]    </td>
    <td>2012-11-08</td>
    <td><a href="content_list.php?cid=14"></a></td>
    <td>122</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2843, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2843);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2843);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr height="26" bgcolor="#FFFFFF" align="center" onmouseout="javascript:this.bgColor='#FFFFFF';" onmousemove="javascript:this.bgColor='#FCFDEE';">
    <td nowrap="">
        2842    </td>
    <td>
        <input type="checkbox" class="np" value="2842" id="arcID" name="arcID">
    </td>
    <td align="left">
        <span id="arc2842">
            <a oncontextmenu="ShowMenu(event,this,2842,'国家将投入17亿元维修保护西藏文物')" href="archives_do.php?aid=2842&amp;dopost=editArchives">
                <u>国家将投入17亿元维修保护西藏文物</u>
            </a>
        </span>
        [<font color="red">推 特</font>]    </td>
    <td>2012-11-08</td>
    <td><a href="content_list.php?cid=14"></a></td>
    <td>153</td>
    <td>已生成</td>
    <td>开放浏览</td>
    <td>admin</td>
    <td>
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="QuickEdit(2842, event, this);" alt="编辑属性" title="编辑属性" src="images/trun.gif">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="editArc(2842);" alt="编辑" title="编辑" src="images/gtk-edit.png">
        <img width="16" height="16" border="0" style="cursor:pointer" onclick="viewArc(2842);" alt="预览" title="预览" src="images/part-list.gif">
    </td>
</tr>
<tr bgcolor="#ffffff">
<td height="36" colspan="10">
    &nbsp;
    <a class="coolbg" href="javascript:selAll()">全选</a>
    <a class="coolbg" href="javascript:noSelAll()">取消</a>
    <a class="coolbg" href="javascript:SelAllOther()">反选</a>
</td>
</tr>

</tbody></table>
<script>
//全选
function selAll(){
    var check=document.getElementsByTagName("input");
    for(var i=0;i<check.length;i++){
        if(check[i].type="checkbox"){
            check[i].checked=true;
        }
    }
}
//全不选
function noSelAll(){
    var check=document.getElementsByTagName("input");
    for(var i=0;i<check.length;i++){
        if(check[i].type="checkbox"){
            check[i].checked=false;
        }
    }
}
//反选
function SelAllOther(){
    var check=document.getElementsByTagName("input");
    for(var i=0;i<check.length;i++){
        if(check[i].type="checkbox"){
            if(check[i].checked==true){
                check[i].checked=false;
            }else{
                check[i].checked=true;
            }
            
        }
    }
}

    //alert(check.length);
</script>
    </body>
</html>

原文地址:https://www.cnblogs.com/yuwensong/p/2862716.html