change_page_content();
function change_page_content() {
// 取得資料筆數
dCount = oSource.children().children().length;
// 顯示頁碼
sPageStr = "
if(dCount var tt=$("#table_page_" fresh_id).children('.msdn').children().each(function(i) {
if(i==2||i==3||i==0||i==1){ $(this).addClass("取消");
} 🎜> });
}
else if(dNowIndex==Math.ceil(dCount / dCountOfPage)){
.children().each(function(i) {
if(i==2||i==3){
$(this).addClass("取消");
$(this).addClass("取消");
$(this).addClass("取消");
> });
}else if(dNowIndex==1){
var tt=$("#table_page_" fresh_id).children('.msdn').children). {
if(i==0||i==1){
$(this).addClass("取消");
} // 加入換頁事件
oObj.children().children().each(function() {
$(this).click(function() {
dNowIndex = $(this)[0].innerHTML;
if (dNowIndex = change_page_content();
nowIndex = dNowIndex;
}
change_page_content();
nowIndex = dNowIndex; }
if (dNowIndex == '下一頁') {
if (nowIndex change_page_content();
nowIndex = nowIndex 1;
}
> if (nowIndex > 1) {
dNowIndex = parseIn t(現在指數) - 1;
change_page_content();
nowIndex = nowIndex 🎜> });
});
}
};
})(jQuery);
複製程式碼
程式碼如下: