mermberfix logo x
The MemberFix Team’s got you covered.
Membership plugins

Free Delayed Buy Button Script + Buy Now Button

free delayed buy button script buy now button

Do you need to add a buy button to your sales page but only want it to appear after a certain amount of time has elapsed? No problemo! Here’s how you can add a time delay to your buy button.

1. Insert the following piece of code into your page before the </head> tag.

<script type=”text/javascript”>
function showIt() {
document.getElementById(“hid”).style.visibility = “visible”;
setTimeout(“showIt()”, 4000); // 1000 = 1 sec

You can either do this universally across your entire site or locally on a given page.

2. Insert the following snippet in the place where you want your buy button:

<div id=”hid” style=”visibility: hidden”>

Make sure you insert this code while you’re in the text editor mode.

You can use this time delay on any kind of content, e.g. an image, text, video, etc. Simply place the content in between the div tags.

If you want to add additional time delays in other locations on your site, you’ll have to add additional instances of the first piece of code and change the element name (in this case, hid) to a unique name for each instance.

For example, if you have three distinct time delays you want to use on your site – 1 minute delay, 5 minute delay and 20 minute delay, respectively – you’ll need three corresponding instance of the code in the header, like this:

<script type=”text/javascript”>
function showIt() {
document.getElementById(“hid1“).style.visibility = “visible”;
setTimeout(“showIt()”, 60000); // 1000 = 1 sec

<script type=”text/javascript”>
function showIt() {
document.getElementById(“hid2“).style.visibility = “visible”;
setTimeout(“showIt()”, 300000); // 1000 = 1 sec

<script type=”text/javascript”>
function showIt() {
document.getElementById(“hid3“).style.visibility = “visible”;
setTimeout(“showIt()”, 12000000); // 1000 = 1 sec


What’s that you say? “I don’t have a buy button!” Don’t worry about it.

Here’s a link to the Ultimate Belcher Button generator (opens in a new tab).

The Belcher button, in case you don’t know, is reputedly the most rigorously tested buy button in the online marketing world. Its particular style gets people to click buy, period. So use it!

*Thanks to Jon from the Warrior Forum for this tip:

You may also enjoy...

WordPress based membership sites have certain requirements, and make use of certain applications that, in my experience, makes most of the popular hosting providers a poor choice.
If you’re unable to see the Blocks Manager in IPBoard – this step-by-step tutorial is for you. We’ll define the reasons and find an easy solution!
Video editing software spits out uncompressed video files that are hundreds, even THOUSANDS of megabytes in size. This tutorial will show you how to compress your vids for fast online

No official Google Maps location? No problem! Do you want to show Google Maps pins on custom places that aren’t “official” locations on a Google Map? No problem, in this

Notify of
Inline Feedbacks
View all comments