Contact

Documentation

Free content for your own website/blog

By copying and pasting just 2 blocks of code, you too can have an option pricing calculator on your own website.

An option calculator can add tremendous value to your site and greatly enhance your visitor’s experience of your site. The functionality provided by the application creates the much need stickiness all websites strive for…your visitors will stay longer at your site and therefore be more likely to click on one of your many offers.

A great way to do this is to insert the calculator next to or above a block of Adsense advertisements. The horizontal style is perfectly suited to this – it is the exact width of a medium Adsense banner. See the horizontal example.

I’ve created 3 different styles of the calculator. Here they are in action:

Horizontal

Vertical 1

Vertical 2

Check out a working example in production at Asia ETrading

Terms and Conditions

You may use this calculator freely on your website provided you link back to Option-Price.com with every instance. This means that are free to change the layout of the calculator in any way wish, including renaming variable inputs, as long as the credit for the calculator points back to Option-Price.com

Stay Updated

If you decide to place the calculator on your site, drop me an email and let me know so I can keep you updated as I make changes/enhancements.

Source Code

For each example above, here is the applicable source code.

Horizontal

Place the code below between the HEAD tags:

Then place this piece of code inside the BODY tags:

Vertical 1

Place the code below between the HEAD tags:

Then place this piece of code inside the BODY tags:

Vertical 2

Place the code below between the HEAD tags:

Then place this piece of code inside the BODY tags:

Support

If you have any troubles installing the calculator, please send me an email including the URL of the offending page and I'll take a look

Good luck!

Tips and Tricks

For the default styles to work correctly, you'll need a valid Doc Type at the start of your HTML. For example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

So, if you find the fonts don't come out the same as my examples, this will be the reason.

Also, notice how my calculator loads automatically when the page loads? If you want yours to do this then make your <body> tag look like this:

<body onload="initial_update();document.formc.p1A2.focus();">