View Single Post
Old 2009-10-03, 06:58 AM   #6
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
This is about as simple as it gets.

Put this at the top of the page where you want the warning to appear.

Code:
<script language="javascript">  
var agePrompt=prompt("You must be over 18 years of age to enter this ADULTS ONLY website. Please type just the number of your age below...")  
if (agePrompt>=18)  
document.location="http://www.letswatchsomeporn.com/"; 
else {  
alert('Sorry, too young, we can not let you in!')  
document.location="http://www.google.com/";  
}  
</script>
The code for the age verification on the site you mentioned is more complex and would require you to make or have someone make the three required graphics since you can't just use the ones you see on their site.
__________________
"If you're happy and you know it, think again." -- Guru Pitka

Last edited by Simon; 2009-10-03 at 07:03 AM..
Simon is offline   Reply With Quote