<div class="codetitle"> <span><a style="CURSOR: pointer" data="3721" class="copybut" id="copybut3721" onclick="doCopy('code3721')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code3721"> <br><!-- <BR>//ASP分页函数 <BR>함수 ShowListPage(page,Pcount,TopicNum,maxperpage,strLink,ListName){ <BR> var alertcolor = '#FF0000'; <BR> maxperpage=Math.floor(maxperpage); <BR> TopicNum=Math.floor(TopicNum); <BR> page=Math.floor(페이지); <BR> var n,p; <BR> if ((페이지-1) ==0) { <BR> p=(페이지-1) /10 <BR> }else{ <BR> p=(((페이지-1)-(페이지- 1) )/10) <BR> } <BR> if(TopicNum%maxperpage==0) { <BR> n=TopicNum/maxperpage; <BR> }else{ <BR> n=(TopicNum-TopicNum%maxperpage)/maxperpage 1; <BR> } <BR> document.write ('<table border="0" cellpadding="0" cellspacing="1" class="Tableborder5">'); <br> document.write ('<form method=post action="?pcount=' Pcount strLink '">'); <br> document.write ('<tr align="center">'); <br> document.write ('<td class="tabletitle1" title="' 목록 이름 '"> ' 목록 이름 ' </td>'); <br> document.write ('<td class="tabletitle1" title="总数"> ' TopicNum ' </td>'); <br> document.write ('<td class="tabletitle1" title="每页"> ' maxperpage ' </td>'); <br> document.write ('<td class="tabletitle1" title="页次"> ' 페이지 '/' Pcount '页 </td>'); <br> if (page==1){ <br> document.write ('<td class="tablebody1"> <font face=webdings>9</font> </td>'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="?page=1' strLink '" title="首页"><font face= 웹딩>9</font></a> </td>'); <br> } <br> if (p*10 > 0){ <br> document.write ('<td class="tablebody1"> <a href="?page=' p*10 strLink ' " title="上十页"><font face=webdings>7</font></a> </td>'); <br> } <br> if (페이지 < 2){ <br> document.write ('<td class="tablebody1"> 首 页 </td>'); <br> document.write ('<td class="tablebody1"> 上一页 </td>'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="?page=1' strLink '" title="首页">首 页</ a> </td>'); <br> document.write ('<td class="tablebody1"> <a href="?page=' (page-1) strLink '" title="上一页">上一页< /a> </td>'); <br> } <br> if (Pcount-page < 1){ <br> document.write ('<td class="tablebody1"> 下一页 </td>'); <br> document.write ('<td class="tablebody1"> 尾 页 </td>'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="?page=' (1페이지) strLink '" title="下一页">下一页< ;/a> </td>'); <br> document.write ('<td class="tablebody1"> <a href="?page=' Pcount strLink '" title="尾页">尾 页</a> </ td>'); <br> } <br> for (var i=p*10 1;i<p*10 11;i ){ <BR> if (i==n) break; <BR> } <BR> if (i<n){ <BR> document.write ('<td class="tablebody1"> <a href="?page=' i strLink '" title="下十页"><font face=webdings>8</font></a> <td>'); <br> } <br> if (page==n){ <br> document.write ('<td class="tablebody1"> <Font face=webdings>:</font> </td> ;'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="?page=' n strLink '" title="尾页"><font face =웹딩>:</font></a> </td>'); <br> } <br> document.write ('<td class="tablebody1"><input class="PageInput" type=text name="page" size=1 maxlength=10 value="' 페이지 ' "></td>'); <br> document.write ('<td class="tablebody1"><input type=submit value=Go name=submit class="PageInput"></td>'); <br> document.write ('</tr>'); <br> document.write ('</form></table>'); <br>} <br>//HTML分页函数 <br>함수 ShowHtmlPage(page,Pcount,TopicNum,maxperpage,strLink,ExtName,ListName){ <br> var alertcolor = '#FF0000'; <br> maxperpage=Math.floor(maxperpage); <br> TopicNum=Math.floor(TopicNum); <br> page=Math.floor(페이지); <br> var n,p; <br> if ((페이지-1) ==0) { <br> p=(페이지-1) /10 <br> }else{ <br> p=(((페이지-1)-(페이지- 1) )/10) <br> } <br> if(TopicNum%maxperpage==0) { <br> n=TopicNum/maxperpage; <br> }else{ <br> n=(TopicNum-TopicNum%maxperpage)/maxperpage 1; <br> } <br> document.write ('<table border="0" cellpadding="0" cellspacing="1" class="Tableborder5">'); <br> document.write ('<form method=post>'); <br> document.write ('<tr align="center">'); <br> document.write ('<td class="tabletitle1" title="' 목록 이름 '"> ' 목록 이름 ' </td>'); <br> document.write ('<td class="tabletitle1" title="总数"> ' TopicNum ' </td>'); <br> document.write ('<td class="tabletitle1" title="每页"> ' maxperpage ' </td>'); <br> document.write ('<td class="tabletitle1" title="页次"> ' 페이지 '/' Pcount '页 </td>'); <br> if (page==1){ <br> document.write ('<td class="tablebody1"> <font face=webdings>9</font> </td>'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="index' ExtName '" title="首页"><font face=webdings>9< ;/font></a></td>'); <br> }<br> if (p*10 > 0){ <br> document.write ('<td class="tablebody1"> <a href="' strLink (p*10) ExtName '" title="上十页"><font face=webdings>7</font></a> </td>'); <br> } <br> if (페이지 < 3){ <br> document.write ('<td class="tablebody1"> 首 页 </td>'); <br> document.write ('<td class="tablebody1"> <a href="index' ExtName '" title="上一页">上一页1</a> </td> ;'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="index' ExtName '" title="首页">首 页1/a> < /td>'); <br> document.write ('<td class="tablebody1"> <a href="' strLink (page-1) ExtName '" title="上一页">上一页</a> ; </td>'); <br> } <br> if (Pcount-page < 1){ <br> document.write ('<td class="tablebody1"> 下一页1 </td>'); <br> document.write ('<td class="tablebody1"> 尾 页 </td>'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="' strLink (1페이지) ExtName '" title="下一页">下一页</a> </td>'); <br> document.write ('<td class="tablebody1"> <a href="' strLink Pcount ExtName '" title="尾页">尾 页</a> </td> '); <br> } <br> for (var i=p*10 1;i<p*10 11;i ){ <BR> if (i==n) break; <BR> } <BR> if (i<n){ <BR> document.write ('<td class="tablebody1"> <a href="' strLink i ExtName '" title="下十页"><font face=webdings>8</font></a> <td>'); <br> } <br> if (page==n){ <br> document.write ('<td class="tablebody1"> <Font face=webdings>:</font> </td> ;'); <br> }else{ <br> document.write ('<td class="tablebody1"> <a href="' strLink n ExtName '" title="尾页"><font face=webdings> ;:</font></a></td>'); <br> } <br> //document.write ('<td class="tabletitle1" title="转到"> GO </td>'); <br> document.write ('<td class="tablebody1"><select class="PageInput" name="page" size="1" onchange="javascript:window.location=this.options[this .selectedIndex].value;">'); <br> document.write ('<option value="index' ExtName '">第1页</option>'); <br> for (var i=2;i<TopicNum;i ){ <BR> if (i==page){ <BR> document.write ('<option value="' strLink i ExtName '" 선택됨>第' 및 '页</option>'); <br> }else{ <br> if (i==1){ <br> document.write ('<option value="index' ExtName '">第1页</option>'); <br> }else{ <br> document.write ('<option value="' strLink i ExtName '">第' i '页</option>'); <br> } <br> } <br> if (i==n) break; <br> } <br> document.write ('</select></td>'); <br> document.write ('</tr>'); <br> document.write ('</form></table>'); <br>} <br>//--><br> </div>