Posts by Wagner' • 1,211 points
20 posts
-
26
votes2
answers14336
viewsQ: Some way to style "parent" element with CSS
Hello, is there any way to select the parent element of another element with CSS? To be more specific, I’m studying on localhost using the phpBB3 forum platform, when a message is thankful it wins…
-
8
votes2
answers478
viewsQ: How do I get a loose number in my HTML?
Consider the following code: <span class="test"><span style="color:green">Teste</span>:</span> Text<br><br> <span class="test"><span…
-
0
votes1
answer155
viewsQ: Check if an element exists with switch
Hello, how do I make a check and check if certain element exists using switch? To be more specific, I’m trying to use this code: var forumversion = function() { invision =…
-
-2
votes1
answer297
viewsQ: Redirect system with PHP
Hello, how could I make a page redirect system with PHP? Being more specific, it would be the following, I have a test page with only 2 inputs, one to send and the other to insert a text. If it type…
-
2
votes3
answers16599
viewsA: Fixed div when scrolling down page
Hello, it is possible to do capturing the scroll event and check if the scrollTop is larger than the size you want. I would use the following code $(function(){ var jElement = $('.element');…
-
0
votes1
answer169
viewsA: Test equal resolution Netshoes website
They probably use media-queries to achieve such an effect. You can read more about it here: http://www.w3.org/TR/css3-mediaqueries/…
-
1
votes2
answers230
viewsA: How to make a site that fits between 970px and 1300px
The media-queries tip has already been left and is what most fits your problem probably. In addition to max-width and min-width, you add a width with percentage for your container to adapt to the…
-
3
votes1
answer1779
viewsQ: Calculate online time with Javascript/jQuery
I need to develop a code where I don’t have access to languages back-end, need to do a function that calculates the time a user is online on the page and save this time on localStorage, I thought…
-
2
votes2
answers121
viewsQ: Adapt boxes to mobile layout
Hello, I have a layout that resembles this I use Bootstrap on it.. When hitting a particular breakpoint it gets a format similar to this one I want to do the following effect, when the layout…
-
3
votes2
answers887
viewsQ: Replace symbols < /> with Javascript
I’d like to know how to replace the symbols < /> with Javascript. I’m using the tag <code></code> to display a code, but I don’t want it to be rendered in the browser. I know I can…
-
3
votes3
answers5402
viewsQ: Fade effect on image exchange with jQuery
The following code makes an "image Fader" in a div that I have in my document. However, the effect is very 'dry', I would like to have a transition during the image exchange, like the "fade" effect…
-
3
votes1
answer91
viewsQ: User-friendly URL with Boilerplate
I’m using Boilerplate to have a base template for use. But I’m trying to use friendly Urls on it, but I can’t.. I’ve tried several codes, the latest is this: RewriteCond %{REQUEST_FILENAME} !-d…
-
5
votes2
answers2939
viewsQ: Is there a problem with not putting "/" (bar) in auto-closing tags?
When I was learning about HTML, I read that there are two types of tags, those that are necessary to 'close', (<tag></tag>, ex: <div></div>) and those with self closure…
-
17
votes3
answers9289
viewsQ: How to change the title of each PHP page dynamically?
I know almost nothing about PHP. Once a friend sent me a code that allowed me to separate my page into several parts and then pick up those parts again in case I change something in the scripts and…
-
5
votes3
answers16413
viewsQ: Run function after some time
Hello, I have the following code (just studying): $('#test').hover(function(){ $('.box-one, .box-two, .box-three').hide();…
-
10
votes3
answers2277
viewsQ: How to check if user has left the window
I would like to know a way to check if the user left the window of my page with Javascript, for example, if he changes tab (to search something in Google for example) the script changes the title of…
javascriptasked Wagner' 1,211 -
13
votes5
answers3441
viewsQ: Show text when typing in textarea
Consider the following example: I have a textarea that, when the user enters something on it, a small text just below should be displayed, and at a certain time after the user has finished typing…
-
4
votes3
answers236
viewsQ: Check if a div contains a number
I have a paragraph that contains several links, alternating between words or numbers. I need to perform the following check: if the link within the paragraph is any text, it will do nothing with the…
-
11
votes3
answers5660
viewsQ: How to keep the element scroll always at the bottom
Consider the following example I’ve done here: $("#add").click(function() { $("#wrap ul").append('<li class="new">Teste</li>'); $("li.new").slideDown('slow', 'easeOutBounce'); });…
-
-4
votes18
answers139957
viewsA: What is the best way to center an element vertically and horizontally?
As was said there is no "better" way to do this, it all depends on the project.. I usually wear this: seletor{margin: 0 auto;} But like I said, it varies a lot from project to project.…