dreamboy1997
Neues Mitglied
Hallo ich hsbe eine Schulden uhr gefunden. Und ich möchte das diese Schuldenuhr bei 0€ starten.
Hier der Script:
<html>
<head>
<script type="text/javascript">
// Schuldenuhr von steuerboykott.org / Version 20100420
var StartTime = new Date(2010,1,1);
function ShowDebt () {
var Now = new Date();
var milliseconds = Math.round(Now.getTime() - StartTime);
var DebtEUR = milliseconds * 4.481 + 1666877730000;
window.document.Show.amount.value = Number_Format(DebtEUR) + " EUR";
window.setTimeout("ShowDebt()", 20);
}
function Number_Format(num, n, fix)
{
if(!n) n = 0;
var recent = '';
var f = Math.pow(10, n);
num = '' + parseInt( num * f + (.5 * (num > 0 ? 1 : -1)) ) / f ;
var tmp = num.indexOf('.');
if(fix){num += (tmp == -1 ? '.' : '' ) + f.toString().substring(1);}
tmp = num.indexOf('.');
if( tmp == -1) tmp = num.length;
else recent = ',' + num.substr(tmp + 1, n);
while(tmp > 0){
if(tmp - 3 > 0) recent = '.' + num.substring( tmp - 3, tmp) + recent;
else recent = num.substring(0, tmp) + recent;
tmp -= 3;
}
return recent;
}
</script>
</head>
<body>
<script type="text/javascript">
document.write('<form action="" name="Show"><input name="amount" class="debt" type="text" size="23"><\/form>');window.setTimeout('ShowDebt()', 1);
</script>
</body>
</html>
Hier der Script:
<html>
<head>
<script type="text/javascript">
// Schuldenuhr von steuerboykott.org / Version 20100420
var StartTime = new Date(2010,1,1);
function ShowDebt () {
var Now = new Date();
var milliseconds = Math.round(Now.getTime() - StartTime);
var DebtEUR = milliseconds * 4.481 + 1666877730000;
window.document.Show.amount.value = Number_Format(DebtEUR) + " EUR";
window.setTimeout("ShowDebt()", 20);
}
function Number_Format(num, n, fix)
{
if(!n) n = 0;
var recent = '';
var f = Math.pow(10, n);
num = '' + parseInt( num * f + (.5 * (num > 0 ? 1 : -1)) ) / f ;
var tmp = num.indexOf('.');
if(fix){num += (tmp == -1 ? '.' : '' ) + f.toString().substring(1);}
tmp = num.indexOf('.');
if( tmp == -1) tmp = num.length;
else recent = ',' + num.substr(tmp + 1, n);
while(tmp > 0){
if(tmp - 3 > 0) recent = '.' + num.substring( tmp - 3, tmp) + recent;
else recent = num.substring(0, tmp) + recent;
tmp -= 3;
}
return recent;
}
</script>
</head>
<body>
<script type="text/javascript">
document.write('<form action="" name="Show"><input name="amount" class="debt" type="text" size="23"><\/form>');window.setTimeout('ShowDebt()', 1);
</script>
</body>
</html>