Script Categories













Menus and Navigation >>> Age Redirect.

Occasionally, 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.somedomen.com.

DONE!

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- 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.yaldex.com/JSFactory_Pro.htm")
}
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....")
   }
}
window.onload=getName;
// End -->
</script>
<center>
<
b>DONE!</b>
<
/center>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

baca manga online: Komiku tv


©