- Type : variable d'affichage
- Utilisable dans :
album_modcp_body
,album_moderate_body
,album_search_body
,birthday_list_box
,calendar_scheduler_body
,groupcp_info_body
,memberlist_body
,merge_select_body
,modcp_body
,privmsgs_body
,profile_avatar_gallery
,report_list_body
,search_results_posts
,search_results_topics
,topics_blog_box
,topics_list_box
,viewcomments_body
,viewforum_body
,viewtopic_body
- Utilisation :
{PAGINATION}
Description*
Code html de la pagination.
- Exemple de remplacement français sur un sujet de deux pages :
<script type="text/javascript">
//<![CDATA[
var agt = navigator.userAgent.toLowerCase();
var originalFirstChild;
var display = false;
function createPagination(which, string, x, y)
{
if ( display == true )
{
destroyPagination();
display = false;
}
else
{
display = true;
if (typeof(originalFirstChild) == "undefined")
{
originalFirstChild = document.body.firstChild;
}
x = document.all ? (event.clientX + document.body.scrollLeft) : x;
y = document.all ? (event.clientY + document.body.scrollTop) : y;
element = document.createElement("div");
element.style.position = "absolute";
element.style.zIndex = 1000;
element.style.visibility = "hidden";
excessWidth = 0;
excessHeight = 20;
element.innerHTML = '<table cellspacing="0" cellpadding="0" border="0" style="width:auto;"><tr><td><span class="gen">' + string + "</span></td></tr></table>";
renderedElement = document.body.insertBefore(element, document.body.firstChild);
renderedWidth = renderedElement.offsetWidth;
renderedHeight = renderedElement.offsetHeight;
overFlowX = x + renderedWidth + excessWidth - document.body.offsetWidth;
x = overFlowX > 0 ? x - overFlowX : x;
overFlowY = y + renderedHeight + excessHeight - window.innerHeight - window.pageYOffset;
y = overFlowY > 0 ? y - overFlowY : y;
renderedElement.style.top = (y + 15) + "px";
renderedElement.style.left = (x + 15) + "px";
if (agt.indexOf("gecko") != -1 && agt.indexOf("win") != -1)
{
setTimeout('renderedElement.style.visibility = "visible"', 1);
}
else
{
renderedElement.style.visibility = "visible";
}
}
}
function Pagination()
{
}
function do_pagination_start()
{
var start = document.go_page.start.value;
start = (start > 2) ? 2 : start;
start = (start - 1) * 15;
start = (isNaN(start) || start < 0 ) ? 0 : start;
self.location.href = start ? ['','t6p'+start+'-eeeeeeeeeeeeeee'].join('/') : ['','t6-eeeeeeeeeeeeeee'].join('/');
}
function destroyPagination()
{
if (document.body.firstChild != originalFirstChild)
{
document.body.removeChild(document.body.firstChild);
}
}
//]]>
</script><a href="javascript:Pagination();" onmousedown="createPagination(this, '<form name="go_page" ><table class="forumline" cellpadding="5" cellspacing="1" border="0" width="150"><tr><th class="thHead">Aller à la page</th></tr><tr><td class="row1" align="center"><input type="text" class="bginput" name="start" size="5" onKeyPress="if (event.keyCode==13) { do_pagination_start();return false; }" /> <input type="button" class="button" value="Aller" onclick="do_pagination_start();return false;" /></td></tr></table></form>', event.pageX, event.pageY);">Aller à la page</a> : <b>1</b>, <a href="/t6p15-eeeeeeeeeeeeeee">2</a> <a href="/t6p15-eeeeeeeeeeeeeee"><img class="sprite-arrow_prosilver_right" src="http://illiweb.com/fa/empty.gif" alt="Suivant" /></a>
album_modcp_body
: lignes99
album_moderate_body
: lignes126
album_search_body
: lignes43
birthday_list_box
: lignes55
calendar_scheduler_body
: lignes10
,50
groupcp_info_body
: lignes130
memberlist_body
: lignes86
merge_select_body
: lignes3
modcp_body
: lignes68
privmsgs_body
: lignes64
profile_avatar_gallery
: lignes10
report_list_body
: lignes71
search_results_posts
: lignes28
search_results_topics
: lignes10
,49
viewcomments_body
: lignes48
,366
viewforum_body
: lignes44
,79
viewtopic_body
: lignes62
,337
album_modcp_body
: lignes93
album_moderate_body
: lignes140
album_search_body
: lignes43
birthday_list_box
: lignes53
calendar_scheduler_body
: lignes9
,49
groupcp_info_body
: lignes113
memberlist_body
: lignes71
merge_select_body
: lignes9
modcp_body
: lignes61
privmsgs_body
: lignes77
report_list_body
: lignes84
search_results_posts
: lignes28
search_results_topics
: lignes59
viewcomments_body
: lignes100
,439
viewforum_body
: lignes21
,56
viewtopic_body
: lignes105
,254
album_modcp_body
: lignes104
album_moderate_body
: lignes132
album_search_body
: lignes53
birthday_list_box
: lignes53
calendar_scheduler_body
: lignes5
,53
groupcp_info_body
: lignes110
memberlist_body
: lignes62
merge_select_body
: lignes6
modcp_body
: lignes57
privmsgs_body
: lignes116
report_list_body
: lignes62
search_results_posts
: lignes60
search_results_topics
: lignes65
topics_blog_box
: lignes31
,92
topics_list_box
: lignes35
,96
viewcomments_body
: lignes118
,536
viewtopic_body
: lignes119
,298
album_modcp_body
: lignes93
album_moderate_body
: lignes140
album_search_body
: lignes43
birthday_list_box
: lignes53
calendar_scheduler_body
: lignes9
,49
groupcp_info_body
: lignes121
memberlist_body
: lignes64
merge_select_body
: lignes9
modcp_body
: lignes61
privmsgs_body
: lignes73
report_list_body
: lignes84
search_results_posts
: lignes21
search_results_topics
: lignes63
viewcomments_body
: lignes58
,476
viewforum_body
: lignes31
,53
viewtopic_body
: lignes58
,294
album_modcp_body
: lignes22
,107
album_moderate_body
: lignes72
,150
album_search_body
: lignes22
,54
birthday_list_box
: lignes45
calendar_scheduler_body
: lignes21
,65
groupcp_info_body
: lignes25
,150
memberlist_body
: lignes27
,107
merge_select_body
: lignes19
,26
modcp_body
: lignes26
,80
privmsgs_body
: lignes37
,81
report_list_body
: lignes29
search_results_posts
: lignes26
,75
search_results_topics
: lignes25
,73
viewcomments_body
: lignes102
,458
viewforum_body
: lignes33
,42
viewtopic_body
: lignes101
,286
album_modcp_body
: lignes8
album_moderate_body
: lignes58
birthday_list_box
: lignes46
calendar_scheduler_body
: lignes8
,41
groupcp_info_body
: lignes7
memberlist_body
: lignes9
,114
merge_select_body
: lignes6
,22
modcp_body
: lignes7
privmsgs_body
: lignes7
,83
report_list_body
: lignes9
search_results_posts
: lignes9
,52
search_results_topics
: lignes10
,88
viewcomments_body
: lignes48
,505
viewforum_body
: lignes7
,25
viewtopic_body
: lignes48
,320
viewforum_body
: lignes13
,17
viewtopic_body
: lignes35
,97