Linked Questions

13 questions linked to/from Put a Delay in Javascript
317 votes
6 answers
1.6m views

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 ...
Blue Orange's user avatar
  • 3,205
14 votes
5 answers
44k views

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

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?
None's user avatar
  • 9,329
2 votes
2 answers
2k views

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

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

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

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 ...
Ernie's user avatar
  • 587
-1 votes
3 answers
254 views

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 ...
Ryan Khoo's user avatar
-1 votes
1 answer
182 views

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 ...
Xardas105's user avatar
-1 votes
1 answer
223 views

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

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

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("...
H0ndman2's user avatar
1 vote
1 answer
99 views

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 ...
cool breeze's user avatar
  • 4,861