i need a code that when you visit a page, you can. when you try to refresh, or leave and come back later, you get a message saying you must wait 24 hours to come again. so once you hit refresh or leave, the time (24 hours) begins. Could someone make that at all?
@pcthugMay 14.2006 — #The only way JavaScript can do this is by setting a cookie. The alternative method is to use server-side scripting to disallow that ip for 24 hours
@netbuddyMay 14.2006 — #Why do you want to limit a user to visiting the page once in 24 hours??? what if the page does not load properly first time around??? How are people to refresh the browser to make the page display correctly...
Cookies can be deleted, so this would be pretty weak solution to limiting a persons visit, also if its by IP address, your system will not account for IP address changes, again another weakness in your plan.
In all seriousness, you want to re-think your plan on limiting visitors, afterall, the aim of the game is to get as many visitors to your site and not hinder them...
@metroid87706authorMay 14.2006 — #because I have an acccount on imvu, AN IMSTANT MESSANGING SITE, AND I HAVE AN ARCADE WHERE YOU EARN CREDITS (mONEY IN imvu) AND i WANT PEOPLE TO PLAY EACH GAME ONLY ONCE A DAY. (SRy caps)
@kiwibritMay 14.2006 — #Hmm, you don't have a public privacy policy then. Watch you are not [url=http://www.out-law.com/page-1240]breaking the law[/url] where you are.
@gooncorpMay 16.2006 — #Oh, and you can get around this by clearing your cookies, and it won't allow you to refresh the page if it doesn't load properly. You might want to change the alerts as well if you want your visitors to come back to your page.