Inter
Житель Зиона
На форумах с мая 2004
Местонахождение:
Сообщений: 1635
|
The Matrix Codebreaker
Вывод сообщения в стиле "Матрицы"
Автор: Scott Kruger
Описание автора. Remember The Matrix, when they do the phone trace and the numbers keep scrolling until the correct number is found? This script randomly chooses the numbers until the correct one is chosen. A cool way to display your messages.
Взято отсюда ...
Страница скрипта.
Размер: 15.93 KB
code:
<!-- TWO STEPS TO INSTALL THE MATRIX CODEBREAKER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Scott Kruger -->
<!-- Web Site: http://www.geocities.com/the1matrixneo/thematrix.html -->
<script>
letterarray = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ");
first = 0;
second = 0;
third = 0;
fourth = 0;
fifth = 0;
sixth = 0;
seventh = 0;
eigth = 0;
ninth = 0;
tenth = 0;
eleven = 0;
twelve = 0;
thirteen = 0;
fourteen = 0;
fifteen = 0;
sixteen = 0;
seventeen = 0;
eighteen = 0;
letter1 = "T";
letter2 = "H";
letter3 = "E";
letter4 = " ";
letter5 = "M";
letter6 = "A";
letter7 = "T";
letter8 = "R";
letter9 = "I";
letter10 = "X";
letter11 = " ";
letter12 = "H";
letter13 = "A";
letter14 = "S";
letter15 = " ";
letter16 = "Y";
letter17 = "O";
letter18 = "U";
function letters()
{
document.form1.texthere.value = letterarray[first] + letterarray[second] + letterarray[third] + letterarray[fourth] + letterarray[fifth] + letterarray[sixth] + letterarray[seventh] + letterarray[eigth] + letterarray[ninth] + letterarray[tenth] + letterarray[eleven] + letterarray[twelve] + letterarray[thirteen] + letterarray[fourteen] + letterarray[fifteen] + letterarray[sixteen] + letterarray[seventeen] + letterarray[eighteen];
if (letterarray[first] != letter1)
{
first = Math.floor(27 * Math.random());
second = Math.floor(27 * Math.random());
third = Math.floor(27 * Math.random());
fourth = Math.floor(27 * Math.random());
fifth = Math.floor(27 * Math.random());
sixth = Math.floor(27 * Math.random());
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] != letter2))
{
second = Math.floor(27 * Math.random());
third = Math.floor(27 * Math.random());
fourth = Math.floor(27 * Math.random());
fifth = Math.floor(27 * Math.random());
sixth = Math.floor(27 * Math.random());
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] != letter3))
{
third = Math.floor(27 * Math.random());
fourth = Math.floor(27 * Math.random());
fifth = Math.floor(27 * Math.random());
sixth = Math.floor(27 * Math.random());
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] != letter4))
{
fourth = Math.floor(27 * Math.random());
fifth = Math.floor(27 * Math.random());
sixth = Math.floor(27 * Math.random());
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] != letter5))
{
fifth = Math.floor(27 * Math.random());
sixth = Math.floor(27 * Math.random());
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] != letter6))
{
sixth = Math.floor(27 * Math.random());
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] != letter7))
{
seventh = Math.floor(27 * Math.random());
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] != letter8))
{
eigth = Math.floor(27 * Math.random());
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] != letter9))
{
ninth = Math.floor(27 * Math.random());
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] != letter10))
{
tenth = Math.floor(27 * Math.random());
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] != letter11))
{
eleven = Math.floor(27 * Math.random());
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] != letter12))
{
twelve = Math.floor(27 * Math.random());
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] == letter12) & (letterarray[thirteen] != letter13))
{
thirteen = Math.floor(27 * Math.random());
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] == letter12) & (letterarray[thirteen] == letter13) & (letterarray[fourteen] != letter14))
{
fourteen = Math.floor(27 * Math.random());
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] == letter12) & (letterarray[thirteen] == letter13) & (letterarray[fourteen] == letter14) & (letterarray[fifteen] != letter15))
{
fifteen = Math.floor(27 * Math.random());
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] == letter12) & (letterarray[thirteen] == letter13) & (letterarray[fourteen] == letter14) & (letterarray[fifteen] == letter15) & (letterarray[sixteen] != letter16))
{
sixteen = Math.floor(27 * Math.random());
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] == letter12) & (letterarray[thirteen] == letter13) & (letterarray[fourteen] == letter14) & (letterarray[fifteen] == letter15) & (letterarray[sixteen] == letter16) & (letterarray[seventeen] != letter17))
{
seventeen = Math.floor(27 * Math.random());
eighteen = Math.floor(27 * Math.random());
}
else if ((letterarray[first] == letter1) & (letterarray[second] == letter2) & (letterarray[third] == letter3) & (letterarray[fourth] == letter4) & (letterarray[fifth] == letter5) & (letterarray[sixth] == letter6) & (letterarray[seventh] == letter7) & (letterarray[eigth] == letter8) & (letterarray[ninth] == letter9) & (letterarray[tenth] == letter10) & (letterarray[eleven] == letter11) & (letterarray[twelve] == letter12) & (letterarray[thirteen] == letter13) & (letterarray[fourteen] == letter14) & (letterarray[fifteen] == letter15) & (letterarray[sixteen] == letter16) & (letterarray[seventeen] == letter17) & (letterarray[eighteen] != letter18))
{
eighteen = Math.floor(27 * Math.random());
}
keepgoing = setTimeout("letters()", 50);
}
</script>
<style>
.greenbg
{
border: black;
background-color: darkgreen;
color: black;
cursor: default;
}
.blackbg
{
border: black;
background-color: black;
color: darkgreen;
cursor: default;
}
</style>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<table bgcolor="black">
<tr><td>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Scott Kruger -->
<!-- Web Site: http://www.geocities.com/the1matrixneo/thematrix.html -->
<form name="form1">
<input class="blackbg" type="text" value="AAAAAAAAAAAAAAAAAA" name="texthere" size=35>
<input class="greenbg" type="button" value="Start it!" onClick="letters()">
</form>
</td></tr>
</table>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 15.93 KB -->
Адрес поста | Один пост | Сообщить модератору | IP: Logged
|