SP-Design

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
Feliz ano novo para você!
Leia a carta de boas festas da equipe SPD.
Área Vip, os códigos mais inovadores
Obtenha os códigos mais inovadores de nosso fórum, atraves de pontos de Cash.
Leia as Regras do SP-Design
Acabou de chegar? Para se "enturmar" rapidamente leia as regras desse fórum.
Tutoriais e Dicas
Veja aqui nossos tutoriais inéditos, e muitos outros tutoriais sobre Design.
Publique no SPublicidade
Publique, peça opinião de pessoas experientes, divulgue o seu trabalho com o SPublicidade
Modifique o visual do seu fórum
Dúvidas sobre códigos HTML, CSS, BBCode e JQuery. Também, poderá tirar dúvidas sobre Templantes.
Faça Pedidos Gráficos para seu fórum
Este é um serviço gratuito para customização e criação de banners, logos, avatares, ícones...
Novo Administrador na comunidade
Pro Administradores adicionam novo administrador na equipe SPD.

Ver o tópico anterior Ver o tópico seguinte Ir em baixo  Mensagem [Página 1 de 1]

avatar

sou nível 4

em Seg 04 Fev 2013, 8:28 am

Qual é minha questão:
Quero esse tutorial so que pra versão PUNBB

http://spdesign.ativoforum.com/t3522-tutorial-adiciocando-um-novo-menu-do-forum-css-menu-maker


Ja consegui Fazer o menu de quando está Logado, mais nao consigo fazer o menu de quem está delogado..

Imagem do meu problema:


Endereço do meu fórum:
[url=testenarutonsl.ativoforum.com]testenarutonsl.ativoforum.com[/url]

Versão do meu fórum:
PUNBB

avatar

sou nível 4

em Sab 23 Fev 2013, 9:41 am

UP, Troquei o endereco do forum
agora e

http://nlrpgteste.ativoforum.com

avatar

sou nível 4

em Seg 25 Fev 2013, 10:11 am

UP

avatar

Administrador
Desenvolvedor Web

em Seg 25 Fev 2013, 1:07 pm

Crie um WidGet

Código:

<center><script>
jQuery(document).ready(function(){
jQuery('.linklist.navlinks').before("<div id='cssmenu'>
<ul>
  <li class='active'><a href='/portal'><span>Portal</span></a></li>
  <li><a href='/forum'><span>RPG</span></a></li>
  <li class='has-sub'><a href='#'><span>OFF</span></a>
      <ul>
        <li><a href='/register'><span>Registar</span></a></li>
        <li class='last'><a href='/login'><span>Logar</span></a></li>
      </ul>
  </li>
  <li class='has-sub last'><a href='#'><span>ON</span></a>
      <ul>
        <li><a href='/profile?mode=editprofile'><span>Perfil</span></a></li>
        <li class='last'><a href='privmsg?folder=inbox'><span>MP's</span></a></li>
      </ul>
  </li>
</ul>
</div>");
jQuery(".linklist.navlinks").remove();
});
</script>
<style>
pun-cssmenu ul,
pun-cssmenu li,
pun-cssmenu span,
pun-cssmenu a {
  margin: 0;
  padding: 0;
  position: relative;
}
pun-cssmenu {
  height: 49px;
  border-radius: 5px 5px 0 0;
  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  border-bottom: 2px solid #e00f16;
}
pun-cssmenu:after,
pun-cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
pun-cssmenu a {
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  color: #ffffff;
  display: inline-block;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-size: 12px;
  line-height: 49px;
  padding: 0 20px;
  text-decoration: none;
}
pun-cssmenu ul {
  list-style: none;
}
pun-cssmenu > ul {
  float: left;
}
pun-cssmenu > ul > li {
  float: left;
}
pun-cssmenu > ul > li:hover:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #e00f16;
  margin-left: -10px;
}
pun-cssmenu > ul > li:first-child > a {
  border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
}
pun-cssmenu> ul > li:last-child > a {
  border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
}
pun-cssmenu > ul > li.active > a {
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
}
pun-cssmenu > ul > li:hover > a {
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
}
pun-cssmenu .has-sub {
  z-index: 1;
}
pun-cssmenu .has-sub:hover > ul {
  display: block;
}
pun-cssmenu .has-sub ul {
  display: none;
  position: absolute;
  width: 200px;
  top: 100%;
  left: 0;
}
pun-cssmenu .has-sub ul li {
  *margin-bottom: -1px;
}
pun-cssmenu .has-sub ul li a {
  background: #e00f16;
  border-bottom: 1px dotted #ec6f73;
  filter: none;
  font-size: 11px;
  display: block;
  line-height: 120%;
  padding: 10px;
}
pun-cssmenu .has-sub ul li:hover a {
  background: #b00c11;
}
pun-cssmenu .has-sub .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub .has-sub ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}
pun-cssmenu .has-sub .has-sub ul li a {
  background: #b00c11;
  border-bottom: 1px dotted #d06d70;
}
pun-cssmenu.has-sub .has-sub ul li a:hover {
  background: #80090d;
}

