Script Categories

Calculators >>> Phone Bill.

Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have to do is enter the amount per minute, and any initial amount, then click start when the call begins and see the total charge at any time!

Initial amount added to every call:
Amount per minute:
Number of minutes passed:
Seconds in current minute:
Amount of phone call:

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function decimal(num) {
string = "" + num;
if (string.indexOf('.') == -1)
return string + '.00';
seperation = string.length - string.indexOf('.');
if (seperation > 3)
return string.substring(0,string.length-seperation+3);
else if (seperation == 2)
return string + '0';
return string;
function count() {
if (i == 60) { i=0; x=(x + 1)} = x;
i++; = i; = "$" +
((x * +
if (countit != "no") {
function stop() {
// End -->
<form name=money>
<table border=1 bgcolor="#f5f5f5">
Initial amount added to every call:</td>
<input name=initial type=text value="1.25" size=20 onChange=" = decimal("></td>
Amount per minute:</td>
<input name=permin type=text value=".10" size=20></td>
Number of minutes passed:</td>
<input name=minutes type=text size=20></td>
Seconds in current minute:</td>
<input name=seconds type=text size=20></td>
Amount of phone call:</td>
<input name=owed type=text size=20 value="$0.00"></td>
colspan=2 align=center><input type=button value=" Start " onClick="countit='yes'; count()"><input type=button value=" Stop " onClick="stop()"></td>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Dice Site . extralend app