Here's what I'm trying to do. I have a simple page with a video on it and I want an add to cart image and link to pop up at certain times under the video and then hide. I want it to do show then hide 3 times. Currently I'm doing it like this. Code: function showme() { document.getElementById("hid1").style.visibility = "visible"; } setTimeout("showme()", 5000 ); function showme(){ document.getElementById( "hid1" ).style.display = "none" ; } setTimeout("showme()", 7000 ); I'm doing that for each div. What's the best way to do this? Thanks.
Help with javascript show then hide
3
Here's what I'm trying to do. I have a simple page with a video on it and I want an add to cart image and link to pop up at certain times under the video and then hide. I want it to do show then hide 3 times. Currently I'm doing it like this. I'm doing that for each div. What's the best way to do this? Thanks.
Code:
function showme() {
document.getElementById("hid1").style.visibility = "visible";
}
setTimeout("showme()", 5000 );
function showme(){
document.getElementById( "hid1" ).style.display = "none" ;
}
setTimeout("showme()", 7000 ); - bugbuguk
- dealbert.net
Next Topics on Trending Feed
-
3