Tips and help with HTML, CSS, JavaScript, and site development.
AmaD
Registered User
Posts: 122 Joined: August 20th, 2004, 7:37 pm
Post
by AmaD » 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>
[CPU] AMD Athlon 64 3000+ Venice
[MOBO] DFI LanParty UT NF4 Ultra-D (s939)
[CARD] ATI Radeon X800 XL (256MB)
[CASE] Silverstone Temjin TJ01 - Silver
[HDD] ST340016A (40 GB, 7200 RPM, Ultra-ATA/100)
[HDD] WDC WD1200BB-00CJA1 (111 GB, IDE)