Sex 15 Fev 2013, 6:13 pm | |
Gostaria de pedir exatamente oque o título diz!
Ir
Imagem do meu problema:
Endereço do meu fórum:
http://staffergroupbr.stuning.net/forum
Versão do meu fórum:PhpBB3
Seja bem-vindo ao SP-Design. Aqui, lhe ajudaremos com o tema de seu Fórum/Blog/site, vocês poderão solicitar e fornecer ajuda a outros usuários sobre o design e estrutura, tanto grafica, tanto em css e templantes.
Regulamento e informações: Equipe SP-Design Regras do fórum Como entrar na equipe Staff | Seções do fórum: Pedidos Graficos Pedidos de Códigos SP-Design e você | Antes de postar uma dúvida: Função busca Perguntas e respostas frequêntes Tutoriais, dicas e astúcias |
Sex 15 Fev 2013, 6:13 pm | |
Sáb 16 Fev 2013, 2:48 pm | |
jQuery(document).ready(function(){
jQuery("#page-sep").remove();
jQuery('#pagination').before("
<script language="Javascript">
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 = '<option><table cellspacing="0" cellpadding="0" border="0" style="width:auto;"><tr><td><span class="gen">' + string + "</span></td></tr></table></option>";
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 > 12) ? 12 : start;
start = (start - 1) * 15;
start = (isNaN(start) || start < 0 ) ? 0 : start;
self.location.href = start ? ['','fp'+start+'-'].join('/') : ['','f57-programacao'].join('/');
}
function destroyPagination()
{
if (document.body.firstChild != originalFirstChild)
{
document.body.removeChild(document.body.firstChild);
}
}
<option><table cellspacing="0" cellpadding="0" border="0" style="width:auto;"><tr><td><span class="gen">' + string + "</span></td></tr></table></option>
Sáb 16 Fev 2013, 4:01 pm | |
Seg 18 Fev 2013, 6:21 pm | |
Ter 19 Fev 2013, 5:45 am | |
Ter 19 Fev 2013, 6:06 pm | |
jQuery(document).ready(function(){
jQuery("#page-sep").remove();
jQuery('#pagination').before("
<script language="Javascript">
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 = '<option><table cellspacing="0" cellpadding="0" border="0" style="width:auto;"><tr><td><span class="gen">' + string + "</span></td></tr></table></option>";
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 > 12) ? 12 : start;
start = (start - 1) * 15;
start = (isNaN(start) || start < 0 ) ? 0 : start;
self.location.href = start ? ['','fp'+start+'-'].join('/') : ['','f-'].join('/');
}
function destroyPagination()
{
if (document.body.firstChild != originalFirstChild)
{
document.body.removeChild(document.body.firstChild);
}
}
Ter 19 Fev 2013, 6:40 pm | |
Ter 19 Fev 2013, 8:25 pm | |
$(document).ready(function() {
if($('#main-content .pagination:first span a:contains("2")').length) {
$('#main-content .pagination:first span a').each(function() {
$(this).prepend('<option value="'+$(this).attr("href")+'">'+$(this).html()+'</option>');
});
$('#main-content .pagination:first span').prepend('<select></select>');
$('#main-content .pagination:first span a option').appendTo('#main-content .pagination:first span select:first');
$('#main-content .pagination:first span select:first option').prepend('Página ');
$('#main-content .pagination:first span select:first').change(function() {
location.href=$(this).find('option:selected').attr('value');
});
$('#main-content .pagination:first span a').hide();
}
});
Ter 19 Fev 2013, 9:15 pm | |
Qua 20 Fev 2013, 7:18 am | |
$(document).ready(function() {
if($('#main-content .pagination:first span a:contains("2")').length) {
$('#main-content .pagination:first span a').each(function() {
$(this).prepend('<option value="'+$(this).attr("href")+'">'+$(this).html()+'</option>');
});
$('#main-content .pagination:first span').not('#main-content .pagination:first span span').before('<select class="sel-page"></select>');
$('#main-content .pagination:first span a option').appendTo('.sel-page');
$('.sel-page option').prepend('Página ');
if($('.sel-page option:last').html()=='Página ') {$('.sel-page option:last').html('Próxima página')}
$('.sel-page').change(function() {
location.href=$(this).find('option:selected').attr('value');
});
$('#main-content .pagination:first span, #main-content .pagination:first a[href="javascript:Pagination();"]:contains("Página "), body#phpbb div[style="position: absolute; z-index: 1000; visibility: visible; top: 723px; left: 879px;"]:contains("Ir à página")').hide();
}
});
Qua 20 Fev 2013, 3:55 pm | |
Você não está conectado. Conecte-se ou registre-se
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
|