Posts by Lucas Martiniano • 196 points
8 posts
-
1
votes3
answers340
viewsA: Change CSS property when doing :Hover over another menu link
Hello. I made the following solution using pure js. var hovers = document.getElementsByName("hover"); var ativo = document.getElementsByClassName("ativo")[0]; for(let i = 0; i < hovers.length;…
-
2
votes2
answers50
viewsA: Redeem values from an array when the value is greater than x
You can go through the array by checking occurrences of sales number greater than 4. As in the example below: <?php $vendedores = array( 'a'=> 1, 'b'=> 2, 'c'=> 16, 'd'=> 4); $count =…
-
1
votes2
answers107
viewsA: Browse Array and view in table
I understand that you want the 3 vectors to be shown as 3 lines below the HTML code you passed, this should serve: <?php $vetor1 = array("GT 1030 GDDR5", "GT 1030 DDR4", "GTX 750 TI", "GTX 750",…
-
0
votes1
answer298
viewsA: I can’t link, the html file with the css style
Hello. On the link tag you are typing the attribute type uppercase letter. So it will work: <link rel="stylesheet" type=text/css" href="css/normalize.css"> <link rel="stylesheet"…
-
1
votes1
answer72
viewsA: Matrix program error in C
Hello. Your matrix is showing zeroed because you are zeroing the elements here: m[i][j]=0; . Put non-zero values on that line and it’ll all be over. In the example below, I entered values in the…
-
0
votes5
answers2183
viewsA: Save items and recover values with Localstorage
Hello. You can store items in JSON as a Jsons array. To add a new item, you can take all the other already added ones and store them in an array, push the new item in the array and store the array…
-
0
votes2
answers138
viewsA: Validate equal fields
Before validation, it is necessary to prevent the form from being submitted using the function Event.preventDefault(). Using pure Javascript, we can do the treatment by the eventListenner.…
javascriptanswered Lucas Martiniano 196 -
7
votes1
answer1295
viewsA: Make a DIV push the rest of the content down
Hello. If you have not made any change of position, the lower div will automatically position itself according to the height set by the top. What happens is that you probably delimited the exact…