drweb-luxus-mit-tabellen/beispiele/jsc-plugins/jssortpagertable.js


function JSSortPagerTable(element) {
    var div = document.createElement("div");
    var table =  element.getElementsByTagName("table")[0];
    div.className = "pager" ;
    div.setAttribute("id","pagerform");
    div.innerHTML = ''+
    '<form>'+
    '<img src="jquery.tablesorter/addons/pager/icons/first.png" class="first"/>'+
    '<img src="jquery.tablesorter/addons/pager/icons/prev.png" class="prev"/>'+
    '<input type="text" class="pagedisplay"/>'+
    '<img src="jquery.tablesorter/addons/pager/icons/next.png" class="next"/>'+
    '<img src="jquery.tablesorter/addons/pager/icons/last.png" class="last"/>'+
    '<select class="pagesize">'+
    '<option selected="selected"  value="10">10</option>'+
    '<option value="20">20</option>'+
    '<option value="30">30</option>'+
    '<option  value="40">40</option>'+
    '</select>'+
    '</form>' ;
        
    document.body.appendChild(div);
    $(table)
    .tablesorter({widthFixed: true}) 
    .tablesorterPager({container: $("#pagerform")}); 
}
    

Generated by GNU enscript 1.6.3.