Forum Moderators: mack

Message Too Old, No Replies

Item Change script or code?

need to visually subtract items in inventory

         

Veneficuz

11:00 am on Feb 4, 2005 (gmt 0)

10+ Year Member



I want to put up on my site that I have 500 items in stock, and slowly subtract 1 every 1 minute, or maybe 1 minute then 2 minutes. And so the user can see it. can I do this with just html or does this have to be server side. And does anyone know the code or where to get it. I've checked a famous place for scripts and can only find stuff that has to do with time, and usually goes up. can anyone help?

kazecoder

11:23 am on Feb 4, 2005 (gmt 0)

10+ Year Member



Veneficuz - Definitely not going to happen with HTML. I am sure you could use JavaScript or even PHP to perform this type of function. I could write something for you but then again you would never learn anything...LOL.

You are going to have to do some kind of loop. I coudld also see this done easily with PHP, a loop, and the sleep(); command.

Veneficuz

11:49 am on Feb 4, 2005 (gmt 0)

10+ Year Member



:) I appreciate the concern for me to master coding. I just simply need a premade script or something. I prefer having it server-side so it's always correct. I'll find something similiar and just edit it. If anyone knows of anything, I would appreciate it, I've been going at this thing for awhile.