Dumb or basic question but i'm learning HTML/CSS/JS and i'm missing the JS part.
I need some help making an img appear after the page is loaded with (let's say) a 3 seconds delay, remain visible for 4 seconds and disappear. Probably only possible with JS and "i don't even basic" in JS.
Managed to get it to hide after 4 seconds but it's needed to delay it first
<div>
<img src="images/browsetip.png" class="browse-tip" id="imgHideShow">
</div>
<script>
function doHide(){
document.getElementById( "imgHideShow" ).style.display = "none" ;
}
function hideImage(){
setTimeout( "doHide()", 4000 ) ;
}
</script>