Linked Questions
13 questions linked to/from Put a Delay in Javascript
317
votes
6
answers
1.6m
views
How to set time delay in javascript
I have this a piece of js in my website to switch images but need a delay when you click the image a second time. The delay should be 1000ms. So you would click the img.jpg then the img_onclick.jpg ...
14
votes
5
answers
44k
views
jquery delay the execution of code
In my jquery function I have a loader gif image. After I show it I want to put a delay for a second and then continue to execute the rest of the code.
How can I do that?
$('#loader').css('...
0
votes
3
answers
2k
views
How to call function that will last 2 seconds?
I need to call spinner on click and it need to show up 2 seconds and then disappear.I cant use setTimeout and setInterval...is there any other function for that?
2
votes
2
answers
2k
views
document.getElementById always returns "null" for ribbons
I need to set the background color of one of the buttons in the form's ribbon. This isn't supported through Ribbon Workbench, so I have written following javascripts to achieve the same:
function ...
-1
votes
2
answers
2k
views
Changing the Z-Index of a Div After Page Load
I am creating a New Tab extension for Chrome, and, as part of it, need to change the z-index 3 seconds after page load. I have tried JavaScript, CSS and HTML, but cannot find the right code.
I am ...
0
votes
1
answer
1k
views
Add delay in between two if conditions
I would like to add a wait() or delay between two functions.
function(imageID)
{
//alert("i main slider called ");
if(en==1)
{
var selected=$('#' + sel);
...
anam's user avatar
- 3,923
0
votes
1
answer
468
views
Controlling speed of loop processing
Here is problem,
I have some java code that runs on a server and every 60seconds selects 60seconds worth of data, constructs an object out of each one and then adds it to a list.
Now on the client ...
-1
votes
3
answers
254
views
Div Slideshow (html, css, js)
I'm starting my journey in creating webpages. I crave something to try to imitate windows 10 start UI as well as there animation on browser. But the problem is that I'm not yet knowledgeable with ...
-1
votes
1
answer
182
views
How to make a for loop slower?
setInterval(()=>{
for (j = 0; j < obj.length; j++) {
}
})
I have this loop setup, is there any way to make the for loop go slower? obj length can be as big as 200-400 arrays. Jquery ...
-1
votes
1
answer
223
views
Automatically clearing Facebook timeline with JavaScript
i would like to clear my old post in my Facebook timeline.
I have tried using JS to automate this operation, but I am not able to make the goal.
The strange thing, for me, is that if I try the ...
1
vote
3
answers
134
views
Incrementing(+) text size via delayed loop on 'mouseover'
I'm trying to create a <p> that first renders nearly invisible, then on 'mouseover' becomes visible and incrementally increases in size, to finally 1em. Then on 'mouseout' reverts to its ...
-2
votes
3
answers
131
views
Adding a 2 seconds delay between javascript lines
I want to animate something everytime I click on it. So I saved an animation in the class "animation".
function listClick() {
toplist.classList.add("animation");
toplist.classList.remove("...
1
vote
1
answer
99
views
How to simulate a delay like some chat bots do? [closed]
I want to add a little interaction on a page that acts kind of like a very simple bot.
How can I simulate a little time delay like you see in bots? (when it shows a 'typing...' indicator or that ...