
Home
Date and Time
Here
|
Categories
Partners
DaniWeb is an exciting community for web developers, Internet marketers, and technology enthusiasts.
Other Sections
Advertisement
Compatibility
|
|
FF1+ IE5+ Opr7+
Dynamic Countup Script Author:
March 18th, 07': Script completely
rewritten for multiple instances on the same page, plus ability to
customize output via " Description: Display how much time has passed
since an expired date with this rare script. It's sensitive to the second (ie " Lets use it below to show how long "Prince Charles" has been married to Camilla Parker for: Demo: Step 1: Insert the below script into the HEAD section of your page: Step 2: Then, add the below sample count up code to the BODY of your page to see how to initialize the script: The code of Step 2 shows you how to create a count up.
First, call the //SYNTAX: myvariable=new
dcountup(past_date_and_time_string, "baseunit") It accepts the following two parameters:
Once you've called princewedding.oncountup=function(result){ The lone parameter "
inside your custom function, respectively. So with that said, here's how you might display the results of a countup in an arbitrary DIV on the page: <div id="cpcontainer"> </div> It's up to you to customize the action to take "
|