8
Is there any way I can inform a visible : true
for time? I want it to be true only for a few seconds then come back to false
.
8
Is there any way I can inform a visible : true
for time? I want it to be true only for a few seconds then come back to false
.
11
Serves like this?
function esconde() {
document.getElementById("exemplo").style.visibility = "hidden";
}
setTimeout(esconde, 3000);
<div id="exemplo" style="visibility: visible">Vou sumir em 3 segundos</div>
Yes I understood your code. but I need the image to be True for 3 seconds and the false sticker... It’s like?
Just reverse it, you can use your creativity to adapt and do new things. But I changed the answer especially for you.
Now the function Mostra
hides instead of showing :P
@bfavaretto boring :P
Being boring works :D
Browser other questions tagged javascript html
You are not signed in. Login or sign up in order to post.
Behold timeout and also do the tour to learn about the functioning of the community.
– Bruno César