Posts by Erick Lemos • 698 points
13 posts
-
4
votes2
answers2479
viewsQ: How to get this scroll effect - when scrolling the page?
On this site, by making any scroll movement at its beginning, it scrolls to the end of the section. I would like to know how this effect is executed correctly. http://seunovopontodevista.com.br/ Can…
-
3
votes4
answers728
viewsQ: Dynamically assign function
Example: <body> <div class="box"> <div class="close"></div> </div> <div class="box"> <div class="close"></div> </div> <div class="box">…
-
1
votes1
answer40
viewsQ: I would like suggestions about this structure in JS
Good afternoon. Practicing a little, I decided to build a javascript slider, and chose to follow this construction line with a builder. The code is functional. However, I would like to encapsulate…
-
1
votes0
answers281
viewsQ: Javascript animations and scrolling effects
In recent times it has been common to find animated websites based on page scrolling. But, unlike the result of a WOW.js of life for example, if you scroll, let the effect run, scroll to another…
-
4
votes1
answer1031
viewsQ: How to format a String with other elements using format()
I would like to know how to format a String 08041995 on 08/04/1995 using the Java format() method PrintStream ps = new PrintStream(arq); String valor = "250,35"; ps.format("R$ "+"%s", valor);…
-
9
votes3
answers197
viewsQ: What is the function of this 'and' that is passed as a parameter?
The example I’m going to show you here is just to illustrate. I’d like to really understand how this one works e which is usually passed as a parameter in various functions that matches in codes…
-
3
votes2
answers332
viewsQ: What is the behavior of the reference variable and the primitive variable?
What is the behavior of a variable of reference type (null) and primitive type (0) in memory before they are initialized. Where they are in memory?
-
1
votes1
answer196
viewsQ: Selection of the Dropdown Menu
I would like when showing the menu dropdown, to li that contains it was still selected. I wonder if there is a way to do this only with CSS. Follow the example. Thanks!…
-
4
votes6
answers30079
viewsQ: How to insert HTML with Javascript?
What is the simplest way to insert HTML into an element through Javascript?
-
1
votes2
answers57
viewsQ: Failure in execution of setInterval
if(inputUser.value == '' || inputPass.value == ''){ setInterval(changeColor("blue"), 3000); alert('Tudo em branco'); } function changeColor(cor){ var prm = "1px solid "+cor; inputUser.style.border =…
javascriptasked Erick Lemos 698 -
5
votes3
answers167
viewsQ: What is the meaning of this definition of values?
<script type="text/javascript"> perfBar.init({ budget: { // the key is the metric id 'loadTime': { max: 200 }, 'redirectCount': { max: 1 }, 'globalJS': { min: 2, max: 5 } } }); </script>…
javascriptasked Erick Lemos 698 -
8
votes2
answers406
viewsQ: Object declaration in Javascript
function List(){ this.listSize = 0; this.pos = 0; this.dataStore = []; }; I can consider this code snippet as creating a List object?
-
13
votes2
answers255
viewsQ: What would be the 'e' passed as a parameter in js functions?
What would be the 'e' that is passed as a function parameter? Ex.: function nome(e) { (instrução); } Does anyone have any material, or keyword for research that I can turn to to study a little more…