</style></center>

avatar

sou nível 4

em Seg 25 Fev 2013, 9:37 pm

Não Funciona!

avatar

Desenvolvedor Web

em Ter 26 Fev 2013, 8:10 am

Olá,

Coloque em um widget:

Código:
<script>jQuery('#pun-navlinks').before("<div id='cssmenu'><ul>  <li class='active'><a href='/portal'><span>Portal</span></a></li>  <li><a href='/forum'><span>RPG</span></a></li>  <li class='has-sub'><a href='#'><span>OFF</span></a>      <ul>        <li><a href='/register'><span>Registar</span></a></li>        <li class='last'><a href='/login'><span>Logar</span></a></li>      </ul>  </li>  <li class='has-sub last'><a href='#'><span>ON</span></a>      <ul>        <li><a href='/profile?mode=editprofile'><span>Perfil</span></a></li>        <li class='last'><a href='privmsg?folder=inbox'><span>MP's</span></a></li>      </ul>  </li></ul></div>");
jQuery("#pun-navlinks").remove();</script><style>#cssmenu ul,
#cssmenu li,
#cssmenu span,
#cssmenu a {
  margin: 0;
  padding: 0;
  position: relative;
}
#cssmenu {
  height: 49px;
  border-radius: 5px 5px 0 0;
  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  border-bottom: 2px solid #e00f16;
}
#cssmenu:after,
#cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu a {
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  color: #ffffff;
  display: inline-block;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-size: 12px;
  line-height: 49px;
  padding: 0 20px;
  text-decoration: none;
}
#cssmenu ul {
  list-style: none;
}
#cssmenu > ul {
  float: left;
}
#cssmenu > ul > li {
  float: left;
}
#cssmenu > ul > li:hover:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #e00f16;
  margin-left: -10px;
}
#cssmenu > ul > li:first-child > a {
  border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
}
#cssmenu> ul > li:last-child > a {
  border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
}
#cssmenu > ul > li.active > a {
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
}
#cssmenu > ul > li:hover > a {
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
}
#cssmenu .has-sub {
  z-index: 1;
}
#cssmenu .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub ul {
  display: none;
  position: absolute;
  width: 200px;
  top: 100%;
  left: 0;
}
#cssmenu .has-sub ul li {
  *margin-bottom: -1px;
}
#cssmenu .has-sub ul li a {
  background: #e00f16;
  border-bottom: 1px dotted #ec6f73;
  filter: none;
  font-size: 11px;
  display: block;
  line-height: 120%;
  padding: 10px;
}
#cssmenu .has-sub ul li:hover a {
  background: #b00c11;
}
#cssmenu .has-sub .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub .has-sub ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}
#cssmenu .has-sub .has-sub ul li a {
  background: #b00c11;
  border-bottom: 1px dotted #d06d70;
}
#cssmenu.has-sub .has-sub ul li a:hover {
  background: #80090d;
}

</style>
Resulta ?

Até mais.


