Suche im Forum:
Suchen


« Vorheriges Thema anzeigen :: Nächstes Thema anzeigen »  
Autor Nachricht
Beitrag03.06.2007 um 13:59 (UTC)    
Titel: Download-Zeit-Berechner

Guten Tag User,

kann mir jemand einen CODE für einen Downloadzeit_Berechner geben???


DANKE!!!

mfg
Beitrag03.06.2007 um 14:09 (UTC)    
Titel: Re: Download-Zeit-Berechner

hi


meinst du so ein ding wenn man etwas downloadet das es dann anzeigt wie lange der download ungefähr dauert? wenn ja >>>>>> das zeigt doch jeder browser an wie lange der download dauert Rolling Eyes
______________
Gruss Mario Wink
[img:2ceb0628ba]http://img.webme.com/pic/t/the-playa/werbebanner.jpg[/img:2ceb0628ba]
Beitrag03.06.2007 um 14:11 (UTC)    
Titel: Re: Download-Zeit-Berechner

the-playa hat Folgendes geschrieben:
hi


meinst du so ein ding wenn man etwas downloadet das es dann anzeigt wie lange der download ungefähr dauert? wenn ja >>>>>> das zeigt doch jeder browser an wie lange der download dauert Rolling Eyes



ich meine halt so a ding da wie auf der seite http://starfuck.de.tl/spielereien.htm!!!

ganz unten auf der seite!!!
Beitrag03.06.2007 um 14:21 (UTC)    
Titel:

hey ho,
frag mich halt gliech persönlich Wink

aber von mir aus

hier der code dafür

Zitat:

<script type="text/javascript" language="JavaScript">
<!--
function MakeArray(n) {
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = 0;
return this;
}

speedVar = new MakeArray(14);
speedVar[1] = "1.1719";
speedVar[2] = "1.7578";
speedVar[3] = "3.5156";
speedVar[4] = "6.8359";
speedVar[5] = "7.8125";
speedVar[6] = "15.6250";
speedVar[7] = "187.9883";
speedVar[8] = "1220.7031";
speedVar[9] = "3295.8984";
speedVar[10] = "5493.1641";
speedVar[11] = "18920.8984";
speedVar[12] = "125";
speedVar[13] = "250";
speedVar[14] = "375";

function compute(form, mult){
for (i=1; i < 15; i++){
if (form.size.value==null||form.size.value.length==0)
form.size.value=0;
if (form[i+"hour"].value==null||form[i+"hour"].value.length==0)
form[i+"hour"].value=0;
if (form[i+"minute"].value==null||form[i+"minute"].value.length==0)
form[i+"minute"].value=0;
if (form[i+"second"].value==null||form[i+"second"].value.length==0)
form[i+"second"].value=0;
if (mult != 0 && form.size.value != 0){
with (Math){
var speed = speedVar[i];
var TotalTime = ((form.size.value*mult)/speed);
var TotalHours = floor((TotalTime/3600));
var TotalHoursMod = (TotalTime%3600);
var TotalMin = floor(TotalHoursMod/60);
var TotalMinMod = (TotalHoursMod%60);
var TotalSec = floor(TotalMinMod);
form[i+"hour"].value=TotalHours;
form[i+"minute"].value=TotalMin;
form[i+"second"].value=TotalSec;
}
}
}
return;
}

