Step 1:CodeJoin in the
<Script language = "JavaScript">
<! -- Begin
Function encrypt (thetext ){
Output = new string;
Temp = new array ();
Temp2 = new array ();
Textsize = thetext. length;
For (I = 0; I <textsize; I ++ ){
RND = math. Round (math. Random () * 122) + 68;
Temp [I] = thetext. charcodeat (I) + RND;
Temp2 [I] = RND;
}
For (I = 0; I <textsize; I ++ ){
Output + = string. fromcharcode (temp [I], temp2 [I]);
}
Return output;
}
Function unencrypt (thetext ){
Output = new string;
Temp = new array ();
Temp2 = new array ();
Textsize = thetext. length;
For (I = 0; I <textsize; I ++ ){
Temp [I] = thetext. charcodeat (I );
Temp2 [I] = thetext. charcodeat (I + 1 );
}
For (I = 0; I <textsize; I = I + 2 ){
Output + = string. fromcharcode (temp [I]-temp2 [I]);
}
Return output;
}
// End -->
</SCRIPT>
Step 2: Add the following code to the <body> area.
<Center>
<Form name = encform onsubmit = "Return false;">
<Textarea name = box1 rows = 5 Cols = 50> typhoon start JavaScript fairyland