Staff SPD

Olá Convidado, bem vindo ao SP-Design
Aconselhamos que fique atendo a esses detalhes.
Respeite as regras e conheça a equipe.
Faça seus pedidos na Área Design.
Não pratique o Flood
Não peça suporte por MP
Pedidos de Códigos
SP-Design
avatar

sou nível 4

em Sab 02 Mar 2013, 5:33 pm

Funcionou!
Como faco para colocar ele em todas as paginas!?
no Portal tmb!

avatar

Desenvolvedor Web

em Sab 02 Mar 2013, 7:39 pm

Olá,

Apenas a partir de um código JS, quer que eu lhe passe ?

Até mais.


Staff SPD

Olá Convidado, bem vindo ao SP-Design
Aconselhamos que fique atendo a esses detalhes.
Respeite as regras e conheça a equipe.
Faça seus pedidos na Área Design.
Não pratique o Flood
Não peça suporte por MP
Pedidos de Códigos
SP-Design
avatar

sou nível 4

em Dom 03 Mar 2013, 8:49 am

Sim!

VOu Passar o HTML e o CSS do menu que ja fiz!

Monte o menu JS pra miim!

HTML (Menu Logado) :
Código:
<div id='cssmenu'>
<ul>
  <li class='active'><a href='/forum'><span>Início</span></a></li>
  <li class='active'><a href='/portal'><span>Portal</span></a></li>
  <li class='active'><a href='/faq'><span>FAQ</span></a></li>
  <li class='active'><a href='/search'><span>Buscar</span></a></li>
  <li class='active has-sub'><a href='/profile?mode=editprofile'><span>Perfil</span></a>
      <ul>
        <li class='active'><a href='/profile?mode=editprofile&page_profil=informations'><span>Informações Pessoais</span></a></li>
        <li class='active'><a href='/profile?mode=editprofile&page_profil=preferences'><span>Preferências</span></a></li>
        <li class='active'><a href='/profile?mode=editprofile&page_profil=avatars'><span>Avatar</span></a></li>
        <li class='active last'><a href='/profile?mode=editprofile&page_profil=signature'><span>Assinatura</span></a></li>
      </ul>
  </li>
  <li class='active'><a href='/privmsg?folder=inbox'><span>Mensagens Privadas</span></a></li>
  <li class='active last'><a href='/login?logout='><span>Sair</span></a></li>
</ul>
</div>

Css (Menu Logado):
Código:
#cssmenu ul,
#cssmenu li,
#cssmenu span,
#cssmenu a {
  margin: 0;
  padding: 0;
  position: relative;
}
#cssmenu {
  height: 49px;
  border-radius: 5px 5px 0 0;
  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  border-bottom: 2px solid #0fa1e0;
}
#cssmenu:after,
#cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu a {
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  color: #ffffff;
  display: inline-block;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-size: 12px;
  line-height: 49px;
  padding: 0 20px;
  text-decoration: none;
}
#cssmenu ul {
  list-style: none;
}
#cssmenu > ul {
  float: left;
}
#cssmenu > ul > li {
  float: left;
}
#cssmenu > ul > li:hover:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #0fa1e0;
  margin-left: -10px;
}
#cssmenu > ul > li:first-child > a {
  border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
}
#cssmenu > ul > li:last-child > a {
  border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
}
#cssmenu > ul > li.active > a {
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
}
#cssmenu > ul > li:hover > a {
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
}
#cssmenu .has-sub {
  z-index: 1;
}
#cssmenu .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub ul {
  display: none;
  position: absolute;
  width: 200px;
  top: 100%;
  left: 0;
}
#cssmenu .has-sub ul li {
  *margin-bottom: -1px;
}
#cssmenu .has-sub ul li a {
  background: #0fa1e0;
  border-bottom: 1px dotted #6fc7ec;
  filter: none;
  font-size: 11px;
  display: block;
  line-height: 120%;
  padding: 10px;
}
#cssmenu .has-sub ul li:hover a {
  background: #0c7fb0;
}
#cssmenu .has-sub .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub .has-sub ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}
#cssmenu .has-sub .has-sub ul li a {
  background: #0c7fb0;
  border-bottom: 1px dotted #6db2d0;
}
#cssmenu .has-sub .has-sub ul li a:hover {
  background: #095c80;
}

