<div class="codetitle"> <span><a style="CURSOR: pointer" data="85711" class="copybut" id="copybut85711" onclick="doCopy('code85711')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code85711"> <br><html> <br><머리> <br><제목></제목> <br><style type="text/css" > <br>테이블 { 배경:#949494; 너비:400px; line-height:20px;} <br>td { border-right:1px 단색 회색; 테두리 하단:1px 단색 회색; } <br></style> <br><script src="jquery.js" type="text/javascript"></script> <br><script type="text/javascript" > <br>function up(obj) { <br>var objParentTR = $(obj).parent().parent(); <br>var prevTR = objParentTR.prev(); <br>if (prevTR.length > 0) { <br>prevTR.insertAfter(objParentTR); <br>} <br>} <br>function down(obj) { <br>var objParentTR = $(obj).parent().parent(); <br>var nextTR = objParentTR.next(); <br>if (nextTR.length > 0) { <br>nextTR.insertBefore(objParentTR); <br>} <br>} <br></script> <br></head> <br><본문> <br><table border="0" > <br><tr><td>1</td><td>12</td><td>13</td><td><a href="#" onclick="up (이)">上移</a> <a href="#" onclick="down(this)">다운로드</a></td></tr> <br><tr><td>2</td>22</td><td>23</td><td><a href="#" onclick="up (이)">上移</a> <a href="#" onclick="down(this)">다운로드</a></td></tr> <br><tr><td>3</td><td>32</td><td>33</td><td><a href="#" onclick="up (이)">上移</a> <a href="#" onclick="down(this)">다운로드</a></td></tr> <br><tr><td>4</td><td>42</td><td>43</td><td><a href="#" onclick="up (이)">上移</a> <a href="#" onclick="down(this)">다운로드</a></td></tr> <br><tr><td>5</td>52</td><td>53</td><td><a href="#" onclick="up (이)">上移</a> <a href="#" onclick="down(this)">다운로드</a></td></tr> <br></테이블> <br></body> <br></html> <br> </div>