// End -->
</script> </p>
<center>
<form>
<table border="4">
<tr>
<td>Dateigrösse?
<input type="text" name="size" size="10" />
<input type="button" onclick="compute(this.form, 1)" value="KB" />
<input type="button" onclick="compute(this.form, 1024)" value="MB" />
<input type="BUTTON" onclick="compute(this.form, 1048576)" value="GB" />
</td>
<td colspan="3"><div align="center"><center><p><strong>Dauer...</strong> </td>
</tr>
<tr>
<th>Deine Internetanbindung</th>
<th>Stunden </th>
<th>Minuten </th>
<th>Sekunden</th>
</tr>
<tr>
<td>9.6 Kb</td>
<td><input type="text" name="1hour" size="6" /></td>
<td><input type="text" name="1minute" size="6" /></td>
<td><input type="text" name="1second" size="6" /></td>
</tr>
<tr>
<td>14.4 Kb</td>
<td><input type="text" name="2hour" size="6" /></td>
<td><input type="text" name="2minute" size="6" /></td>
<td><input type="text" name="2second" size="6" /></td>
</tr>
<tr>
<td>28.8 Kb</td>
<td><input type="text" name="3hour" size="6" /></td>
<td><input type="text" name="3minute" size="6" /></td>
<td><input type="text" name="3second" size="6" /></td>
</tr>
<tr>
<td>56 Kb</td>
<td><input type="text" name="4hour" size="6" /></td>
<td><input type="text" name="4minute" size="6" /></td>
<td><input type="text" name="4second" size="6" /></td>
</tr>
<tr>
<td>ISDN (64 Kb)</td>
<td><input type="text" name="5hour" size="6" /></td>
<td><input type="text" name="5minute" size="6" /></td>
<td><input type="text" name="5second" size="6" /></td>
</tr>
<tr>
<td>ISDN (128 Kb)</td>
<td><input type="text" name="6hour" size="6" /></td>
<td><input type="text" name="6minute" size="6" /></td>
<td><input type="text" name="6second" size="6" /></td>
</tr>
<tr>
<td>DSL 1000</td>
<td><input type="text" name="12hour" size="6" /></td>
<td><input type="text" name="12minute" size="6" /></td>
<td><input type="text" name="12second" size="6" /></td>
</tr>
<tr>
<td>T1 (1.54 Mb)</td>
<td><input type="text" name="7hour" size="6" /></td>
<td><input type="text" name="7minute" size="6" /></td>
<td><input type="text" name="7second" size="6" /></td>
</tr>
<tr>
<td>DSL 2000</td>
<td><input type="text" name="13hour" size="6" /></td>
<td><input type="text" name="13minute" size="6" /></td>
<td><input type="text" name="13second" size="6" /></td>
</tr>
<tr>
<td>DSL 3000</td>
<td><input type="text" name="14hour" size="6" /></td>
<td><input type="text" name="14minute" size="6" /></td>
<td><input type="text" name="14second" size="6" /></td>
</tr>
<tr>
<td>Cable Modem (10 Mb)</td>
<td><input type="text" name="8hour" size="6" /></td>
<td><input type="text" name="8minute" size="6" /></td>
<td><input type="text" name="8second" size="6" /></td>
</tr>
<tr>
<td>Cable Modem (27 Mb)</td>
<td><input type="text" name="9hour" size="6" /></td>
<td><input type="text" name="9minute" size="6" /></td>
<td><input type="text" name="9second" size="6" /></td>
</tr>
<tr>
<td>T3 (45 Mb)</td>
<td><input type="text" name="10hour" size="6" /></td>
<td><input type="text" name="10minute" size="6" /></td>
<td><input type="text" name="10second" size="6" /></td>
</tr>
<tr>
<td>ATM (155 Mb)</td>
<td><input type="text" name="11hour" size="6" /></td>
<td><input type="text" name="11minute" size="6" /></td>
<td><input type="text" name="11second" size="6" /></td>
</tr>
</table>
</form>
</center>
Beitrag03.06.2007 um 14:34 (UTC)    
Titel:

starfuck hat Folgendes geschrieben:
hey ho,
frag mich halt gliech persönlich Wink

aber von mir aus

hier der code dafür

Zitat:

<script type="text/javascript" language="JavaScript">
<!--
function MakeArray(n) {
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = 0;
return this;
}

speedVar = new MakeArray(14);
speedVar[1] = "1.1719";
speedVar[2] = "1.7578";
speedVar[3] = "3.5156";
speedVar[4] = "6.8359";
speedVar[5] = "7.8125";
speedVar[6] = "15.6250";
speedVar[7] = "187.9883";
speedVar[8] = "1220.7031";
speedVar[9] = "3295.8984";
speedVar[10] = "5493.1641";
speedVar[11] = "18920.8984";
speedVar[12] = "125";
speedVar[13] = "250";
speedVar[14] = "375";

function compute(form, mult){
for (i=1; i < 15; i++){
if (form.size.value==null||form.size.value.length==0)
form.size.value=0;
if (form[i+"hour"].value==null||form[i+"hour"].value.length==0)
form[i+"hour"].value=0;
if (form[i+"minute"].value==null||form[i+"minute"].value.length==0)
form[i+"minute"].value=0;
if (form[i+"second"].value==null||form[i+"second"].value.length==0)
form[i+"second"].value=0;
if (mult != 0 && form.size.value != 0){
with (Math){
var speed = speedVar[i];
var TotalTime = ((form.size.value*mult)/speed);
var TotalHours = floor((TotalTime/3600));
var TotalHoursMod = (TotalTime%3600);
var TotalMin = floor(TotalHoursMod/60);
var TotalMinMod = (TotalHoursMod%60);
var TotalSec = floor(TotalMinMod);
form[i+"hour"].value=TotalHours;
form[i+"minute"].value=TotalMin;
form[i+"second"].value=TotalSec;
}
}
}
return;
}

