I have an online game and I am having trouble with players trying to hold down the submit button to gain extra resources, I know I can disable it, but I only want it to disable for a few seconds, and I do not want to send them an alert. I am thinking something like a settimeout? Is there a way to do this? I am having trouble figuring this one out.
This is the part of the form I want to disable:
Code:<input type="text" class="input" size="5" maxlength="25" name="spins" value="<?if($usr[defaultTurn] != 0){ echo"$usr[defaultTurn]"; }?>"> turns collecting resources. <br><input type="hidden" name="keyboard" value="enter"><input type="submit" class="submit" value="get resources">



Reply With Quote

Edited.

Bookmarks