PC Playground  

Go Back   PC Playground > The Core > Scripting/Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2003, 03:55 AM
Junior Member
 
Join Date: Jan 2003
Location: Mumbai,India.
Posts: 13
Send a message via MSN to venkatesh Send a message via Yahoo to venkatesh
Default Creating Countdowns

Hi,
Can anyone plz help me on making countdowns using html??
Reply With Quote
  #2 (permalink)  
Old 01-30-2003, 03:39 PM
Member
 
Join Date: Jan 2003
Location: Alabama, USA
Posts: 71
Default

Here's a script





<script language="javascript">
sivam@bol.net.in) -->
http://web1.mtnl.net.in/~sivam/ -->

<!--
function count() {
now = new Date();
setdate = new Date("Jul 01 2004 09:09:09");

day = (setdate - now) / 1000 / 60 / 60 / 24;
day = Math.round(day);
document.write("There are " + "" + day + "" + " day/s to go!");
}
// -->
</script>

<!-- Substitute the above date "Jul 01 2001 09:09:09" with the date you want to
countdown to -->




<font face="verdana, arial, helvetica, sans-serif" size="2">
<script>count()</script></font>
Reply With Quote
  #3 (permalink)  
Old 01-30-2003, 04:38 PM
Junior Member
 
Join Date: Jan 2003
Location: Mumbai,India.
Posts: 13
Send a message via MSN to venkatesh Send a message via Yahoo to venkatesh
Default

Thanks for that prompt reply. Really appreciate it.
Also, it is really good to see a MTNL user around here, just like me :D
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:35 AM.