proxximo Posted May 24, 2007 Share Posted May 24, 2007 I am currently coding a game. I am wanting to cut down server load by hiding a form for a certain amount of time every time the page loads. Explaination: On the game page you click on a compass (my form) to move your character. The php script moves the character and loads the new page. What I want to happen is when the new page loads to hide the compass for a certain amount of time. This is to keep players from clicking the form 5 times really fast and moving that amount of spaces loading the page once. I figured this would be a javascript situation and my javascript is non existant. Can anyone help? If you need more info please let me know and I will post it ASAP! Thanks Link to comment https://forums.phpfreaks.com/topic/52862-hiding-a-form-for-a-certain-amount-of-time-on-page-load/ Share on other sites More sharing options...
proxximo Posted May 25, 2007 Author Share Posted May 25, 2007 Still need help Link to comment https://forums.phpfreaks.com/topic/52862-hiding-a-form-for-a-certain-amount-of-time-on-page-load/#findComment-261847 Share on other sites More sharing options...
gabeg Posted May 27, 2007 Share Posted May 27, 2007 you would use the setTimeout method if I remember correctly. google search for it Link to comment https://forums.phpfreaks.com/topic/52862-hiding-a-form-for-a-certain-amount-of-time-on-page-load/#findComment-262890 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.