| |||
Re: Script que dise tiempo estimdo de descarga ¡Hola! Aqui tienes uno:
Código:
<html> <head><script LANGUAGE="JavaScript"> <!-- Begin // Script elements copyright (c) 1997 IMGIS Inc. // All rights reserved. function MakeArray(n) { this.length = n; for (var i = 1; i <= n; i++) { this[I] = 0 } return this } speedVar = new MakeArray(11); speedVar[1] = "1.1719" speedVar[2] = "1.7578" speedVar[3] = "3.5156" speedVar[4] = "6.8359" speedVar[5] = "7.8125" speedVar[6] = "16.6250" speedVar[7] = "187.9883" speedVar[8] = "1220.7031" speedVar[9] = "3295.8984" speedVar[10] = "5493.1641" speedVar[11] = "18920.8984" function compute(form, mult){ for (i=1; i < 12; 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; 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> <title>JavaFILE</title> <base target="leftframe"> </head> <body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start--> <p align="center"><img src="http://www.javafile.com/images/banner.GIF" alt="banner.GIF (2826 bytes)"></p> <table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5"> <tr> <td WIDTH="100%">How long does it take to download a&nbsp; 22 meg program under optimal conditions from the web? To find the answer, use this really cool script from the JavaFILE!<font FACE="ARIEL,HELVETICA" SIZE="-1"><p align="center"></font><a href="http://www.javafile.com/javascripts/clocks/calc4.zip">Download the Script</a><font FACE="ARIEL,HELVETICA" SIZE="-1"></p> <form> <input type="hidden" name="7hour" value><input type="hidden" name="7minute" value><input type="hidden" name="7second" value><input type="hidden" name="8hour" value><input type="hidden" name="8minute" value><input type="hidden" name="8second" value><input type="hidden" name="9hour" value><input type="hidden" name="9minute" value><input type="hidden" name="9second" value><input type="hidden" name="10hour" value><input type="hidden" name="10minute" value><input type="hidden" name="10second" value><input type="hidden" name="11hour" value><input type="hidden" name="11minute" value><input type="hidden" name="11second" value><div align="center"><center><table BORDER="4"> <tr> <td bgcolor="#FFFF00">File Size? <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"> </td> <td colspan="3" bgcolor="#FFFF00"><div align="center"><center><p><b>It will take you ....</b> </td> </tr> <tr align="center"> <th bgcolor="#0000FF"><font color="#FFFFFF">If your modem is a ....</font></th> <th bgcolor="#0000FF"><font color="#FFFFFF">Hours </font></th> <th bgcolor="#0000FF"><font color="#FFFFFF">Minutes </font></th> <th bgcolor="#0000FF"><font color="#FFFFFF">Seconds</font></th> </tr> <tr align="center"> <td BGCOLOR="#000000"><font color="#FFFFFF">9.6 Kb ...putt, putt, putt :)</font></td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="1hour" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="1minute" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="1second" SIZE="6"></td> </tr> <tr align="center"> <td BGCOLOR="#000000"><font color="#FFFFFF">14.4 Kb ...snail power!</font></td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="2hour" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="2minute" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="2second" SIZE="6"></td> </tr> <tr align="center"> <td BGCOLOR="#008000"></font><font color="#FFFFFF" face="ARIEL,HELVETICA" size="-1">28.8 Kb ...getting there...</font><font FACE="ARIEL,HELVETICA" SIZE="-1"></td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="3hour" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="3minute" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="3second" SIZE="6"></td> </tr> <tr align="center"> <td BGCOLOR="#008000"><font color="#FFFFFF">56 Kb ...you're there!</font></td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="4hour" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="4minute" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="4second" SIZE="6"></td> </tr> <tr align="center"> <td BGCOLOR="#FF0000"><font color="#FFFFFF">ISDN (64 Kb)&nbsp; I'm jealous!</font></td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="5hour" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="5minute" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="5second" SIZE="6"></td> </tr> <tr align="center"> <td BGCOLOR="#FF0000"><font color="#FFFFFF">ISDN (128 Kb)&nbsp; I'm &quot;really&quot; jealous!!</font></td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="6hour" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="6minute" SIZE="6"> </td> <td bgcolor="#0000FF"><input TYPE="TEXT" NAME="6second" SIZE="6"></td> </tr> <tr align="center"> <td BGCOLOR="#FFFF00">hey, make another modem will ya!</td> <td BGCOLOR="#FFFF00">&nbsp;</td> <td BGCOLOR="#FFFF00">&nbsp;</td> <td BGCOLOR="#FFFF00"></font>&nbsp;</td> </tr> </table> </center></div> </form> </td> </tr> </table> <!--content stop--> </body> </html> |