/    Sign up×
Community /Pin to ProfileBookmark

Automatic Sales Counter

Hi,

I have a seemingly simple task, but Javascript is new to me.

The goal is to have a “locks sold” count increase by 1 every 10 seconds. And when 1 is added, an image of a key in a lock will rotate 360 degrees.

So, the count will be shown in a dynamic text field in Flash that loads the count variable from a text file when a visitor loads the page. Then I can add 1 every 10 seconds to the dynamic text field (number of locks sold) within Flash. I’ll have to start the count somewhere around 40,000.

I think I can load the count variable (created by Javascript and sent to a text file?) into the dynamic text field in Flash. It seems like every 10 seconds Javascript would have to send the count variable to a text file.

So basically I just need to start a count from 40,000 and add 1 every 10 seconds. That count needs to run continuously on the server. Flash needs to be able to import the count.

Well thanks in advace,

Dave

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@davidkonicekauthorSep 20.2010 — Or even if someone could point me in the right direction to learn how to do this...? ?
Copy linkTweet thisAlerts:
@davidkonicekauthorSep 20.2010 — Can I move this post to the PHP section, or delete this post? Looks like Javascript is completely client-side, and I need PHP or ASP to run server-side to keep the count continuous (Adding 1 every 10 seconds).
×

Success!

Help @davidkonicek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...