// End -->
</script> </p>
<center>
<form>
<table border="4">
<tr>
<td>Dateigrösse?
<input type="text" name="size" size="10" />
<input type="button" onclick="compute(this.form, 1)" value="KB" />
<input type="button" onclick="compute(this.form, 1024)" value="MB" />
<input type="BUTTON" onclick="compute(this.form, 1048576)" value="GB" />
</td>
<td colspan="3"><div align="center"><center><p><strong>Dauer...</strong> </td>
</tr>
<tr>
<th>Deine Internetanbindung</th>
<th>Stunden </th>
<th>Minuten </th>
<th>Sekunden</th>
</tr>
<tr>
<td>9.6 Kb</td>
<td><input type="text" name="1hour" size="6" /></td>
<td><input type="text" name="1minute" size="6" /></td>
<td><input type="text" name="1second" size="6" /></td>
</tr>
<tr>
<td>14.4 Kb</td>
<td><input type="text" name="2hour" size="6" /></td>
<td><input type="text" name="2minute" size="6" /></td>
<td><input type="text" name="2second" size="6" /></td>
</tr>
<tr>
<td>28.8 Kb</td>
<td><input type="text" name="3hour" size="6" /></td>
<td><input type="text" name="3minute" size="6" /></td>
<td><input type="text" name="3second" size="6" /></td>
</tr>
<tr>
<td>56 Kb</td>
<td><input type="text" name="4hour" size="6" /></td>
<td><input type="text" name="4minute" size="6" /></td>
<td><input type="text" name="4second" size="6" /></td>
</tr>
<tr>
<td>ISDN (64 Kb)</td>
<td><input type="text" name="5hour" size="6" /></td>
<td><input type="text" name="5minute" size="6" /></td>
<td><input type="text" name="5second" size="6" /></td>
</tr>
<tr>
<td>ISDN (128 Kb)</td>
<td><input type="text" name="6hour" size="6" /></td>
<td><input type="text" name="6minute" size="6" /></td>
<td><input type="text" name="6second" size="6" /></td>
</tr>
<tr>
<td>DSL 1000</td>
<td><input type="text" name="12hour" size="6" /></td>
<td><input type="text" name="12minute" size="6" /></td>
<td><input type="text" name="12second" size="6" /></td>
</tr>
<tr>
<td>T1 (1.54 Mb)</td>
<td><input type="text" name="7hour" size="6" /></td>
<td><input type="text" name="7minute" size="6" /></td>
<td><input type="text" name="7second" size="6" /></td>
</tr>
<tr>
<td>DSL 2000</td>
<td><input type="text" name="13hour" size="6" /></td>
<td><input type="text" name="13minute" size="6" /></td>
<td><input type="text" name="13second" size="6" /></td>
</tr>
<tr>
<td>DSL 3000</td>
<td><input type="text" name="14hour" size="6" /></td>
<td><input type="text" name="14minute" size="6" /></td>
<td><input type="text" name="14second" size="6" /></td>
</tr>
<tr>
<td>Cable Modem (10 Mb)</td>
<td><input type="text" name="8hour" size="6" /></td>
<td><input type="text" name="8minute" size="6" /></td>
<td><input type="text" name="8second" size="6" /></td>
</tr>
<tr>
<td>Cable Modem (27 Mb)</td>
<td><input type="text" name="9hour" size="6" /></td>
<td><input type="text" name="9minute" size="6" /></td>
<td><input type="text" name="9second" size="6" /></td>
</tr>
<tr>
<td>T3 (45 Mb)</td>
<td><input type="text" name="10hour" size="6" /></td>
<td><input type="text" name="10minute" size="6" /></td>
<td><input type="text" name="10second" size="6" /></td>
</tr>
<tr>
<td>ATM (155 Mb)</td>
<td><input type="text" name="11hour" size="6" /></td>
<td><input type="text" name="11minute" size="6" /></td>
<td><input type="text" name="11second" size="6" /></td>
</tr>
</table>
</form>
</center>


thx!!! ja nja!! THX khihih Razz Razz Razz Razz
Beitrag03.06.2007 um 14:35 (UTC)    
Titel:

Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de