Kinderärzte in Heidelberg für Ern��hrungsberatung

X-_X-_X-_


var cont;
var Paging;
var prev = new Array();

$(document).ready(function()
{
subinit();
});

function subinit()
{
if(JSA==0)
{
setTimeout("subinit()",1000);
return;
}
cont = $('#content #liste_erg LI:visible');
//alert("OK: "+cont.length);
if(cont.length>6)
{
$('.cont_pagination').show();
} else
{
$('.cont_pagination').hide();
}
Paging=$(".pagination").paging(cont.length, {
format: '(q -) nncnn (- p)',
perpage: 5,
lapping: 0,
page: 1,
onFormat: function(type) {
switch (type) {
case 'block':
if (!this.active)
return '';
else if (this.value != this.page)
return '
' + this.value + '
';
return '
' + this.value + '
';
case 'left':
if (this.active)
return '';
return('');
case 'right':
if (this.active)
return '
'+this.value+'
';
return('');
case 'next':
if (this.active)
return '';
return '
Weiter >
';
case 'prev':
return "Zurück";
case 'first':
return "Start";
case 'last':
return("Letzte");
case "leap":
if (this.active)
return "";
return "***";
case 'fill':
if (this.active)
return "...  ";
return "";
}
},
onSelect: function (page)
{
var data = this.slice;
console.log("Select: "+prev+" / "+data);
cont.slice(prev[0], prev[1]).hide();
cont.slice(data[0], data[1]).fadeIn();
prev = data;
return true;
}
});
//$(window).hashchange(function() {
// if (window.location.hash)
// Paging.setPage(window.location.hash.substr(1));
// else
// Paging.setPage(1);
//});

//$(window).hashchange();



}

Themen-Navigation

Das könnte dich auch interessieren:

Teile diesen Artikel in deinen sozialen Netzwerken:

Das könnte dich auch interessieren