Questions tagged as 'setinterval'

3
answers

How to set the number of times setInterval will run?

Is it possible to control the number of runs of setInterval ? I made a very simple script where I wanted to div blink 3x to alert the user. But in the script I did it it blinks straight. <div id="my-div">alerta teste<...
asked by 23.11.2015 / 19:35
4
answers

Writing effect using javascript, setInterval does not work

I'm trying to use the setInterval function to write 1 letter every second, but it did not work: partText = ""; function escrever(text) { for (i = 0; i < text.length; i++) { partText += (text.charAt(i)); document.g...
asked by 21.05.2016 / 04:59
1
answer

Problems with setInterval

Next, my problem is like this, I'm doing an inbox, so I need to update every 5 seconds of the messages. So far so good. In the div that loads the messages I put the following script: function loadInbox1(id) { $("#load-inbox-1").html("<i cl...
asked by 16.12.2015 / 20:21
1
answer

Looping jquery setInterval

I'm making a slider, and I need it to start again when I see the images, but I can not. Could someone help? JS $(function(){ // Buttons Hover Effect buttonsHover(); function buttonsHover(){ var buttons = $...
asked by 24.11.2015 / 23:41
1
answer

Can you make a type of "setInterval" in PHP?

To run a particular function in a time interval.     
asked by 08.10.2016 / 04:23
2
answers

jQuery each - Clarification

I need every x seconds a li of my menu to be hidden and I have this code: $('.area-menu .close').click(function(){ delayed(); }); function delayed() { var liMenu = $('.area-menu li').not('.marginless'); var time = 1000;...
asked by 10.02.2016 / 21:34
1
answer

Display image according to time by repeating the javascript function

I'm using this code to display two images on a particular page: <!DOCTYPE html> <!DOCTYPE html> <html> <head> <style> #mapinha { position: relative; top: 0; left: 0; } #mapa_big { position: relative...
asked by 29.01.2017 / 08:22
1
answer

Mount a Strobe Light inside the JS canvas

I have a task to develop for college but I have some problems. First let me try to explain what to do: I need to simulate a strobe light based on some colors in an HTML selector. The user must choose the range (I have not done the range ye...
asked by 28.02.2018 / 21:56
1
answer

How to Interrupt setInterval in JavaScript?

How do I stop running a setInterval that is running on a module that I do not need anymore? I'm not talking about just getting the setInterval return and executing a clearInterval . That's not it ... Example: app.js...
asked by 09.08.2017 / 22:21
1
answer

Problems with the time interval in a carousel

Well, I'm having some problems with a carousel created by myself, more specifically in the transition order of the items. var carouselBannerHolder = document.getElementById("banners-slider"); var itemsCarousel = document.querySelectorAll(".ban...
asked by 21.03.2017 / 13:23