Posts by Carlos Rocha • 1 point
426 posts
-
0
votes2
answers805
viewsQ: call function from within the same class
I have a problem with redirecting within the builder of classe. Following: I have the classe: <?php class Constantes { private $livre = false; ... public function __construct () {…
phpasked Carlos Rocha 1 -
0
votes1
answer703
viewsQ: get site url
Well, here’s the thing url: http://www.site.com.br/pasta1/pasta2/arquivo.php?parametro1=234&¶metro2=sim I would like to know the type variable $_SERVER[] that returns only…
phpasked Carlos Rocha 1 -
1
votes0
answers103
viewsQ: CSS conflict on index
I have the page below with a css: http://hotplateprensas.com.br/gasmuriae.com.br2/ In it has a div with the classe top and inside div have 3 div's: <div class="topo"> <div class="topoTel"…
-
4
votes2
answers1155
viewsQ: close div by clicking outside it
I have a div with a botão inside to close it. At first, she’s with display: none, but to the click on on one button on another div, she turns into display: block. I need to find a way to when she is…
jqueryasked Carlos Rocha 1 -
0
votes1
answer47
viewsQ: Aligning button to center does not work
I have the page below, http://www.hotplateprensas.com.br/gasmuriae On the right side of the page index php., has a botão piece your gas. To the click on, there’s gonna be a formulário to fill in…
css3asked Carlos Rocha 1 -
1
votes0
answers28
viewsQ: slideshow with different weather while increasing amount of images
I have the jQuery down it is working very well. Except for one detail: lógica do for is not correct: To ideia is that the tempo de transição amid one imagem and another be the same independent of…
-
2
votes1
answer73
viewsQ: generate json within loop
I need some help: I have the following json var jsonString = "{ \"0%\" : { \"margin-left\":\"-0%\"},"; jsonString += " \"25%\" : { \"margin-left\":\"-0%\"},"; jsonString += " \"30%\" : {…
-
-1
votes1
answer740
viewsQ: transform js variable into json object
Have the variable below: [object Object] '0%' : [{ 'margin-left':'-0%'}], '25%' : [{ 'margin-left':'-0%'}], '30%' : [{ 'margin-left':'-100%'}], '50%' : [{ 'margin-left':'-100%'}], '55%' : [{…
-
0
votes3
answers227
viewsA: css dynamic change via jQuery Is it possible?
Please, I was able to do it the way you said, but now I have another problem: The json object, thus printed in the log (8) ["0% { margin-left:-0%}", "25% { margin-left:-0%}", "30% {…
-
1
votes3
answers227
viewsQ: css dynamic change via jQuery Is it possible?
I have the following structure: var prop = new Array(); prop[0] = "margin : auto"; prop[1] = "padding : 5px"; prop[2] = "border : none"; ... $(elemento).css({ for(i=0; i< prop; i++) { /*Aqui vão…
-
0
votes1
answer26
viewsQ: concatenate into $.keyframe.define parameters
I have the following function: $.keyframe.define([{ name: 'tocaSlide', tMin : {'margin-left': tempoImagens}, tMax : {'margin-left': tempoImagens}, }]); But I need to insert '%' after the variables,…
jqueryasked Carlos Rocha 1 -
0
votes1
answer45
viewsQ: Array js giving error
I got the following javaScript: var imagem = []; for (i = 0; i < quantasImagens; i++) { tMin = t + tempoTransicao; tMax = t + tamanhoIntervalos; t+=tamanhoIntervalos; if(i==0) tMin=0;…
javascriptasked Carlos Rocha 1 -
0
votes1
answer153
viewsQ: change CSS keyframe via jQuery
I’m trying to change one keyframe CSS, actually do an update, but I’m not getting concatenar variables CSS à javaScript. To ideia, actually, it’s not even changing. But yes, inserir no final do…
-
0
votes1
answer21
viewsQ: help with for loop, with variable approaching 100
I am doing a work with images and I have the code below: var tempoTransicao = 5; var quantasImagens = $("ul.slider li img").size(); var tamanhoIntervalos = Math.round(100/quantasImagens); var t = 0;…
-
1
votes1
answer25
viewsQ: opening ul menu by disabling the button
have a select made with a ul and I have the following problem: When I open the select, he goes over 2 botões. And after that, both botões sane desabilitados. What must be happening?…
jqueryasked Carlos Rocha 1 -
1
votes0
answers38
viewsQ: event for display:block in picture
I have 3 imagens in a ul. One imagem for li. Therefore, 3 li's. They’re all with display:none. Except the first. With jQuery, I click on a botão with numeração and the imagens appear (display:…
-
1
votes0
answers245
viewsQ: transition and effect on images with display: block a slideshow
I have a slideshow that I’m developing. As images, are in display:none and when click in the arrows, I make display: block in the image that will appear and display: none in the other. I’d like to…
-
1
votes2
answers293
viewsQ: Height of total div proportional to content
I have the following structure: <div class="slideShow"> <div class="boxSlide"> <div class="imagens"> <img src="_imgs/_slideShow/1.png" /> <img src="_imgs/_slideShow/2.png"…
css3asked Carlos Rocha 1 -
2
votes1
answer13
viewsA: Configure the index of the image that will receive the style
I got: $("div.slideShow div.boxSlide img").eq(index).css("opacity",1); Thank you!
-
0
votes1
answer13
viewsQ: Configure the index of the image that will receive the style
I have a group of imagens within a div: <div class="boxSlide"> <img src="_imgs/_slideShow/1.png" /> <img src="_imgs/_slideShow/2.png" /> <img src="_imgs/_slideShow/3.png" />…
-
0
votes1
answer149
viewsQ: Opacity does not work
I have the following code HTML <div class="slideShow"> <div class="boxSlide"> <img class="aberturaSelect" src="_imgs/_slideShow/1.png" /> <img class="aberturaSelect"…
css3asked Carlos Rocha 1 -
2
votes0
answers182
viewsQ: execute function in before and after content
I have a before and after in a div with their respective meet. Would like to click on in that content and perform a function jQuery. It is possible? I tried it the way down but it didn’t even work…
jqueryasked Carlos Rocha 1 -
0
votes2
answers208
viewsQ: Slidedown from bottom to top
I would like to apply effect slideDown(), in a UL, but I would like the effect to run from the bottom up. That is, that the div open from bottom to top.…
-
0
votes0
answers23
viewsQ: Apply effect on UL scrool
It is possible to apply an effect (slideDown() / slideUp()) in a scrollbar of a <ul>? Like, I got a <ul> which opens with effect slideDown(). That one <ul> has a barra de scrool. I…
-
1
votes0
answers70
viewsQ: Code optimization
I have a UL automatically generated via a SELECT OPTION. In the architecture I created, I have a LABEL who gets the first OPTION of SELECT. This LABEL will also be responsible for receiving the…
-
0
votes2
answers53
viewsA: Calculate the end of the screen
Good, adapting here was as below. But does it have a way to optimize this code? I’m guessing it’s not well written, although it’s working properly. $(document).ready(function(e) { // entrega o…
-
0
votes2
answers53
viewsQ: Calculate the end of the screen
Well, I have a button that opens a div. If this button is in the middle of screen, then I open the div below the button. If the button is the end of screen and by opening the div can’t see its…
-
0
votes0
answers36
viewsQ: Ul options contact facebook
In the facebook, When we go in the option to see the list of contacts we send orders, we have there a button written "Sent Friendship Request". By clicking on this button comes some options in list…
-
0
votes2
answers1107
viewsA: display:None is not being applied
@Renato-Diniz, based on your guidance, I studied your code a lot and then I fixed my. I’d like you to evaluate and tell me what you think. Can be viewed online at…
-
0
votes2
answers1107
viewsQ: display:None is not being applied
I have the following function: function exibeSelectUl () { $(".selectOptions ul > li").each(function() { alert($.trim($(this).text()) +'==='+ $.trim($(".selectOptions .selecionada").html()));…
-
0
votes3
answers158
viewsA: Stylize overflow Hidden
@dvdsamm, I think I got the final effect. But something’s not right. When the ul, then there is a delay in relation to the contraction of the div pai of ul. Where did I go wrong?…
-
0
votes3
answers158
viewsQ: Stylize overflow Hidden
I have a ul which has "n" lis arranged vertically. Initially, she is styling overflow hidden, only for a part of it, specifically from the second li to simulate a select option. However, when I…
-
1
votes1
answer129
viewsQ: jQuery error not visible when migrating code
Well, I have on the following page http://www.hotplateprensas.com.br/estilos/aa2.php The functional script When I migrate to the end of the page: http://www.hotplateprensas.com.br/estilos/index.php…
-
1
votes1
answer89
viewsQ: Replace background-image of :after
I have a div with a pseudo-class :after where I create a square and place inside a figurine of an arrow down. I’m trying, with the code below, by clicking on this div replace the figurine with a…
-
3
votes4
answers613
viewsQ: Change the position of a <li> to the first position
I have the following <ul>: <ul class="opcoes"> <li id="">Escolha a opção abaixo</li> <li id="1">1</li> <li id="2">1</li> <li id="3">3</li>…
-
0
votes1
answer146
viewsQ: stylizing a ul that will serve as a select
I’m studying here, more to learn a little even, and I’m trying to develop a select option with a ul starting from the select. The population of ul is already correct. $(".selectOption").on("click",…
-
1
votes3
answers953
viewsQ: How to simulate the event click on a <select> when hovering over a <div>?
I have the following HTML: <div class="selectOptions"> <select name="select" id="select"> <option value="1">1</option> <option value="2">2</option> <option…
-
1
votes1
answer27
viewsQ: Some hr’s don’t show up
I got the style for a hr down below: hr { width : 100%; height: 1px; size:1px; background-color: rgb(0,0,0); } and I have 4 hr's on the page. The problem is that when I do height: 1px; size:1px; or…
-
0
votes0
answers147
viewsQ: Change select arrow when triggering event click
Good, I have the select below: <div class="selectOptions"> <select name="select" id="select"> <option value="1">1</option> <option value="2">2</option> <option…
-
0
votes1
answer44
viewsQ: Style difference :firefox x Chrome
I have the following CSS ::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder { color: rgb(150,150,150); } ::-webkit-input-placeholder:hover,…
-
0
votes1
answer554
viewsQ: Get the href link on href itself
I have the code below <?php $paginaCorrente = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY); ?> <ul class="menu"> <li><a href="?l1" <?php if ($paginaCorrente=="l1") echo…
-
0
votes1
answer187
viewsQ: Is there any way to position the required message?
I have the following html <ul class="pagamento-metodos"> <li class="pagamento-metodo paypal"> <input name="payment_methods" type="radio" id="paypal" value="paypal" required>…
-
0
votes1
answer656
viewsQ: Use label instead of href
I have the following css * { margin: 0; padding: 0; } ul { display: block; list-style: none; border: rgb(0,0,0) 1px solid; } ul li { display: inline-block; width: 50px; height: 50px; text-align:…
-
1
votes0
answers91
viewsQ: $.ajax error while reading php
I have the following file index.php which has 2 forms. One of Login and one of registration <?php header("Content-Type: text/html; charset=utf-8"); /* Carrega as classes em tempo de execucao */…
-
2
votes2
answers326
viewsQ: Force require on display:None
I have the following html: <ul class="payment-methods"> <li class="payment-method paypal"> <input name="payment_methods" type="radio" id="paypal"> <label…
-
2
votes1
answer647
viewsQ: Center in element :after
I have the code below: .divCheckList .valorBool, .divCheckList .divCheckBox { height: 34px; display: inline-block; border:#CCC .1px solid; vertical-align:middle; } .divCheckList .valorBool {…
-
0
votes1
answer74
viewsQ: Are you a class superscript?
I have the following css: @charset "utf-8"; /* CSS Document */ .divCheckBox { width: 140px; height: 34px; } .divCheckBox .valor { display: inline-block; line-height: 34px; top: 0; } .divCheckBox…
-
0
votes0
answers26
viewsQ: Does not enter the ajax block
Good Morning! I have the following code: <?php $titulo = "Site"; ?> <html> <head> <title><?php echo $titulo; ?></title> <link rel="shortcut icon"…
-
2
votes3
answers114
viewsQ: headers Block size
So guys, I’d like help here with css. For example: I have an H3 <h3> Bem Vindo ao Portal do Cliente </h3> When I go to the browser, I have the text and the box of H3. What I wanted was…
-
1
votes0
answers22
viewsQ: 2 requests in onClick
I have an onClick in an image with 2 requests: 1) a check 2) a redirect function verifica(Msg) { return confirm(Msg); } And the image: <img src="'.$imagemExclui.'" align="center" style="height:…
javascriptasked Carlos Rocha 1