Html (Menu Deslogado):
Código:
<div id='cssmenu'>
<ul>
  <li class='active'><a href='/forum'><span>Início</span></a></li>
  <li><a href='/portal'><span>Portal</span></a></li>
  <li class='active'><a href='/faq'><span>FAQ</span></a></li>
  <li class='active'><a href='/search'><span>Buscar</span></a></li>
  <li class='active'><a href='/register'><span>Registre-se</span></a></li>
  <li class='active last'><a href='/login'><span>Logar</span></a></li>
</ul>
</div>

Css (Menu DEslogado):
Código:
#cssmenu ul,
#cssmenu li,
#cssmenu span,
#cssmenu a {
  margin: 0;
  padding: 0;
  position: relative;
}
#cssmenu {
  height: 49px;
  border-radius: 5px 5px 0 0;
  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  border-bottom: 2px solid #0fa1e0;
}
#cssmenu:after,
#cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu a {
  background: #141414;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;
  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);
  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);
  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);
  color: #ffffff;
  display: inline-block;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-size: 12px;
  line-height: 49px;
  padding: 0 20px;
  text-decoration: none;
}
#cssmenu ul {
  list-style: none;
}
#cssmenu > ul {
  float: left;
}
#cssmenu > ul > li {
  float: left;
}
#cssmenu > ul > li:hover:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #0fa1e0;
  margin-left: -10px;
}
#cssmenu > ul > li:first-child > a {
  border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
}
#cssmenu > ul > li:last-child > a {
  border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
}
#cssmenu > ul > li.active > a {
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
}
#cssmenu > ul > li:hover > a {
  background: #070707;
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;
  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));
  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);
  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);
  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
}
#cssmenu .has-sub {
  z-index: 1;
}
#cssmenu .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub ul {
  display: none;
  position: absolute;
  width: 200px;
  top: 100%;
  left: 0;
}
#cssmenu .has-sub ul li {
  *margin-bottom: -1px;
}
#cssmenu .has-sub ul li a {
  background: #0fa1e0;
  border-bottom: 1px dotted #6fc7ec;
  filter: none;
  font-size: 11px;
  display: block;
  line-height: 120%;
  padding: 10px;
}
#cssmenu .has-sub ul li:hover a {
  background: #0c7fb0;
}
#cssmenu .has-sub .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub .has-sub ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}
#cssmenu .has-sub .has-sub ul li a {
  background: #0c7fb0;
  border-bottom: 1px dotted #6db2d0;
}
#cssmenu .has-sub .has-sub ul li a:hover {
  background: #095c80;
}

=)

avatar

sou nível 4

em Seg 04 Mar 2013, 4:11 pm

UP!

avatar

Desenvolvedor Web

em Seg 04 Mar 2013, 4:45 pm

Olá,

Crie um javascript com investimento em todas as páginas, e o código será:

