Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Age Redirection
Occassionally, your web site might need to redirect minors away from adult content. This script is a VERY simple preliminary age check. Those underage are then forwarded to www.crayola.com.
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function getName() { var name1 = prompt("What is your name?", "") var age = prompt("How old are you?", "") var email1 = prompt("What's your e-mail address?", "") if( age <= 12) { alert("Hey kid... You're only " + age + " and expect to stay here!! No way! " + name1 + ", get out of here! If you are at " + email1 + " , then I have your e-mail too!!") window.open("http://www.crayola.com") } else { alert("Hello " + name1 + "! Welcome to The JavaScript Source! Since you are " + age + ", you are allowed to stay!! If your e-mail is " + email1 + ", you can expect some e-mail soon....") } } // End --> </SCRIPT>
Insert into <BODY>
<BODY onLoad="getName()">
Other Options