Selling ad banners has just got easier! Just enter two fields of the three fields of information, such as the total cost, CPM (cost per thousand impressions), and exposures (number of ads shown), and the calculator will solve the last field for you.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin function
adCalc(form){ var
ok =0; var
cost =form.cost.value; var
cpm =form.cpm.value; var
exposures =form.exposures.value;
varcomplete="It looks like you entered all
the information already! With this calculator, you just enter two of
the fields and it solves for the last one.";
var
incomplete ="Oops! It doesn't appear you
entered enough information. Please enter at least two entries in order
to solve for the other two.";
if(!ok)alert(incomplete);// they did not enter at least 2
fields if(cost
!=""&&
cpm !=""&&
exposures !="")alert(complete);// they filled in all the
fields! } // End --> </script> <center> <formmethod=post> <tableborder="1"cellpadding=5>
<tr>
<td
align=center>Cost:</td>
<td
align=center><inputtype=textname=costsize=8value=""onFocus="select()"></td>
</tr>
<tr>
<td
align=center>CPM:</td>
<td
align=center><inputtype=textname=cpmsize=8value=""onFocus="select()"></td>
</tr>
<tr>
<td
align=center>Exposures:</td>
<td
align=center><inputtype=textname=exposuressize=8value=""onFocus="select()"></td>
</tr>
<tr>
<td
colspan=2align=center><inputtype=buttonvalue="Solve"onClick="adCalc(this.form)"><inputtype=resetvalue=reset></td>
</tr>
</table> </form> </center>