Simple One-Time-Offer script

The most of One-Time-Offer (OTO) scripts are based on cookies.
This isn’t a best method. But it is simple and it works in most cases.

The script I’d like to show you uses the same “cookie” method. But this script has a twist.
You may have several One-Time-Offers. And they would appear one by one every time they open your page again.

OTO function

At the first include this code from the box below in your web page.

A. Select all of the code in the box below then copy to clipboard (Ctrl+c) then paste (Ctrl+v) it above the </head> tag of your HTML source code.

Then use this function to check if a specified OTO has been shown.
B. If you use a popup window to show your offers, use a code like this:

<body onload=”if ( oto(’offer1′) ) window.open(’offer1.html’);”>

Multiple Offers

Let’s suppose you have 5 offers you’d like to show one after another.
You have html pages named as offer1.html, offer2.html, offer3.html, offer4.html and offer5.html.

Now you can use a code like below.

<body onload=”showOffer()”>
<script type=”text/javascript”>
  function showOffer() {
    if ( oto(’offer1′) ) window.open(’offer1.html’);
    else if ( oto(’offer2′) ) window.open(’offer2.html’);
    else if ( oto(’offer3′) ) window.open(’offer3.html’);
    else if ( oto(’offer4′) ) window.open(’offer4.html’);
    else if ( oto(’offer5′) ) window.open(’offer5.html’);
  }
</script>

Click this “OTO” button several times to test the script. It wouldn’t open new windows. You’ll be shown with splash messages instead.

OTO and Special Offer

You may remember my Special offer expiry date script. Now we can combine both scripts to show a Special offer only one time.

A. You have to include the first part of the Special offer expiry date script into your web page.

Select all of the code in the box below then copy to clipboard (Ctrl+c) then paste (Ctrl+v) it between the <head> and </head> tags of your HTML source code.

 
B. Insert the OTO code into your page too.

Select all of the code in the box below then copy to clipboard (Ctrl+c) then paste (Ctrl+v) it between the <head> and </head> tags of your HTML source code.

 
C. Insert the second part of the Special offer expiry date script with the oto function used into your web page.

Select all of the text in the second box below then copy to clipboard (Ctrl+c), then paste (Ctrl+v) the HTML code you’ve just selected into the source code of your web page anywhere between the <body> and </body> tags. The position you choose is where your special offer will appear.

 
Sample for the code:
<div id="specialOffer">
<iframe width="1" height="1" frameborder="0"
  marginheight="0" marginwidth="0" scrolling="no">

<div><b>Your special offer HTML-code.</b></div>
<div>You can use:</div>
<div>still <i>#expiryDays# days</i></div>
<div>or till <i>#expiryDate#</i></div>

</iframe>The offer has expired. Sorry.
You can't see the Offer second time.

</div>
<script language="JavaScript" type="text/javascript">
<!--
  if ( oto("specialOffer") )
    expiration("specialOffer", 2009, 12, 31);
//expiration(offerID, year, month, day);
//-->
</script>

 

The offer has expired. Sorry.
You can’t see the Offer second time.

 

by Michel Komarov, © Copyright 2006. iCoder.com

 

Share in social bookmarking:These icons link to social bookmarking sites where readers can share and discover new web pages.  digg del.icio.us BlinkList Reddit NewsVine YahooMyWeb co.mments

Related Articles:

7 Responses to “Simple One-Time-Offer script”

  1. Nancy P Redford’s Practical Marketing Tips » Sone Of The Best Scripts In Life Are FREE! Says:

    […] If you don’t have the cash to invest in scripts then how about getting the code for F*R*E*E*! […]

  2. Maximize your ezine profits (List Building Blog) Says:

    […] You can get a great free One Time Offer script here: askmichel.icoder.com/2006/08/06/simple-one-time-offer-script/ […]

  3. Easy Profit Increase : Internet Business Coaching by Terry Dean Says:

    […] The easiest method for limited offers is through setting cookies although that method most definitely isn’t perfect as some people delete cookies. See here for a simple free script… You can also find more advanced scripts out there that work off IP addresses and databases. […]

  4. buehrle Says:

    Hello,

    i have programmed an “one-time-offer” script in German. It is very simple to install (in 5 minutes) and powerfull in the employment. Further information: http://www.internetinferno.de/cashcounter

    in German:

    Hallo,
    ich habe ein “One-Time-Offer”- Script in Deutsch entwickelt. Es ist sehr einfach zu installieren (in nur 5 Minuten) und extrem erfolgreich im Einsatz. Weitere Informationen unter: http://www.internetinferno.de/cashcounter

    Siegmar

  5. Levcomm Says:

    Hi: I tried the Simple OTO script and it failed. I suspect that it might be because I am using a Mac. Is this the case? Are the steps to use it any different on a Mac?

    Thanx

  6. michel Says:

    Hi,

    This OTO script is a cookie-based javascript. You insert the code into your web-page.
    It should work for any web-visitor who has javascript and cookies enabled.
    Could you let me know the URL of your web-page with the OTO script?

    Michel

  7. The 7 Pages You Need to Make Money | Entrepreneur Kickstart Says:

    […] You may present them with a one time offer (OTO) discount on an associated product. Free one time offer script and here. […]

Got a question?   Leave a Reply

You must be logged in to post a comment.