Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need visitors counter and raffle between files

Status
Not open for further replies.

thelordoftherings

Programmer
Joined
May 16, 2004
Messages
616
Location
IL
Hello,

I have HTML based web site and I would like to add it the following functionality in Javascript:
1. I would like to create visitors counter
2. If the visitor is the visitor number 1000 or 2000 or 3000 and so on... I would like to inform him that he won a picture. The picture will be raffled randomize.
3. The pictures are gif files located on my web site under the folder /images. So, the script should randomly choose a file from there and announce the user he won that picture.

Can someone please help me creating this code?

 
nope, that cannot be done using javasript as it is client side. The visitor information should be stored SERVER SIDE...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top