Código:
$(document).ready(function() {
  var desloged="<div id='cssmenu'><ul><li class='active'><a href='/forum'><span>Início</span></a></li><li><a href='/portal'><span>Portal</span></a></li><li class='active'><a href='/faq'><span>FAQ</span></a></li><li class='active'><a href='/search'><span>Buscar</span></a></li><li class='active'><a href='/register'><span>Registre-se</span></a></li><li class='active last'><a href='/login'><span>Logar</span></a></li></ul></div><style>#cssmenu ul,#cssmenu li,#cssmenu span,#cssmenu a {  margin: 0;  padding: 0;  position: relative;}#cssmenu {  height: 49px;  border-radius: 5px 5px 0 0;  -moz-border-radius: 5px 5px 0 0;  -webkit-border-radius: 5px 5px 0 0;  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  border-bottom: 2px solid #0fa1e0;}#cssmenu:after,#cssmenu ul:after {  content: '';  display: block;  clear: both;}#cssmenu a {  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  color: #ffffff;  display: inline-block;  font-family: Helvetica, Arial, Verdana, sans-serif;  font-size: 12px;  line-height: 49px;  padding: 0 20px;  text-decoration: none;}#cssmenu ul {  list-style: none;}#cssmenu > ul {  float: left;}#cssmenu > ul > li {  float: left;}#cssmenu > ul > li:hover:after {  content: '';  display: block;  width: 0;  height: 0;  position: absolute;  left: 50%;  bottom: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 10px solid #0fa1e0;  margin-left: -10px;}#cssmenu > ul > li:first-child > a {  border-radius: 5px 0 0 0;  -moz-border-radius: 5px 0 0 0;  -webkit-border-radius: 5px 0 0 0;}#cssmenu > ul > li:last-child > a {  border-radius: 0 5px 0 0;  -moz-border-radius: 0 5px 0 0;  -webkit-border-radius: 0 5px 0 0;}#cssmenu > ul > li.active > a {  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);}#cssmenu > ul > li:hover > a {  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;}#cssmenu .has-sub {  z-index: 1;}#cssmenu .has-sub:hover > ul {  display: block;}#cssmenu .has-sub ul {  display: none;  position: absolute;  width: 200px;  top: 100%;  left: 0;}#cssmenu .has-sub ul li {  *margin-bottom: -1px;}#cssmenu .has-sub ul li a {  background: #0fa1e0;  border-bottom: 1px dotted #6fc7ec;  filter: none;  font-size: 11px;  display: block;  line-height: 120%;  padding: 10px;}#cssmenu .has-sub ul li:hover a {  background: #0c7fb0;}#cssmenu .has-sub .has-sub:hover > ul {  display: block;}#cssmenu .has-sub .has-sub ul {  display: none;  position: absolute;  left: 100%;  top: 0;}#cssmenu .has-sub .has-sub ul li a {  background: #0c7fb0;  border-bottom: 1px dotted #6db2d0;}#cssmenu .has-sub .has-sub ul li a:hover {  background: #095c80;}</style>";
  var loged="<div id='cssmenu'><ul><li class='active'><a href='/forum'><span>Início</span></a></li><li class='active'><a href='/portal'><span>Portal</span></a></li><li class='active'><a href='/faq'><span>FAQ</span></a></li><li class='active'><a href='/search'><span>Buscar</span></a></li><li class='active has-sub'><a href='/profile?mode=editprofile'><span>Perfil</span></a><ul><li class='active'><a href='/profile?mode=editprofile&page_profil=informations'><span>Informações Pessoais</span></a></li><li class='active'><a href='/profile?mode=editprofile&page_profil=preferences'><span>Preferências</span></a></li><li class='active'><a href='/profile?mode=editprofile&page_profil=avatars'><span>Avatar</span></a></li><li class='active last'><a href='/profile?mode=editprofile&page_profil=signature'><span>Assinatura</span></a></li></ul>  </li><li class='active'><a href='/privmsg?folder=inbox'><span>Mensagens Privadas</span></a></li><li class='active last'><a href='/login?logout='><span>Sair</span></a></li></ul></div><style>#cssmenu ul,#cssmenu li,#cssmenu span,#cssmenu a {  margin: 0;  padding: 0;  position: relative;}#cssmenu {  height: 49px;  border-radius: 5px 5px 0 0;  -moz-border-radius: 5px 5px 0 0;  -webkit-border-radius: 5px 5px 0 0;  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  border-bottom: 2px solid #0fa1e0;}#cssmenu:after,#cssmenu ul:after {  content: '';  display: block;  clear: both;}#cssmenu a {  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  color: #ffffff;  display: inline-block;  font-family: Helvetica, Arial, Verdana, sans-serif;  font-size: 12px;  line-height: 49px;  padding: 0 20px;  text-decoration: none;}#cssmenu ul {  list-style: none;}#cssmenu > ul {  float: left;}#cssmenu > ul > li {  float: left;}#cssmenu > ul > li:hover:after {  content: '';  display: block;  width: 0;height: 0;  position: absolute;  left: 50%;  bottom: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 10px solid #0fa1e0;  margin-left: -10px;}#cssmenu > ul > li:first-child > a {  border-radius: 5px 0 0 0;  -moz-border-radius: 5px 0 0 0;  -webkit-border-radius: 5px 0 0 0;}#cssmenu > ul > li:last-child > a {  border-radius: 0 5px 0 0;  -moz-border-radius: 0 5px 0 0;  -webkit-border-radius: 0 5px 0 0;}#cssmenu > ul > li.active > a {  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);}#cssmenu > ul > li:hover > a {  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;}#cssmenu .has-sub {  z-index: 1;}#cssmenu .has-sub:hover > ul {  display: block;}#cssmenu .has-sub ul {  display: none;  position: absolute;  width: 200px;  top: 100%;  left: 0;}#cssmenu .has-sub ul li {  *margin-bottom: -1px;}#cssmenu .has-sub ul li a {  background: #0fa1e0;  border-bottom: 1px dotted #6fc7ec;  filter: none;  font-size: 11px;  display: block;  line-height: 120%;  padding: 10px;}#cssmenu .has-sub ul li:hover a {  background: #0c7fb0;}#cssmenu .has-sub .has-sub:hover > ul {  display: block;}#cssmenu .has-sub .has-sub ul {  display: none;  position: absolute;  left: 100%;  top: 0;}#cssmenu .has-sub .has-sub ul li a {  background: #0c7fb0;  border-bottom: 1px dotted #6db2d0;}#cssmenu .has-sub .has-sub ul li a:hover {  background: #095c80;}</style>";
  if($('#pun-navlinks ul.clearfix li:last a.mainmenu:contains("Sair")').length) {$('#pun-navlinks').replaceWith(loged);}
  else if($('#pun-navlinks ul.clearfix li:last a.mainmenu:contains("Login")').length){$('#pun-navlinks').replaceWith(desloged);}
});
Resultas?

