Corvette Forum  


Go Back   Corvette Forum > Help & Feedback > Testing
Sign in using an external account
Register Forgot Password?
Register Vendors Buy a Vette Search Today's Posts Mark Forums Read FAQ PhotosGarage

Testing Sig Testing | Image Testing | Post Testing

Corvette Store
 
 
C6 Parts & Accessories
C5 Parts & Accessories
Wheels & Tires
Sponsored Ads
 
 
Vendor Directory
 
Reply
 
 
 
 
Thread Tools Search this Thread
Old 04-03-2006, 10:38 PM   #1
Miguels
CF Senior Member
 
Miguels's Avatar
 
Member Since: Mar 2004
Location: San Jose Ca
Send a message via AIM to Miguels Send a message via Yahoo to Miguels
Default testes

Code:
<html>

<head>
<title>Countdown Clock</title>

</head>

<SCRIPT LANGUAGE="JAVASCRIPT">
// <!-- Quick! Hide the java!

// Speaking of Java, this particular script is (C) Copyright 2002 Jim Tucek
// If you wish to use my CountDown script, these comments must be left
// alone!  That is all.

// Visit www.jracademy.com/~jtucek/ for script information and a bit of help
// setting it up, or www.jracademy.com/~jtucek/email.html for contact
// information.

function start()
{
setup(document.forms["form1"].time2.value,"form1");
repeat()
}

start();

function repeat() 
{
down("form1");
setTimeout("repeat()",1000);
}

function setup(day,box)
{
today = (new Date()).getTime();
the_day = (new Date(day)).getTime();
time = (the_day - today);
document.forms[box].time2.value=time;
}

function down(box)
{
document.forms[box].time2.value = document.forms[box].time2.value - 1000;
time = document.forms[box].time2.value;
days = (time - (time % 86400000)) / 86400000;
time = time - (days * 86400000);
hours = (time - (time % 3600000)) / 3600000;
time = time - (hours * 3600000);
mins = (time - (time % 60000)) / 60000;
time = time - (mins * 60000);
secs = (time - (time % 1000)) / 1000;
if(days==1) out = "1 day, ";
else out = days+" days, ";
if(hours < 10) out = out+"0";
out = out+hours+":";
if(mins < 10) out = out+"0";
out = out+mins+":";
if(secs < 10) out = out+"0";
out = out+secs;
if(days+hours+mins+secs> 1) document.forms[box].time.value = out;
else document.forms[box].time.value = ("It's here!");
}
// I'm back! -->
</SCRIPT>

<body>


<FORM name="form1">
<input type="text" name="time" size="20" value=" "> Waiting for the Rotors! 
<input type="hidden" name="time2" size="0" value="April 6, 2006 17:30:15">
</FORM>

<SCRIPT> start(); </SCRIPT>

</body>
</html>
Miguels is offline   Reply With Quote
Old 04-03-2006, 10:38 PM
 
Go Back   Corvette Forum > Help & Feedback > Testing
Reload this Page testes
 
 
 
Reply

Tags
clock, countdown, jim, tucek


Thread Tools Search this Thread
Search this Thread:

Click for Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FMIC on TTix Yano C5 Forced Induction/Nitrous 62 06-10-2005 01:44 AM
DIY Ramps b4i4getit C6 Corvette General Discussion 29 06-06-2005 06:27 PM
Corvette Parts Scam David(TX) C4 Parts for Sale/Wanted 15 02-25-2005 07:13 PM
Here are The Numbers! MagicMtnDan C6 Z06 Discussion 92 01-02-2005 06:34 PM
Warning to mid-to-late 70's C3 owners... DJ Dep C3 Tech/Performance 123 09-14-2004 02:53 AM
[PICS] High-speed tango with a Camaro.... Patrick96LT4 C4 General Discussion 47 03-23-2002 04:16 PM
Best 'Vette Alternative: Mustang or Camaro?? beachbum C5 Corvettes for Sale 25 02-09-2002 05:29 PM


All times are GMT -4. The time now is 06:52 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.1 PL1
Emails & Password Backup