Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
daisybakers #1
Day Counter
Hi, I'm looking for a counter that i can set at any number and will
automatically add 1 to that number at midnight each night.
This is to monitor the number of Accident Free Days a company has. I would
need to reset the counter to zero if/when an accident occurred. I would need
to use this counter on multiple pages (one for each company). Site is purely
HTML and no database exists.
Thanks in advance
Carol
daisybakers Guest
-
RFC: DBIx::Counter - persistent counter class
Hi, I've been a CPAN consumer for so long, I thought it's about time to start contributing. I wrote a little module that does exactly the same as... -
Free Network Tools - Random Password Generator - Link Counter - Hit Counter
Free Network Tools - Random Password Generator - Link Counter - Hit Counter http://www.sharewareisland.com/onlinetools.asp -
hit counter or page counter
Hi, I need to have a page counter to see how many people access my website. How can this be done? In FrontPage, it's called hit counter. Thanks. -
hit counter
How can I add a hit counter to my web site created in Publisher? -
how do I add a hit counter?
I have published a website using MS Publisher 200, and I can't figure out how to pu t asimple hit counter on my home page....I don't want to... -
Joe Makowiec #2
Re: Day Counter
On 22 May 2007 in macromedia.exchange.extensions.dreamweaver,
daisybakers wrote:
First, you'd be better asking this in the Dreamweaver General Discussion> Hi, I'm looking for a counter that i can set at any number and will
> automatically add 1 to that number at midnight each night.
> This is to monitor the number of Accident Free Days a company has.
> I would need to reset the counter to zero if/when an accident
> occurred. I would need to use this counter on multiple pages (one
> for each company). Site is purely HTML and no database exists.
forum. Lots more people read there, and it's closer to on topic.
You'll need to use javascript. There are a bunch of scripts available;
do a web search for 'javascript count days script'.
--
Joe Makowiec
[url]http://makowiec.net/[/url]
Email: [url]http://makowiec.net/contact.php[/url]
Joe Makowiec Guest
-
dpark25 #3
Re: Day Counter
Hi Carol,
I'm using the following javascript as a day counter and seems to work well
enough for me. Note: as I'm not a seasoned script writer, your mileage may
vary and... hope it helps.
Dennis
<script language="JavaScript">
// day counter
var now = new Date();
var gap = now.getTime() - new Date("June 1, 2007"); // <- 'Start' counting
from Date
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
</script>
<script language="javascript">document.write(gap);</script>
dpark25 Guest



Reply With Quote

