Show Buy Button After Set Time

1 replies
  • WEB DESIGN
  • |
Hey guys,

Just wondering if anyone knows how to set an image, in this case a buy button, to only display after the user has been viewing the page for a certain amount of time.

I'm using dreamweaver to make the site.

#button #buy #set #show #time
  • Profile picture of the author kilgore
    Look at JavaScript's setTimeout() method (Window setTimeout() Method). For instance you could do something like this:

    Code:
    setTimeout(function(){
      document.getElementById("myImage").style.visibility="visible";
    }(),1000);
    Obviously, this is just an example, but it should hopefully point you in the right direction.
    {{ DiscussionBoard.errors[9722512].message }}

Trending Topics