Isto é uma pré-visualização de um tema em Hitskin.com
Instalar o tema • Voltar para a ficha do tema
Caixa de cores
2 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
Caixa de cores
Qual é minha questão:
Ola, seguie este tutorial - https://ajuda.forumeiros.com/t56814-tutorial-personalizar-caixa-de-cores , mas não deu certo, o que devo fazer para que funcione
aqui segue meu css-
Endereço do meu fórum:
http://rpgadventure.umforum.net
Versão do fórum:
PHPBB2
Ola, seguie este tutorial - https://ajuda.forumeiros.com/t56814-tutorial-personalizar-caixa-de-cores , mas não deu certo, o que devo fazer para que funcione
aqui segue meu css-
- Código:
colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp11.png);
font-family: Arial, Helvetica, sans-serif;
display: none;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp12.png);
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/select10.gif);
margin: -5px 0 0 -5px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp10.gif) left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 11px;
text-align: right;
margin: 0;
padding: 0;
height: 11px;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp13.png) top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp14.png);
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp15.png);
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp16.png);
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp17.png);
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp18.png);
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp19.png);
top: 112px;
left: 282px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/aceita10.png) top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
bodyline {
-moz-box-shadow: 0px 20px 20px #CCCCCC;
-webkit-box-shadow: 0px 20px 20px #CCCCCC;
}
a.mainmenu img {
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
a.mainmenu img:hover {
filter:alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
}
.bodyline{
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border: 1px solid #000000;
}
a[href="/u1"] {
text-shadow: 0px 0px 5px #FFFF00;
}
a[href="/u1"] {
background: url("http://i45.servimg.com/u/f45/15/95/60/34/glitte10.gif");
}
forumline {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: 1px solid #000000;
}
th {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: 1px solid #000000;
}
.post span.postdetails a img:first-child,.postprofile dl dt a img:first-child,.post div.user-ident div.user-basic-info a img:first-child,dl.postdetails dl a img:first-child{width:190px;height:350px}
a.mainmenu:hover{position:relative;bottom:10px}.
#text_editor_textarea
{
background-image:url(http://i71.servimg.com/u/f71/17/65/97/12/coisax10.png);
border:hover: 1px solid #0099FF;
}
#message-box textarea {
background-image: url(http://i71.servimg.com/u/f71/17/65/97/12/coisax10.png);
background-repeat: no-repeat;
background-position: bottom center;
}
td.cat, td.catBottom, td.catHead, td.catLeft, td.catRight, td.catSides {
border: none !important;
border-radius: 10px !important;
}
forumline {border-radius: 5px;}
.row1.over:hover {
background: url(http://i71.servimg.com/u/f71/17/65/97/12/coisa11.png) right bottom no-repeat;
}
table.forumline tr td.row1, table.forumline tr td.row2, table.forumline tr td.row3 {
-htm-transition-duration: 1s;
-moz-transition-duration: 1s;
-o-transition-duration: 5ms;
-webkit-transition-duration: 1s;
transition-duration: 1s;
}
.hierarchy a:hover {
font-size: 20px !important;
text-shadow: #05F073 0px 0px 10px;
color: #FFF;
}
Endereço do meu fórum:
http://rpgadventure.umforum.net
Versão do fórum:
PHPBB2
Última edição por pyrohinotama em 20.04.13 0:21, editado 1 vez(es)
Re: Caixa de cores
Você fez isso:
Adicionou o seguinte código em sua folha de estilo CSS ?
E seguiu a seguinte sequência?
Adicionou o seguinte código em sua folha de estilo CSS ?
- Spoiler:
- Código:
colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp11.png);
font-family: Arial, Helvetica, sans-serif;
display: none;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp12.png);
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/select10.gif);
margin: -5px 0 0 -5px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp10.gif) left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 11px;
text-align: right;
margin: 0;
padding: 0;
height: 11px;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp13.png) top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp14.png);
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp15.png);
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp16.png);
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp17.png);
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp18.png);
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url(http://i46.servimg.com/u/f46/16/56/73/62/colorp19.png);
top: 112px;
left: 282px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url(http://i46.servimg.com/u/f46/16/56/73/62/aceita10.png) top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
bodyline {
-moz-box-shadow: 0px 20px 20px #CCCCCC;
-webkit-box-shadow: 0px 20px 20px #CCCCCC;
}
a.mainmenu img {
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
a.mainmenu img:hover {
filter:alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
}
.bodyline{
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border: 1px solid #000000;
}
a[href="/u1"] {
text-shadow: 0px 0px 5px #FFFF00;
}
a[href="/u1"] {
background: url("http://i45.servimg.com/u/f45/15/95/60/34/glitte10.gif");
}
forumline {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: 1px solid #000000;
}
th {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: 1px solid #000000;
}
.post span.postdetails a img:first-child,.postprofile dl dt a img:first-child,.post div.user-ident div.user-basic-info a img:first-child,dl.postdetails dl a img:first-child{width:190px;height:350px}
a.mainmenu:hover{position:relative;bottom:10px}.
#text_editor_textarea
{
background-image:url(http://i71.servimg.com/u/f71/17/65/97/12/coisax10.png);
border:hover: 1px solid #0099FF;
}
#message-box textarea {
background-image: url(http://i71.servimg.com/u/f71/17/65/97/12/coisax10.png);
background-repeat: no-repeat;
background-position: bottom center;
}
td.cat, td.catBottom, td.catHead, td.catLeft, td.catRight, td.catSides {
border: none !important;
border-radius: 10px !important;
}
forumline {border-radius: 5px;}
.row1.over:hover {
background: url(http://i71.servimg.com/u/f71/17/65/97/12/coisa11.png) right bottom no-repeat;
}
table.forumline tr td.row1, table.forumline tr td.row2, table.forumline tr td.row3 {
-htm-transition-duration: 1s;
-moz-transition-duration: 1s;
-o-transition-duration: 5ms;
-webkit-transition-duration: 1s;
transition-duration: 1s;
}
.hierarchy a:hover {
font-size: 20px !important;
text-shadow: #05F073 0px 0px 10px;
color: #FFF;
}
E seguiu a seguinte sequência?
- Spoiler:
- <strong><span style="font-size: 18px; line-height: normal">2º</span> - <font color="darkblue">Adicionar o código na folha .JS:</font></strong><br /> Vamos adicionar agora o código que permitirá que o CSS seja válido no campo das cores. Vamos aplicar o mesmo em uma folha .JS de seu fórum.<br /> <strong>Painel de controle <font color="red">-> </font> Módulos <font color="red">-> </font> HTML e Javascript <font color="red">-> </font> Gestão dos códigos Javascript <font color="red">-> </font></strong><br /> Clique no botão "<strong>Criar um novo javascript</strong>".<br /><br /> <div style="margin:auto;text-align:center;width:100%"><span style="font-size: 9px; line-height: normal">(carregue na imagem para aumentar)</span><br /> <a href="https://i.servimg.com/u/f43/16/63/75/54/atuali10.png" target="_blank" rel="nofollow"><img src="https://i.servimg.com/u/f43/16/63/75/54/atuali10.png" style="width: 500px;height: 293px" alt="" /></a></div><br /><br /> Em "Investimento", vamos marcar a opção "<strong>Em todas as páginas</strong>". Quando fizer, adicione na caixa de texto o seguinte código que se encontra neste site (copie-o e cole-o):<br /> <img src="https://2img.net/u/2612/28/77/07/smiles/1104915802.png" alt="Flecha ajudeiros" longdesc="73" /> <a href="http://s301826463.onlinehome.fr/fdf/viewtopic.php?pid=9#p9" target="_blank" rel="nofollow">Código .JS</a><br /><br /> Clique no botão "<strong>Confirmar</strong>".<br /> <strong>Resultado:</strong><br /><br /> <div style="margin:auto;text-align:center;width:100%"><span style="font-size: 9px; line-height: normal">(carregue na imagem para aumentar)</span><br /> <a href="https://2img.net/h/oi54.tinypic.com/119a1oh.png" target="_blank" rel="nofollow"><img src="https://2img.net/h/oi54.tinypic.com/119a1oh.png" style="width: 500px;height: 293px" alt="" /></a></div><br /><br />
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