Até mais.


Staff SPD

Olá Convidado, bem vindo ao SP-Design
Aconselhamos que fique atendo a esses detalhes.
Respeite as regras e conheça a equipe.
Faça seus pedidos na Área Design.
Não pratique o Flood
Não peça suporte por MP
Pedidos de Códigos
SP-Design
avatar

sou nível 4

em Ter 05 Mar 2013, 4:06 pm

Ficou com umas divisas no menu.
Quero colocar ele no topo!

da uma olhada http://nlrpgteste.ativoforum.com

avatar

Desenvolvedor Web

em Ter 05 Mar 2013, 4:14 pm

Olá,

Tente este:

Código:
$(document).ready(function() {
  var desloged="<div id='cssmenu'><ul><li class='active'><a href='/forum'><span>Início</span></a></li><li><a href='/portal'><span>Portal</span></a></li><li><a href='/faq'><span>FAQ</span></a></li><li><a href='/search'><span>Buscar</span></a></li><li><a href='/register'><span>Registre-se</span></a></li><li class='active last'><a href='/login'><span>Logar</span></a></li></ul></div><style>#cssmenu ul,#cssmenu li,#cssmenu span,#cssmenu a {  margin: 0;  padding: 0;  position: relative;}#cssmenu {  height: 49px;  border-radius: 5px 5px 0 0;  -moz-border-radius: 5px 5px 0 0;  -webkit-border-radius: 5px 5px 0 0;  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  border-bottom: 2px solid #0fa1e0;}#cssmenu:after,#cssmenu ul:after {  content: '';  display: block;  clear: both;}#cssmenu a {  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  color: #ffffff;  display: inline-block;  font-family: Helvetica, Arial, Verdana, sans-serif;  font-size: 12px;  line-height: 49px;  padding: 0 20px;  text-decoration: none;}#cssmenu ul {  list-style: none;}#cssmenu > ul {  float: left;}#cssmenu > ul > li {  float: left;}#cssmenu > ul > li:hover:after {  content: '';  display: block;  width: 0;  height: 0;  position: absolute;  left: 50%;  bottom: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 10px solid #0fa1e0;  margin-left: -10px;}#cssmenu > ul > li:first-child > a {  border-radius: 5px 0 0 0;  -moz-border-radius: 5px 0 0 0;  -webkit-border-radius: 5px 0 0 0;}#cssmenu > ul > li:last-child > a {  border-radius: 0 5px 0 0;  -moz-border-radius: 0 5px 0 0;  -webkit-border-radius: 0 5px 0 0;}#cssmenu > ul > li.active > a {  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);}#cssmenu > ul > li:hover > a {  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;}#cssmenu .has-sub {  z-index: 1;}#cssmenu .has-sub:hover > ul {  display: block;}#cssmenu .has-sub ul {  display: none;  position: absolute;  width: 200px;  top: 100%;  left: 0;}#cssmenu .has-sub ul li {  *margin-bottom: -1px;}#cssmenu .has-sub ul li a {  background: #0fa1e0;  border-bottom: 1px dotted #6fc7ec;  filter: none;  font-size: 11px;  display: block;  line-height: 120%;  padding: 10px;}#cssmenu .has-sub ul li:hover a {  background: #0c7fb0;}#cssmenu .has-sub .has-sub:hover > ul {  display: block;}#cssmenu .has-sub .has-sub ul {  display: none;  position: absolute;  left: 100%;  top: 0;}#cssmenu .has-sub .has-sub ul li a {  background: #0c7fb0;  border-bottom: 1px dotted #6db2d0;}#cssmenu .has-sub .has-sub ul li a:hover {  background: #095c80;}</style>";
  var loged="<div id='cssmenu'><ul><li class='active'><a href='/forum'><span>Início</span></a></li><li><a href='/portal'><span>Portal</span></a></li><li><a href='/faq'><span>FAQ</span></a></li><li><a href='/search'><span>Buscar</span></a></li><li class='active has-sub'><a href='/profile?mode=editprofile'><span>Perfil</span></a><ul><li><a href='/profile?mode=editprofile&page_profil=informations'><span>Informações Pessoais</span></a></li><li><a href='/profile?mode=editprofile&page_profil=preferences'><span>Preferências</span></a></li><li><a href='/profile?mode=editprofile&page_profil=avatars'><span>Avatar</span></a></li><li class='active last'><a href='/profile?mode=editprofile&page_profil=signature'><span>Assinatura</span></a></li></ul>  </li><li><a href='/privmsg?folder=inbox'><span>Mensagens Privadas</span></a></li><li class='active last'><a href='/login?logout='><span>Sair</span></a></li></ul></div><style>#cssmenu ul,#cssmenu li,#cssmenu span,#cssmenu a {  margin: 0;  padding: 0;  position: relative;}#cssmenu {  height: 49px;  border-radius: 5px 5px 0 0;  -moz-border-radius: 5px 5px 0 0;  -webkit-border-radius: 5px 5px 0 0;  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  border-bottom: 2px solid #0fa1e0;}#cssmenu:after,#cssmenu ul:after {  content: '';  display: block;  clear: both;}#cssmenu a {  background: #141414;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;  background: -moz-linear-gradient(top, #32323a 0%, #141414 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #32323a), color-stop(100%, #141414));  background: -webkit-linear-gradient(top, #32323a 0%, #141414 100%);  background: -o-linear-gradient(top, #32323a 0%, #141414 100%);  background: -ms-linear-gradient(top, #32323a 0%, #141414 100%);  background: linear-gradient(to bottom, #32323a 0%, #141414 100%);  color: #ffffff;  display: inline-block;  font-family: Helvetica, Arial, Verdana, sans-serif;  font-size: 12px;  line-height: 49px;  padding: 0 20px;  text-decoration: none;}#cssmenu ul {  list-style: none;}#cssmenu > ul {  float: left;}#cssmenu > ul > li {  float: left;}#cssmenu > ul > li:hover:after {  content: '';  display: block;  width: 0;height: 0;  position: absolute;  left: 50%;  bottom: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 10px solid #0fa1e0;  margin-left: -10px;}#cssmenu > ul > li:first-child > a {  border-radius: 5px 0 0 0;  -moz-border-radius: 5px 0 0 0;  -webkit-border-radius: 5px 0 0 0;}#cssmenu > ul > li:last-child > a {  border-radius: 0 5px 0 0;  -moz-border-radius: 0 5px 0 0;  -webkit-border-radius: 0 5px 0 0;}#cssmenu > ul > li.active > a {  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);}#cssmenu > ul > li:hover > a {  background: #070707;  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALklEQVQImWNQU9Nh+v//PxMDw3+m//8ZkNj/mRgYIHxy5f//Z0BSi18e2TwS5QG4MGB54HL+mAAAAABJRU5ErkJggg==) 100% 100%;  background: -moz-linear-gradient(top, #26262c 0%, #070707 100%);  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #26262c), color-stop(100%, #070707));  background: -webkit-linear-gradient(top, #26262c 0%, #070707 100%);  background: -o-linear-gradient(top, #26262c 0%, #070707 100%);  background: -ms-linear-gradient(top, #26262c 0%, #070707 100%);  background: linear-gradient(to bottom, #26262c 0%, #070707 100%);  box-shadow: inset 0 0 3px #000000;  -moz-box-shadow: inset 0 0 3px #000000;  -webkit-box-shadow: inset 0 0 3px #000000;}#cssmenu .has-sub {  z-index: 1;}#cssmenu .has-sub:hover > ul {  display: block;}#cssmenu .has-sub ul {  display: none;  position: absolute;  width: 200px;  top: 100%;  left: 0;}#cssmenu .has-sub ul li {  *margin-bottom: -1px;}#cssmenu .has-sub ul li a {  background: #0fa1e0;  border-bottom: 1px dotted #6fc7ec;  filter: none;  font-size: 11px;  display: block;  line-height: 120%;  padding: 10px;}#cssmenu .has-sub ul li:hover a {  background: #0c7fb0;}#cssmenu .has-sub .has-sub:hover > ul {  display: block;}#cssmenu .has-sub .has-sub ul {  display: none;  position: absolute;  left: 100%;  top: 0;}#cssmenu .has-sub .has-sub ul li a {  background: #0c7fb0;  border-bottom: 1px dotted #6db2d0;}#cssmenu .has-sub .has-sub ul li a:hover {  background: #095c80;}</style>";
  if($('#pun-navlinks ul.clearfix li:last a.mainmenu:contains("Sair")').length) {$('#pun-navlinks').replaceWith(loged);}
  else if($('#pun-navlinks ul.clearfix li:last a.mainmenu:contains("Login")').length){$('#pun-navlinks').replaceWith(desloged);}
});
Resultas?

Até mais.


Staff SPD

Olá Convidado, bem vindo ao SP-Design
Aconselhamos que fique atendo a esses detalhes.
Respeite as regras e conheça a equipe.
Faça seus pedidos na Área Design.
Não pratique o Flood
Não peça suporte por MP
Pedidos de Códigos
SP-Design
avatar

sou nível 4

em Ter 05 Mar 2013, 4:18 pm

Mesma coisa! Sad

avatar

sou nível 4

em Sex 08 Mar 2013, 4:35 pm

UP!


Conteúdo patrocinado

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo  Mensagem [Página 1 de 1]

Você não está conectado. Conecte-se ou registre-se



Permissão deste fórum:
Você não pode responder aos tópicos neste fórum

 

Atualizado com e-referrer
Publicidade | SEJA NOSSO PARCEIRO
Naruto Rpg FutureLes power infoMaster ExpShiftactifThe forum of Codes

2012 © SP-Design - Ajuda na criação de códigos e na aparência de seu Fórum™ - Design de Cyllaz - Todos os direitos reservados ®