Isto é uma pré-visualização de um tema em Hitskin.com
Instalar o tema • Voltar para a ficha do tema
Ajuda com código
4 participantes
Fórum dos Fóruns :: Ajuda e atendimento ao utilizador :: Questões sobre códigos :: Questões resolvidas sobre HTML e BBCode
Página 1 de 1
Ajuda com código
Detalhes da questão
Endereço do fórum: http://narutoexiled.forumeiros.com/
Versão do fórum: phpBB3
Descrição
Como faço para colocar esse código abaixo nesta área aqui: https://i.imgur.com/nWHtNHj.png É possível?
Obs: estou usando o codigo como widget.
- Código:
<script type="text/javascript">
myStaff = ['/u1', '/u75', '/u72'];
staff_cache_time = 4*60*1000; // mm*ss*ms;
</script>
<div id="theStaff">
</div>
<div id="theContent" style="display:none">
</div><script type="text/javascript">
if (localStorage.staffOn && localStorage.staffEx > +new Date - staff_cache_time) jQuery('#theStaff').html(localStorage.staffOn);
else loadStaff();
function loadStaff() {
jQuery('#theContent').load('/viewonline #main-content a, a.gen', function() {
for (i=0; i<myStaff.length; i++) jQuery('#theContent a').filter(function() { return jQuery(this).attr('href') === myStaff[i] }).appendTo('#theStaff').wrap('<div class="myStaff">');
if (!jQuery('#theStaff .myStaff').length) jQuery('#theStaff').html('Sem equipe moderação online.');
jQuery('.myStaff a').each(function() {
var href = jQuery(this).attr('href');
jQuery(this).before('<span class="monAva"></span>').prev().load(href + ' #profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img', function() {
if (window.localStorage) {
localStorage.staffOn = jQuery('#theStaff').html();
localStorage.staffEx = +new Date;
}
});
});
});
}
jQuery(document).ready(function(){ jQuery('.myStaff a').each(function() { var href = jQuery(this).attr('href');
var mp = this.pathname; var user = mp.substring(1,5); var usert = "/privmsg?mode=post&u=";var mpuser = usert + user;
jQuery(this).after('<br><span class="monPro"> <a href='+href+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/profil27.png"></a> <a href='+mpuser+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/pm13.png"></a></span>');
});
});
</script><style type="text/css">.monAva img {
height: 20px;
width: 20px;
margin-right: 5px;
background: none repeat scroll 0 0 #FFF;
border: 1px solid #d5d1c8;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
padding: 1px;
}
.monAva img:hover {
border: 1px solid black;
}
.myStaff a {
margin: 0 !important;
vertical-align: top !important;
}
.monPro {position: relative; left: 25px;top: 5px}
</style>
Re: Ajuda com código
Olá,
sim é possível vá ao template onde está essas tabs muito provavelmente será o overall_header e insira nesse campo.
Desde já aguardo uma resposta,
obrigado
sim é possível vá ao template onde está essas tabs muito provavelmente será o overall_header e insira nesse campo.
Desde já aguardo uma resposta,
obrigado
tikky- Admineiro
- Membro desde : 13/01/2017
Mensagens : 7964
Pontos : 9219
Re: Ajuda com código
Pedxz escreveu:Olá,
sim é possível vá ao template onde está essas tabs muito provavelmente será o overall_header e insira nesse campo.
Desde já aguardo uma resposta,
obrigado
O que mostra na imagem está em Visualização - Página inicial - Geral. O código é este:
- Código:
<style type="text/css">.homepageTitle { color:#000; font-size:21px; font-style:italic; font-family:"Roboto", Verdana, Arial, Sans-serif; background:url(http://2img.net/i/fa/optimisation_fdf/fr/puce10.png) no-repeat 0 0; height:40px; padding:5px 0px 0px 25px; }
#homepageLogo { float:right; margin-left:20px; }
#hideHomepageMessage { float:right; cursor:pointer; }
/* INFO BOX */
#faInfo { color:#666; background:#FFF; border:1px solid #000; border-bottom-width:3px; border-radius:0 3px 3px 3px; padding:6px; }
#faInfoNav { background:#FFF; border:1px solid #000; border-bottom:none; border-radius:3px 3px 0 0; overflow:hidden; display:inline-block; }
#faInfoNav a { color:#333; background:#FFF; border-right:1px solid #000; font-size:11px; font-weight:bold; display:inline-block; padding:6px 9px; }
#faInfoNav a:hover, #faInfoNav .infoActif { color:#FFF; background:#000; }
#faInfoAnn { background-image:url('https://i.imgur.com/gwmaTS0.png') }
#faInfoSearch { background-image:url('https://i.imgur.com/O570AB8.png') }
#faInfoExplain { background-image:url('https://i.imgur.com/tmhgW83.png') }
#faInfoSuggestion { background-image:url('https://i.imgur.com/Q3PbeUT.png') }
#faInfoStaff { background-image:url('aaa') }
.infoBlock { text-align:justify; background-repeat:no-repeat; background-position:0 50%; padding-left:75px; min-height:100px; }
/* INFO NEWS */
.faNewsRow { background:#F0F6F8; border-radius:3px; margin:3px 0; padding:5px 10px; }
.faNewsRow a { font-weight:bold }
.faNewsDate { font-size:11px; font-style:italic; background:url(http://2img.net/i/fa/subsilver/icon_miniposted.gif) no-repeat 0 center; padding-left:12px; float:right; }
/* PROFILE STYLE */
#userProfile { font-size:11px; position:relative; margin-top:30px; margin-bottom:10px; }
#userProfile .leftCol { float:left; text-align:center; width:20%; }
#userProfile .rightCol { float:left; width:25%; }
#userName { background:#FFF; border:1px solid #DDD; color:#39C; font-weight:bold; font-family:"Trebuchet MS", Verdana, Arial, Sans-serif; border-radius:3px 3px 0 0; position:absolute; left:3px; top:-20px; padding:0 12px; line-height:18px; }
#userName span { font-weight:normal }
#userAvatar img { max-width:100px }
#userAvatar { display:inline-block; overflow:hidden; min-height:100px; min-width:100px; }
#userProfile .title { color:#39C; font-weight:bold; border-bottom:1px solid #39C; padding-bottom:3px; margin-bottom:3px; width:90%; }
#userProfile .statLabel { display:inline-block; width:85px; font-weight:bold; text-align:right; margin-right:6px; }
/* SEARCH BAR */
#fa_google_search form.gsc-search-box { width:80% }
.gsc-input-box { height:auto }
.gsc-search-box-tools .gsc-search-box .gsc-input, .gsib_a, .cse .gsc-control-cse, .gsc-control-cse { padding:0 }
.gsc-control-cse, .gsc-input-box, input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { background:none; border:none; }
input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { height:12px; background-color:#369FCF; border-radius:0 3px 3px 0; margin:0; margin-left:21px; padding:10px; box-shadow:none; }
#gsc-i-id1 { height:18px !important; padding:6px 12px !important; border:1px solid #369FCF !important; box-shadow:none !important; cursor:text; }
#gsc-i-id1, .gsc-input-box-focus { border-radius:3px 0 0 3px }
.gsib_b { position:relative }
.gsst_a { position:absolute; top:6px; }</style>
<div id="faInfoNav">
<a href="#" class="infoActif" id="_faInfoAnn">Links rápidos</a><a href="#" id="_faInfoSearch">Evento atual</a><a href="#" id="_faInfoExplain">Explique sua dúvida</a><a href="#" id="_faInfoSuggestion">Como jogar</a><a href="#" id="_faInfoStaff" style="border:none">Equipe EXILED</a>
</div>
<div id="faInfo">
<div class="infoBlock" id="faInfoAnn">
<div id="faNewsBox">
<div class="faNewsRow">
<a href="/f1-" itemprop="url">Regras do Sistema</a>
</div>
<div class="faNewsRow">
<a href="/h1-" itemprop="url">Loja de Créditos</a>
</div>
<div class="faNewsRow">
<a href="/f10-" itemprop="url">Dúvidas & Sugestões</a>
</div>
<div class="faNewsRow">
<a href="/t321-" itemprop="url">Lista de Itens</a>
</div>
</div>
<div style="display:none" id="faNewsRSS">
</div>
</div>
<div style="display:none;" class="infoBlock" id="faInfoSearch">
a
<div style="display:none;height:30px;padding:6px 0;" id="fa_google_search">
c
</div>
<form action="/search" method="get" class="faForumSearch" style="padding:6px 0;" id="searchNoJS">
<input type="text" value="" name="search_keywords" style="width:75%;" class="inputbox search" /> <input type="submit" value="Search" class="button2" />
</form>
b
</div>
<div style="display:none;" class="infoBlock" id="faInfoExplain">
Se você explicar o problema que está enfrentando apresentando todos os detalhes, o suporte será mais rápido! Acesse a área de <a href="/f10-" style="font-weight:bold;" itemprop="url">Dúvidas</a>. <br /><br />
</div>
<div style="display:none;" class="infoBlock" id="faInfoSuggestion">
Após ler as regras, o primeiro passo é criar a sua ficha. Para isso, acesse a área <a href="/f7-" style="font-weight:bold;" itemprop="url">Diretório de Fichas</a> <br /><br /> Por favor, leve o tempo que for necessário.
</div>
<div style="display:none;" class="infoBlock" id="faInfoStaff">
A equipe deste fórum não lhe fornece qualquer apoio por MP. Para que suas dúvidas sejam sanadas, por favor, crie um novo tópico no setor de dúvidas para que possa ser atentido. Se o seu problema requer que você entre em contato com um membro do administrativo, você pode ver a composição da equipe abaixo: <br /><br />Por favor <strong>não contactar vários membros da equipe de uma só vez</strong> para um mesmo assunto.
</div>
</div><script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script> <script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script>
O template overall_header é este:
- Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" id="min-width" lang="{L_LANG_HTML}" xml:lang="{L_LANG_HTML}" {NAMESPACE_FB_LIKE} {NAMESPACE_FB} {NAMESPACE_BBCODE}>
<head>
<title>{SITENAME_TITLE}{PAGE_TITLE}</title>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<!-- BEGIN switch_compat_meta -->
<meta http-equiv="X-UA-Compatible" content="IE={switch_compat_meta.VERSION}" />
<!-- END switch_compat_meta -->
<!-- BEGIN switch_canonical_url -->
<link rel="canonical" href="{switch_canonical_url.CANONICAL_URL}" />
<!-- END switch_canonical_url -->
{META_FAVICO}
{META}
{META_FB_LIKE}
<meta name="title" content="{SITENAME_TITLE}{PAGE_TITLE}" />
{T_HEAD_STYLESHEET}
{CSS}
<link rel="search" type="application/opensearchdescription+xml" href="/improvedsearch.xml" title="{SITENAME}" />
<link rel="search" type="application/opensearchdescription+xml" href="{URL_BOARD_DIRECTORY}/search/improvedsearch.xml" title="{SEARCH_FORUMS}" />
<script src="{JQUERY_PATH}" type="text/javascript"></script>
<!-- BEGIN switch_recent_jquery -->
<script src="{JS_DIR}jquery1.9/jquery-migrate-1.4.1.js" type="text/javascript"></script>
<script src="{JQUERY_DIR}browser/v1.0/jquery.browser.min.js" type="text/javascript"></script>
<script src="{JQUERY_DIR}support/jquery.support.js" type="text/javascript"></script>
<!-- END switch_recent_jquery -->
<script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>
{RICH_SNIPPET_GOOGLE}
<!-- BEGIN switch_fb_login -->
<script src="https://connect.facebook.net/{switch_fb_login.FB_LOCAL}/all.js" type="text/javascript"></script>
<script src="{switch_fb_login.JS_FB_LOGIN}" type="text/javascript"></script>
<!-- END switch_fb_login -->
<!-- BEGIN switch_ticker -->
<link type="text/css" rel="stylesheet" href="{JQUERY_DIR}ticker/ticker.css" />
<script src="{JQUERY_DIR}ticker/ticker.js" type="text/javascript"></script>
<!-- END switch_ticker -->
<!-- BEGIN switch_ticker_new -->
<script src="{JQUERY_DIR}jcarousel/jquery.jcarousel.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
/* Definir le sens de direction en fonction du panneau admin */
var tickerDirParam = "{switch_ticker.DIRECTION}";
var slid_vert = false;
var auto_dir = 'next';
var h_perso = parseInt({switch_ticker.HEIGHT});
switch( tickerDirParam )
{
case 'top' :
slid_vert = true;
break;
case 'left':
break;
case 'bottom':
slid_vert = true;
auto_dir = 'prev';
break;
case 'right':
auto_dir = 'prev';
break;
default:
slid_vert = true;
}
$(document).ready(function() {
$('#fa_ticker_content').css('display','block');
var width_max = $('ul#fa_ticker_content').width();
var width_item = Math.floor(width_max / {switch_ticker.SIZE});
if (width_max > 0)
{
$('ul#fa_ticker_content li').css('float','left').css('list-style','none').width(width_item).find('img').each(function () {
if ($(this).width() > width_item)
{
var ratio = $(this).width() / width_item;
var new_height = Math.round($(this).height() / ratio);
$(this).height(new_height).width(width_item);
}
});
if (slid_vert)
{
var height_max = h_perso;
$('ul#fa_ticker_content li').each( function () {
if ($(this).height() > height_max)
{
height_max = $(this).height();
}
} );
$('ul#fa_ticker_content').width(width_item).height(height_max).css('marginLeft','auto').css('marginRight','auto');
$('ul#fa_ticker_content li').height(height_max);
}
$('#fa_ticker_content').jcarousel({
vertical: slid_vert,
wrap: 'circular',
auto: {switch_ticker.STOP_TIME},
auto_direction: auto_dir,
scroll: 1,
size: {switch_ticker.SIZE},
height_max: height_max,
animation: {switch_ticker.SPEED}
});
}
else
{
$('ul#fa_ticker_content li:not(:first)').css('display','none');
$('ul#fa_ticker_content li:first').css('list-style','none').css('text-align','center');
}
});
//]]>
</script>
<!-- END switch_ticker_new -->
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
<!-- BEGIN switch_enable_pm_popup -->
pm = window.open('{U_PRIVATEMSGS_POPUP}', '_faprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
if(pm != null) { pm.focus(); }
<!-- END switch_enable_pm_popup -->
<!-- BEGIN switch_report_popup -->
report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT},resizable=yes,scrollbars=no,WIDTH={switch_report_popup.S_WIDTH}');
if(report != null) { report.focus(); }
<!-- END switch_report_popup -->
<!-- BEGIN switch_ticker -->
$(document).ready(function() {
Ticker.start({
height : {switch_ticker.HEIGHT},
spacing : {switch_ticker.SPACING},
speed : {switch_ticker.SPEED},
direction : '{switch_ticker.DIRECTION}',
pause : {switch_ticker.STOP_TIME}
});
});
<!-- END switch_ticker -->
});
<!-- BEGIN switch_login_popup -->
var logInPopUpLeft, logInPopUpTop, logInPopUpWidth = {LOGIN_POPUP_WIDTH}, logInPopUpHeight = {LOGIN_POPUP_HEIGHT}, logInBackgroundResize = true, logInBackgroundClass = false;
$(document).ready( function() {
$(window).resize(function() {
var windowWidth = document.documentElement.clientWidth;
var popupWidth = $("#login_popup").width();
var mypopup = $("#login_popup");
$("#login_popup").css({
"left": windowWidth/2 - popupWidth/2
});
});
});
<!-- END switch_login_popup -->
//]]>
</script>
{GREETING_POPUP}
<style type="text/css">
#page-footer, div.navbar, div.navbar ul.linklist {
display: block !important;
}
ul.linklist li.rightside, ul.linklist li.rightside a.copyright {
display: inline !important;
}
<!-- BEGIN switch_ticker_new -->
.jcarousel-skin-tango .jcarousel-item {
text-align:center;
width: 10px;
}
.jcarousel-skin-tango .jcarousel-item-horizontal {
margin-right: {switch_ticker.SPACING}px;
}
.jcarousel-skin-tango .jcarousel-item-vertical {
margin-bottom: {switch_ticker.SPACING}px;
}
<!-- END switch_ticker_new -->
</style>
{HOSTING_JS}
<!-- BEGIN google_analytics_code -->
<script type="text/javascript">
//<![CDATA[
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{G_ANALYTICS_ID}', 'auto');
<!-- BEGIN google_analytics_code_bis -->
ga('create', '{G_ANALYTICS_ID_BIS}', 'auto', 'bis');
<!-- END google_analytics_code_bis -->
ga('send', 'pageview');
<!-- BEGIN google_analytics_code_bis -->
ga('bis.send', 'pageview');
<!-- END google_analytics_code_bis -->
//]]>
</script>
<!-- END google_analytics_code -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700,700i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet" />
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" />
</head>
<body id="modernbb">
<!-- BEGIN hitskin_preview -->
<div id="hitskin_preview" style="display: block;">
<h1><img src="{hitskin_preview.PATH_IMG_FA}hitskin/hitskin_logo.png" alt="" /> <em>Hit</em>skin.com</h1>
<div class="content">
<p>
{hitskin_preview.L_THEME_SITE_PREVIEW}
<br />
<span>{hitskin_preview.U_INSTALL_THEME}<a href="https://{hitskin_preview.U_RETURN_THEME}">{hitskin_preview.L_RETURN_THEME}</a></span>
</p>
</div>
</div>
<!-- END hitskin_preview -->
<!-- BEGIN switch_login_popup -->
<div id="login_popup" style="z-index: 10000 !important;">
<div class="h3">{SITENAME}</div>
<div id="login_popup_message">
{LOGIN_POPUP_MSG}
</div>
<div id="login_popup_buttons">
<form action="{S_LOGIN_ACTION}" method="get">
<input type="submit" class="button1" value="{L_LOGIN}" />
<input type="button" class="button1" value="{L_REGISTER}" onclick="parent.location='{U_REGISTER}';" />
<input id="login_popup_close" type="button" class="button2" value="{L_DONT_DISPLAY_AGAIN}" />
</form>
</div>
</div>
<!-- END switch_login_popup -->
<a id="top" name="top" accesskey="t"></a>
{JAVASCRIPT}
<div id="page-header">
<div class="headerbar">
<div id="headerbar-top">
<div class="wrap">
<a href="{U_INDEX}" id="logo"><img src="{LOGO}" alt="{L_INDEX}" /></a>
<ul class="navbar navlinks{NAVBAR_BORDERLESS}">
<li>{GENERATED_NAV_BAR}</li>
</ul>
</div>
</div>
<div class="wrap">
<div id="site-desc">
<!-- BEGIN switch_h1 -->
<div id="site-title">
<h1>NARUTO EXILED</h1>
</div>
<!-- END switch_h1 -->
<!-- BEGIN switch_desc -->
<p>{switch_desc.SITE_DESCRIPTION}</p>
<!-- END switch_desc -->
</div>
</div>
</div>
<!-- BEGIN switch_ticker_new -->
<div id="fa_ticker_blockD" style="margin-top:4px;">
<div class="module">
<div class="inner">
<div id="fa_ticker_container">
<ul id="fa_ticker_content" class="jcarousel-skin-tango" style="display:none">
<!-- BEGIN ticker_row -->
<li>{switch_ticker.ticker_row.ELEMENT}</li>
<!-- END ticker_row -->
</ul>
</div>
</div>
</div>
</div>
<!-- END switch_ticker_new -->
</div>
<div class="conteneur_minwidth_IE">
<div class="conteneur_layout_IE">
<div class="conteneur_container_IE">
<div id="wrap">
<div id="page-body">
<!-- BEGIN switch_ticker -->
<div id="fa_ticker_block" style="margin-top:4px;">
<div class="module">
<div class="inner">
<div id="fa_ticker_container">
<div id="fa_ticker" style="height:{switch_ticker.HEIGHT}px;">
<div class="fa_ticker_content">
<!-- BEGIN ticker_row -->
<div>{switch_ticker.ticker_row.ELEMENT}</div>
<!-- END ticker_row -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END switch_ticker -->
<div id="{ID_CONTENT_CONTAINER}"{CLASS_CONTENT_CONTAINER}>
<div id="outer-wrapper">
<div id="wrapper">
<div id="{ID_LEFT}">
<!-- BEGIN giefmod_index1 -->
{giefmod_index1.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index1 -->
</div>
<div id="container">
<div id="content-main">
<div id="main">
<div id="main-content">
Você poderia introduzi-lo para mim, por favor?
Re: Ajuda com código
Mude o primeiro código que você me passou para
- Código:
<style type="text/css">.homepageTitle { color:#000; font-size:21px; font-style:italic; font-family:"Roboto", Verdana, Arial, Sans-serif; background:url(http://2img.net/i/fa/optimisation_fdf/fr/puce10.png) no-repeat 0 0; height:40px; padding:5px 0px 0px 25px; }
#homepageLogo { float:right; margin-left:20px; }
#hideHomepageMessage { float:right; cursor:pointer; }
/* INFO BOX */
#faInfo { color:#666; background:#FFF; border:1px solid #000; border-bottom-width:3px; border-radius:0 3px 3px 3px; padding:6px; }
#faInfoNav { background:#FFF; border:1px solid #000; border-bottom:none; border-radius:3px 3px 0 0; overflow:hidden; display:inline-block; }
#faInfoNav a { color:#333; background:#FFF; border-right:1px solid #000; font-size:11px; font-weight:bold; display:inline-block; padding:6px 9px; }
#faInfoNav a:hover, #faInfoNav .infoActif { color:#FFF; background:#000; }
#faInfoAnn { background-image:url('https://i.imgur.com/gwmaTS0.png') }
#faInfoSearch { background-image:url('https://i.imgur.com/O570AB8.png') }
#faInfoExplain { background-image:url('https://i.imgur.com/tmhgW83.png') }
#faInfoSuggestion { background-image:url('https://i.imgur.com/Q3PbeUT.png') }
#faInfoStaff { background-image:url('aaa') }
.infoBlock { text-align:justify; background-repeat:no-repeat; background-position:0 50%; padding-left:75px; min-height:100px; }
/* INFO NEWS */
.faNewsRow { background:#F0F6F8; border-radius:3px; margin:3px 0; padding:5px 10px; }
.faNewsRow a { font-weight:bold }
.faNewsDate { font-size:11px; font-style:italic; background:url(http://2img.net/i/fa/subsilver/icon_miniposted.gif) no-repeat 0 center; padding-left:12px; float:right; }
/* PROFILE STYLE */
#userProfile { font-size:11px; position:relative; margin-top:30px; margin-bottom:10px; }
#userProfile .leftCol { float:left; text-align:center; width:20%; }
#userProfile .rightCol { float:left; width:25%; }
#userName { background:#FFF; border:1px solid #DDD; color:#39C; font-weight:bold; font-family:"Trebuchet MS", Verdana, Arial, Sans-serif; border-radius:3px 3px 0 0; position:absolute; left:3px; top:-20px; padding:0 12px; line-height:18px; }
#userName span { font-weight:normal }
#userAvatar img { max-width:100px }
#userAvatar { display:inline-block; overflow:hidden; min-height:100px; min-width:100px; }
#userProfile .title { color:#39C; font-weight:bold; border-bottom:1px solid #39C; padding-bottom:3px; margin-bottom:3px; width:90%; }
#userProfile .statLabel { display:inline-block; width:85px; font-weight:bold; text-align:right; margin-right:6px; }
/* SEARCH BAR */
#fa_google_search form.gsc-search-box { width:80% }
.gsc-input-box { height:auto }
.gsc-search-box-tools .gsc-search-box .gsc-input, .gsib_a, .cse .gsc-control-cse, .gsc-control-cse { padding:0 }
.gsc-control-cse, .gsc-input-box, input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { background:none; border:none; }
input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { height:12px; background-color:#369FCF; border-radius:0 3px 3px 0; margin:0; margin-left:21px; padding:10px; box-shadow:none; }
#gsc-i-id1 { height:18px !important; padding:6px 12px !important; border:1px solid #369FCF !important; box-shadow:none !important; cursor:text; }
#gsc-i-id1, .gsc-input-box-focus { border-radius:3px 0 0 3px }
.gsib_b { position:relative }
.gsst_a { position:absolute; top:6px; }</style>
<div id="faInfoNav">
<a href="#" class="infoActif" id="_faInfoAnn">Links rápidos</a><a href="#" id="_faInfoSearch">Evento atual</a><a href="#" id="_faInfoExplain">Explique sua dúvida</a><a href="#" id="_faInfoSuggestion">Como jogar</a><a href="#" id="_faInfoStaff" style="border:none">Equipe EXILED</a>
</div>
<div id="faInfo">
<div class="infoBlock" id="faInfoAnn">
<div id="faNewsBox">
<div class="faNewsRow">
<a href="/f1-" itemprop="url">Regras do Sistema</a>
</div>
<div class="faNewsRow">
<a href="/h1-" itemprop="url">Loja de Créditos</a>
</div>
<div class="faNewsRow">
<a href="/f10-" itemprop="url">Dúvidas & Sugestões</a>
</div>
<div class="faNewsRow">
<a href="/t321-" itemprop="url">Lista de Itens</a>
</div>
</div>
<div style="display:none" id="faNewsRSS">
</div>
</div>
<div style="display:none;" class="infoBlock" id="faInfoSearch">
a
<div style="display:none;height:30px;padding:6px 0;" id="fa_google_search">
c
</div>
<form action="/search" method="get" class="faForumSearch" style="padding:6px 0;" id="searchNoJS">
<input type="text" value="" name="search_keywords" style="width:75%;" class="inputbox search" /> <input type="submit" value="Search" class="button2" />
</form>
b
</div>
<div style="display:none;" class="infoBlock" id="faInfoExplain">
Se você explicar o problema que está enfrentando apresentando todos os detalhes, o suporte será mais rápido! Acesse a área de <a href="/f10-" style="font-weight:bold;" itemprop="url">Dúvidas</a>. <br /><br />
</div>
<div style="display:none;" class="infoBlock" id="faInfoSuggestion">
Após ler as regras, o primeiro passo é criar a sua ficha. Para isso, acesse a área <a href="/f7-" style="font-weight:bold;" itemprop="url">Diretório de Fichas</a> <br /><br /> Por favor, leve o tempo que for necessário.
</div>
<div style="display:none;" class="infoBlock" id="faInfoStaff">
<script type="text/javascript">
myStaff = ['/u1', '/u75', '/u72'];
staff_cache_time = 4*60*1000; // mm*ss*ms;
</script>
<div id="theStaff">
</div>
<div id="theContent" style="display:none">
</div><script type="text/javascript">
if (localStorage.staffOn && localStorage.staffEx > +new Date - staff_cache_time) jQuery('#theStaff').html(localStorage.staffOn);
else loadStaff();
function loadStaff() {
jQuery('#theContent').load('/viewonline #main-content a, a.gen', function() {
for (i=0; i<myStaff.length; i++) jQuery('#theContent a').filter(function() { return jQuery(this).attr('href') === myStaff[i] }).appendTo('#theStaff').wrap('<div class="myStaff">');
if (!jQuery('#theStaff .myStaff').length) jQuery('#theStaff').html('Sem equipe moderação online.');
jQuery('.myStaff a').each(function() {
var href = jQuery(this).attr('href');
jQuery(this).before('<span class="monAva"></span>').prev().load(href + ' #profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img', function() {
if (window.localStorage) {
localStorage.staffOn = jQuery('#theStaff').html();
localStorage.staffEx = +new Date;
}
});
});
});
}
jQuery(document).ready(function(){ jQuery('.myStaff a').each(function() { var href = jQuery(this).attr('href');
var mp = this.pathname; var user = mp.substring(1,5); var usert = "/privmsg?mode=post&u=";var mpuser = usert + user;
jQuery(this).after('<br><span class="monPro"> <a href='+href+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/profil27.png"></a> <a href='+mpuser+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/pm13.png"></a></span>');
});
});
</script><style type="text/css">.monAva img {
height: 20px;
width: 20px;
margin-right: 5px;
background: none repeat scroll 0 0 #FFF;
border: 1px solid #d5d1c8;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
padding: 1px;
}
.monAva img:hover {
border: 1px solid black;
}
.myStaff a {
margin: 0 !important;
vertical-align: top !important;
}
.monPro {position: relative; left: 25px;top: 5px}
</style>
</div>
</div><script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script> <script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script>
tikky- Admineiro
- Membro desde : 13/01/2017
Mensagens : 7964
Pontos : 9219
Re: Ajuda com código
Olá.
Tente trocar o seu código overall_header por esse:
Resulta?
o/
Tente trocar o seu código overall_header por esse:
- Código:
<style type="text/css">.homepageTitle { color:#000; font-size:21px; font-style:italic; font-family:"Roboto", Verdana, Arial, Sans-serif; background:url(http://2img.net/i/fa/optimisation_fdf/fr/puce10.png) no-repeat 0 0; height:40px; padding:5px 0px 0px 25px; }
#homepageLogo { float:right; margin-left:20px; }
#hideHomepageMessage { float:right; cursor:pointer; }
/* INFO BOX */
#faInfo { color:#666; background:#FFF; border:1px solid #000; border-bottom-width:3px; border-radius:0 3px 3px 3px; padding:6px; }
#faInfoNav { background:#FFF; border:1px solid #000; border-bottom:none; border-radius:3px 3px 0 0; overflow:hidden; display:inline-block; }
#faInfoNav a { color:#333; background:#FFF; border-right:1px solid #000; font-size:11px; font-weight:bold; display:inline-block; padding:6px 9px; }
#faInfoNav a:hover, #faInfoNav .infoActif { color:#FFF; background:#000; }
#faInfoAnn { background-image:url('https://i.imgur.com/gwmaTS0.png') }
#faInfoSearch { background-image:url('https://i.imgur.com/O570AB8.png') }
#faInfoExplain { background-image:url('https://i.imgur.com/tmhgW83.png') }
#faInfoSuggestion { background-image:url('https://i.imgur.com/Q3PbeUT.png') }
#faInfoStaff { background-image:url('aaa') }
.infoBlock { text-align:justify; background-repeat:no-repeat; background-position:0 50%; padding-left:75px; min-height:100px; }
/* INFO NEWS */
.faNewsRow { background:#F0F6F8; border-radius:3px; margin:3px 0; padding:5px 10px; }
.faNewsRow a { font-weight:bold }
.faNewsDate { font-size:11px; font-style:italic; background:url(http://2img.net/i/fa/subsilver/icon_miniposted.gif) no-repeat 0 center; padding-left:12px; float:right; }
/* PROFILE STYLE */
#userProfile { font-size:11px; position:relative; margin-top:30px; margin-bottom:10px; }
#userProfile .leftCol { float:left; text-align:center; width:20%; }
#userProfile .rightCol { float:left; width:25%; }
#userName { background:#FFF; border:1px solid #DDD; color:#39C; font-weight:bold; font-family:"Trebuchet MS", Verdana, Arial, Sans-serif; border-radius:3px 3px 0 0; position:absolute; left:3px; top:-20px; padding:0 12px; line-height:18px; }
#userName span { font-weight:normal }
#userAvatar img { max-width:100px }
#userAvatar { display:inline-block; overflow:hidden; min-height:100px; min-width:100px; }
#userProfile .title { color:#39C; font-weight:bold; border-bottom:1px solid #39C; padding-bottom:3px; margin-bottom:3px; width:90%; }
#userProfile .statLabel { display:inline-block; width:85px; font-weight:bold; text-align:right; margin-right:6px; }
/* SEARCH BAR */
#fa_google_search form.gsc-search-box { width:80% }
.gsc-input-box { height:auto }
.gsc-search-box-tools .gsc-search-box .gsc-input, .gsib_a, .cse .gsc-control-cse, .gsc-control-cse { padding:0 }
.gsc-control-cse, .gsc-input-box, input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { background:none; border:none; }
input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { height:12px; background-color:#369FCF; border-radius:0 3px 3px 0; margin:0; margin-left:21px; padding:10px; box-shadow:none; }
#gsc-i-id1 { height:18px !important; padding:6px 12px !important; border:1px solid #369FCF !important; box-shadow:none !important; cursor:text; }
#gsc-i-id1, .gsc-input-box-focus { border-radius:3px 0 0 3px }
.gsib_b { position:relative }
.gsst_a { position:absolute; top:6px; }</style>
<div id="faInfoNav">
<a href="#" class="infoActif" id="_faInfoAnn">Links rápidos</a><a href="#" id="_faInfoSearch">Evento atual</a><a href="#" id="_faInfoExplain">Explique sua dúvida</a><a href="#" id="_faInfoSuggestion">Como jogar</a><a href="#" id="_faInfoStaff" style="border:none">Equipe EXILED</a>
</div>
<div id="faInfo">
<div class="infoBlock" id="faInfoAnn">
<div id="faNewsBox">
<div class="faNewsRow">
<a href="/f1-" itemprop="url">Regras do Sistema</a>
</div>
<div class="faNewsRow">
<a href="/h1-" itemprop="url">Loja de Créditos</a>
</div>
<div class="faNewsRow">
<a href="/f10-" itemprop="url">Dúvidas & Sugestões</a>
</div>
<div class="faNewsRow">
<a href="/t321-" itemprop="url">Lista de Itens</a>
</div>
</div>
<div style="display:none" id="faNewsRSS">
</div>
</div>
<div style="display:none;" class="infoBlock" id="faInfoSearch">
a
<div style="display:none;height:30px;padding:6px 0;" id="fa_google_search">
c
</div>
<form action="/search" method="get" class="faForumSearch" style="padding:6px 0;" id="searchNoJS">
<input type="text" value="" name="search_keywords" style="width:75%;" class="inputbox search" /> <input type="submit" value="Search" class="button2" />
</form>
b
</div>
<div style="display:none;" class="infoBlock" id="faInfoExplain">
Se você explicar o problema que está enfrentando apresentando todos os detalhes, o suporte será mais rápido! Acesse a área de <a href="/f10-" style="font-weight:bold;" itemprop="url">Dúvidas</a>. <br /><br />
</div>
<div style="display:none;" class="infoBlock" id="faInfoSuggestion">
Após ler as regras, o primeiro passo é criar a sua ficha. Para isso, acesse a área <a href="/f7-" style="font-weight:bold;" itemprop="url">Diretório de Fichas</a> <br /><br /> Por favor, leve o tempo que for necessário.
</div>
<div style="display:none;" class="infoBlock" id="faInfoStaff">
<script type="text/javascript">
myStaff = ['/u1', '/u75', '/u72'];
staff_cache_time = 4*60*1000; // mm*ss*ms;
</script>
<div id="theStaff">
</div>
<div id="theContent" style="display:none">
</div><script type="text/javascript">
if (localStorage.staffOn && localStorage.staffEx > +new Date - staff_cache_time) jQuery('#theStaff').html(localStorage.staffOn);
else loadStaff();
function loadStaff() {
jQuery('#theContent').load('/viewonline #main-content a, a.gen', function() {
for (i=0; i<myStaff.length; i++) jQuery('#theContent a').filter(function() { return jQuery(this).attr('href') === myStaff[i] }).appendTo('#theStaff').wrap('<div class="myStaff">');
if (!jQuery('#theStaff .myStaff').length) jQuery('#theStaff').html('Sem equipe moderação online.');
jQuery('.myStaff a').each(function() {
var href = jQuery(this).attr('href');
jQuery(this).before('<span class="monAva"></span>').prev().load(href + ' #profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img', function() {
if (window.localStorage) {
localStorage.staffOn = jQuery('#theStaff').html();
localStorage.staffEx = +new Date;
}
});
});
});
}
jQuery(document).ready(function(){ jQuery('.myStaff a').each(function() { var href = jQuery(this).attr('href');
var mp = this.pathname; var user = mp.substring(1,5); var usert = "/privmsg?mode=post&u=";var mpuser = usert + user;
jQuery(this).after('<br><span class="monPro"> <a href='+href+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/profil27.png"></a> <a href='+mpuser+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/pm13.png"></a></span>');
});
});
</script><style type="text/css">.monAva img {
height: 20px;
width: 20px;
margin-right: 5px;
background: none repeat scroll 0 0 #FFF;
border: 1px solid #d5d1c8;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
padding: 1px;
}
.monAva img:hover {
border: 1px solid black;
}
.myStaff a {
margin: 0 !important;
vertical-align: top !important;
}
.monPro {position: relative; left: 25px;top: 5px}
</style>
</div>
</div><script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script> <script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script>
Resulta?
o/
Re: Ajuda com código
Pedxz escreveu:Mude o primeiro código que você me passou para
- Código:
<style type="text/css">.homepageTitle { color:#000; font-size:21px; font-style:italic; font-family:"Roboto", Verdana, Arial, Sans-serif; background:url(http://2img.net/i/fa/optimisation_fdf/fr/puce10.png) no-repeat 0 0; height:40px; padding:5px 0px 0px 25px; }
#homepageLogo { float:right; margin-left:20px; }
#hideHomepageMessage { float:right; cursor:pointer; }
/* INFO BOX */
#faInfo { color:#666; background:#FFF; border:1px solid #000; border-bottom-width:3px; border-radius:0 3px 3px 3px; padding:6px; }
#faInfoNav { background:#FFF; border:1px solid #000; border-bottom:none; border-radius:3px 3px 0 0; overflow:hidden; display:inline-block; }
#faInfoNav a { color:#333; background:#FFF; border-right:1px solid #000; font-size:11px; font-weight:bold; display:inline-block; padding:6px 9px; }
#faInfoNav a:hover, #faInfoNav .infoActif { color:#FFF; background:#000; }
#faInfoAnn { background-image:url('https://i.imgur.com/gwmaTS0.png') }
#faInfoSearch { background-image:url('https://i.imgur.com/O570AB8.png') }
#faInfoExplain { background-image:url('https://i.imgur.com/tmhgW83.png') }
#faInfoSuggestion { background-image:url('https://i.imgur.com/Q3PbeUT.png') }
#faInfoStaff { background-image:url('aaa') }
.infoBlock { text-align:justify; background-repeat:no-repeat; background-position:0 50%; padding-left:75px; min-height:100px; }
/* INFO NEWS */
.faNewsRow { background:#F0F6F8; border-radius:3px; margin:3px 0; padding:5px 10px; }
.faNewsRow a { font-weight:bold }
.faNewsDate { font-size:11px; font-style:italic; background:url(http://2img.net/i/fa/subsilver/icon_miniposted.gif) no-repeat 0 center; padding-left:12px; float:right; }
/* PROFILE STYLE */
#userProfile { font-size:11px; position:relative; margin-top:30px; margin-bottom:10px; }
#userProfile .leftCol { float:left; text-align:center; width:20%; }
#userProfile .rightCol { float:left; width:25%; }
#userName { background:#FFF; border:1px solid #DDD; color:#39C; font-weight:bold; font-family:"Trebuchet MS", Verdana, Arial, Sans-serif; border-radius:3px 3px 0 0; position:absolute; left:3px; top:-20px; padding:0 12px; line-height:18px; }
#userName span { font-weight:normal }
#userAvatar img { max-width:100px }
#userAvatar { display:inline-block; overflow:hidden; min-height:100px; min-width:100px; }
#userProfile .title { color:#39C; font-weight:bold; border-bottom:1px solid #39C; padding-bottom:3px; margin-bottom:3px; width:90%; }
#userProfile .statLabel { display:inline-block; width:85px; font-weight:bold; text-align:right; margin-right:6px; }
/* SEARCH BAR */
#fa_google_search form.gsc-search-box { width:80% }
.gsc-input-box { height:auto }
.gsc-search-box-tools .gsc-search-box .gsc-input, .gsib_a, .cse .gsc-control-cse, .gsc-control-cse { padding:0 }
.gsc-control-cse, .gsc-input-box, input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { background:none; border:none; }
input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus { height:12px; background-color:#369FCF; border-radius:0 3px 3px 0; margin:0; margin-left:21px; padding:10px; box-shadow:none; }
#gsc-i-id1 { height:18px !important; padding:6px 12px !important; border:1px solid #369FCF !important; box-shadow:none !important; cursor:text; }
#gsc-i-id1, .gsc-input-box-focus { border-radius:3px 0 0 3px }
.gsib_b { position:relative }
.gsst_a { position:absolute; top:6px; }</style>
<div id="faInfoNav">
<a href="#" class="infoActif" id="_faInfoAnn">Links rápidos</a><a href="#" id="_faInfoSearch">Evento atual</a><a href="#" id="_faInfoExplain">Explique sua dúvida</a><a href="#" id="_faInfoSuggestion">Como jogar</a><a href="#" id="_faInfoStaff" style="border:none">Equipe EXILED</a>
</div>
<div id="faInfo">
<div class="infoBlock" id="faInfoAnn">
<div id="faNewsBox">
<div class="faNewsRow">
<a href="/f1-" itemprop="url">Regras do Sistema</a>
</div>
<div class="faNewsRow">
<a href="/h1-" itemprop="url">Loja de Créditos</a>
</div>
<div class="faNewsRow">
<a href="/f10-" itemprop="url">Dúvidas & Sugestões</a>
</div>
<div class="faNewsRow">
<a href="/t321-" itemprop="url">Lista de Itens</a>
</div>
</div>
<div style="display:none" id="faNewsRSS">
</div>
</div>
<div style="display:none;" class="infoBlock" id="faInfoSearch">
a
<div style="display:none;height:30px;padding:6px 0;" id="fa_google_search">
c
</div>
<form action="/search" method="get" class="faForumSearch" style="padding:6px 0;" id="searchNoJS">
<input type="text" value="" name="search_keywords" style="width:75%;" class="inputbox search" /> <input type="submit" value="Search" class="button2" />
</form>
b
</div>
<div style="display:none;" class="infoBlock" id="faInfoExplain">
Se você explicar o problema que está enfrentando apresentando todos os detalhes, o suporte será mais rápido! Acesse a área de <a href="/f10-" style="font-weight:bold;" itemprop="url">Dúvidas</a>. <br /><br />
</div>
<div style="display:none;" class="infoBlock" id="faInfoSuggestion">
Após ler as regras, o primeiro passo é criar a sua ficha. Para isso, acesse a área <a href="/f7-" style="font-weight:bold;" itemprop="url">Diretório de Fichas</a> <br /><br /> Por favor, leve o tempo que for necessário.
</div>
<div style="display:none;" class="infoBlock" id="faInfoStaff">
<script type="text/javascript">
myStaff = ['/u1', '/u75', '/u72'];
staff_cache_time = 4*60*1000; // mm*ss*ms;
</script>
<div id="theStaff">
</div>
<div id="theContent" style="display:none">
</div><script type="text/javascript">
if (localStorage.staffOn && localStorage.staffEx > +new Date - staff_cache_time) jQuery('#theStaff').html(localStorage.staffOn);
else loadStaff();
function loadStaff() {
jQuery('#theContent').load('/viewonline #main-content a, a.gen', function() {
for (i=0; i<myStaff.length; i++) jQuery('#theContent a').filter(function() { return jQuery(this).attr('href') === myStaff[i] }).appendTo('#theStaff').wrap('<div class="myStaff">');
if (!jQuery('#theStaff .myStaff').length) jQuery('#theStaff').html('Sem equipe moderação online.');
jQuery('.myStaff a').each(function() {
var href = jQuery(this).attr('href');
jQuery(this).before('<span class="monAva"></span>').prev().load(href + ' #profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img', function() {
if (window.localStorage) {
localStorage.staffOn = jQuery('#theStaff').html();
localStorage.staffEx = +new Date;
}
});
});
});
}
jQuery(document).ready(function(){ jQuery('.myStaff a').each(function() { var href = jQuery(this).attr('href');
var mp = this.pathname; var user = mp.substring(1,5); var usert = "/privmsg?mode=post&u=";var mpuser = usert + user;
jQuery(this).after('<br><span class="monPro"> <a href='+href+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/profil27.png"></a> <a href='+mpuser+'><img src="https://i18.servimg.com/u/f18/16/89/96/68/pm13.png"></a></span>');
});
});
</script><style type="text/css">.monAva img {
height: 20px;
width: 20px;
margin-right: 5px;
background: none repeat scroll 0 0 #FFF;
border: 1px solid #d5d1c8;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
padding: 1px;
}
.monAva img:hover {
border: 1px solid black;
}
.myStaff a {
margin: 0 !important;
vertical-align: top !important;
}
.monPro {position: relative; left: 25px;top: 5px}
</style>
</div>
</div><script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script> <script type="text/javascript">// <![CDATA[
(function(J, U, L) {
var main = document.getElementById('main-content'), // main container
// news nodes and data
news = document.getElementById('faNewsBox'),
newsTopics = news.getElementsByTagName('DIV'),
storage = window.localStorage,
rss = document.getElementById('faNewsRSS'),
homepage = J('.introduction', main)[0], // homepage message
// google search
cx = '018097555942133585918:_gwf276jof8',
gcse = document.createElement('script'),
s = document.getElementsByTagName('script')[0],
// info box
infoLinks = document.getElementById('faInfoNav').getElementsByTagName('A'),
// hide button
hide = document.getElementById('hideHomepageMessage'),
// profile variables
profil,
login;
document.getElementById('fa_google_search').style.display = 'block'; // show google search for JS user
document.getElementById('searchNoJS').style.display = 'none'; // hide normal search for JS users
// hide homepage
if (my_getcookie('faHomepage') == 'hidden') {
hide.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
document.getElementById('homepageMessage').style.display = 'none';
document.getElementById('hiddenTitle').style.display = 'block';
}
// get news topics
if (storage && storage.faNewsTopics && storage.faNewsTopicsExp > +new Date - 1*60*60*1000) news.innerHTML = storage.faNewsTopics;
else {
J(rss).load('/feed/?f=1 item', function() {
for (var i = 0, item = rss.childNodes, j = newsTopics.length, t; i < j; i++) {
t = J('title', item[i])[0].innerHTML;
newsTopics[i].innerHTML = '<a itemprop="url" href="' + J('guid', item[i])[0].innerHTML + '" title="' + t + '">' + ( t.length > 69 ? t.slice(0, 69) + '...' : t ) + '</a> <span class="faNewsDate">' + J('pubDate', item[i])[0].innerHTML.replace(/.*?, (\d+ \w+).*/, function (M, S1) { return S1.charAt(0) == '0' ? S1.slice(1) : S1 }) + '</span>';
}
if (storage) {
storage.faNewsTopics = news.innerHTML;
storage.faNewsTopicsExp = +new Date;
}
});
}
// create google search bar
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
s.parentNode.insertBefore(gcse, s);
// apply general logic to info box tabs
for (var i = 0, j = infoLinks.length; i < j; i++) {
infoLinks[i].onclick = function() {
var a = document.getElementById('faInfoNav').getElementsByTagName('A'), b = document.getElementById('faInfo').getElementsByTagName('DIV'), i, j;
for (i = 0, j = b.length; i < j; i++) if (/infoBlock/.test(b[i].className)) b[i].style.display = 'none';
document.getElementById(this.id.slice(1)).style.display = 'block';
for (i = 0, j = a.length; i < j; i++) if (/infoActif/.test(a[i].className)) a[i].className = '';
this.className = 'infoActif';
return false;
}
}
// hide the homepage message
hide.onclick = function() {
var message = document.getElementById('homepageMessage'),
title = document.getElementById('hiddenTitle');
if (this.src == 'http://2img.net/i/fa/m/tabs_less1.gif') {
this.src = 'http://2img.net/i/fa/m/tabs_more1.gif';
message.style.display = 'none';
title.style.display = 'block';
my_setcookie('faHomepage', 'hidden');
} else {
this.src = 'http://2img.net/i/fa/m/tabs_less1.gif';
message.style.display = 'block';
title.style.display = 'none';
my_setcookie('faHomepage', 'shown');
}
};
})(jQuery, _userdata, _lang);
//]]></script>
Resolveu meu problema. Obrigado
Re: Ajuda com código
Questão marcada como Resolvida ou o Autor solicitou que ela fosse arquivada. Tópico marcado como Resolvido e movido para Questões resolvidas. |
Fórum dos Fóruns :: Ajuda e atendimento ao utilizador :: Questões sobre códigos :: Questões resolvidas sobre HTML e BBCode
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos