Javascipt Download Script
Posted: August 20th, 2004, 10:20 pm
First off, this is pretty much my first 'thing' i've made in javascript, and i'm sure this is the correct forum to post this in. Well, here's my script which should hopefully calculate download times very badly:
Code: Select all
<html>
<head>
<title> Base </title>
<script>
var n2 = null;
if ( n2 == null )
{
n2 = prompt( "Enter The Download Speed In Kb/s", " " );
}
var n3 = null;
if ( n3 == null )
{
n3 = prompt( "Enter The Size Of The File In Megabytes", " " );
}
var equ = (n3 * 1024) / (n2 * 60)
var eqh = equ / 60
document.write ( "<h3><font face='Arial'> The File Will Be Downloaded In " +equ+ " Minutes" );
document.write ( "<h3><font face='Arial'> The File Will Be Downloaded In " +eqh+ " Hours<br>" );
</script>
</head>
<body>
</body>
</html>