hollett5
05-26-2004, 11:07 AM
I have a code here and to pass the level the code is for you need to find a three digit code. Because i am new to HTML i need some help in finding the code. I do not care what the rules are for this. I need help because i want to beat my SKANKY Friend Joe. PLEASE HELP ME!!
The CODE IS:
<HTML><HEAD>
<!-- yes... you should be looking at the code -->
<TITLE>c y b e r a r m y . c o m</TITLE>
<script language="JavaScript1.2">
function typeo(x) {
if (x.i == null) {
x.i = -1;
x.chri = 0;
x.txt = x.innerHTML;
x.lng = x.txt.length;
x.innerHTML = "";
x.style.visibility = "visible";
x.msg = "";
}
/* still making msg */
if (x.i < x.lng) {
for (x.i = 0; x.i < x.lng; x.i++) {
chr = x.txt.charAt(x.i)
if (chr == "<") {
aTag = "<";
while (chr != ">") {
x.i++;
chr = x.txt.charAt(x.i);
aTag = aTag + chr;
}
aTag = aTag;
x.msg = x.msg + aTag;
}
if (chr != ">") {
x.msg = x.msg + "<span style='display: none' id=" + x.id + "_" + x.chri + ">" + chr + "</span>";
x.chri++;
}
}
}
/* made msg */
if (x.i == x.lng) {
if (x.cmpl == null) {
x.innerHTML = x.msg;
x.cmpl = x.chri;
x.chri = 0;
}
//the number in abl variable controls time between letters
if (x.chri < x.cmpl) {
t = eval(x.id + "_" + x.chri);
t.style.display = "";
x.chri++;
ab1 = window.setTimeout("typeo(" + x.id + ")", 75);
}
}
}
</script>
<SCRIPT LANGUAGE = "JavaScript">
function animatedObject(elementName,loop,speed,steps,endRou
tines,route){
this.elementName = elementName;
this.loop = loop;
this.speed = speed;
this.steps = steps;
this.frameIndex = 0;
this.endRoutines = endRoutines;
this.route = route.split(',');
this.animate = animateObject;
this.move = moveObject;
this.show = showObject;
this.hide = hideObject;
animatedObjects[elementName] = this;
}
function stopTimeline(timelineNumber){
animationTime[timelineNumber] = animationTimeline[timelineNumber].length;
}
function startTimeline(timelineNumber) {
animationTime[timelineNumber] = 0;
timelineController(timelineNumber);
}
function timelineController(timelineNumber) {
if (animationTime[timelineNumber] <= animationTimeline[timelineNumber].length - 1) {
animationTime[timelineNumber]++;
if (animationTimeline[timelineNumber][animationTime[t
imelineNumber]] != null){
eval(animationTimeline[timelineNumber][animationTi
me[timelineNumber]]);
}
setTimeout('timelineController(' + timelineNumber + ')', 100);
}
}
function showObject(){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "visible"');
}
function hideObject(){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "hidden"');
}
function moveObject(left, top){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.top = top');
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.left = left');
}
function animateObject(){
if (this.route.length > 4 && this.frameIndex < this.route.length) {
this.move(this.route[this.frameIndex], this.route[this.frameIndex + 1]);
this.frameIndex += 2;
setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
}
else if (this.route.length == 4 && this.frameIndex <= this.steps) {
this.move(parseInt(this.route[0]) + (this.frameIndex * ((parseInt(this.route[2]) - parseInt(this.route[0])) / this.steps)), parseInt(this.route[1]) + (this.frameIndex * ((parseInt(this.route[3]) - parseInt(this.route[1])) / this.steps)));
this.frameIndex++;
setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
}
else {
eval(this.endRoutines + "");
this.frameIndex = 0;
if (this.loop == "yes"){
this.animate();
}
}
}
function initAnimation() {
layerObj = (isNS) ? 'document' : 'document.all';
styleObj = (isNS) ? '' : '.style';
animationTime = new Array();
animationTimeline = new Array();
animatedObjects = new Object();
alvin = new animatedObject('alvinL','yes',100,400,'null','200,
0,200,320');
bubble = new animatedObject('bubbleL', 'yes', 300, 25, 'null', '100,500,100,50');
morebubbles = new animatedObject('morebubblesL', 'yes', 300, 25, 'null', '500,500,500,50');
animationTimeline[0] = new Array();
animationTimeline[0][10] = 'alvin.show(); bubble.show(); alvin.animate(); bubble.animate();';
animationTimeline[0][50] = 'morebubbles.show(); morebubbles.animate();';
startTimeline(0);
}
var layerObj, styleObj, totalTime, currTime;
var animationTime, animationTimeline, animatedObjects;
var bon, boff;
var isNS = (document.layers);
var isDHTML = (document.layers || document.all);
</SCRIPT>
</HEAD>
<BODY bgcolor="#263C6D" onLoad = "initAnimation()" style="cursor:help">
<font color="#FFAA33" face="arial"><b><em>can you crack the code?</b></em></font>
<DIV ID = "alvinL" STYLE = "position: absolute; left: 240; top: 100; visibility: hidden;">
<IMG SRC = "http://images.cyberarmy.com/logo.gif" NAME = "alving">
</DIV>
<DIV ID = "bubbleL" STYLE = "position: absolute; left: 150; top: 100; visibility: hidden;">
<IMG SRC = "http://images.cyberarmy.com/logo.gif" NAME = "bubbleg" HEIGHT = "75" WIDTH = "60">
</DIV>
<DIV ID = "morebubblesL" STYLE = "position: absolute; left: 150; top: 100; visibility: hidden;">
<IMG SRC = "http://images.cyberarmy.com/logo.gif" NAME = "morebubblesg" HEIGHT = "75" WIDTH = "60">
</DIV>
<br>
<SCRIPT language="JavaScript">
<!-- Key-code script by Bart Jellema
// You may use this script freely as long
// as you credit me for it...
var usermulcode=1 // code init
var code=0 // the entered code
var mul=1 // the multiplied digits
var digit=0 // number of digits entered so far
var fails=0 // number of tries done
function Enter_code(number)
{
code=code*10+number // Add the digit to the code
mul=mul*number // Update mul-value
document.codepad.thecode.value=code // Show code
digit++ // Increase digit
if (digit==3) // 3 digits entered
{
if (mul==504)
// This is to validate the code. If
// the code is 1234 the mul = 1*2*3*4 = 24
// If your code is 9562 it will be
// usermulcode = 540 (9*5*6*2)
{
window.open("switch.pl/"+code+".shtml",'_top')
fails++
code=0 // Reset values
mul=1
digit=0
}
else
{
fails++ // Increase fails
code=0 // Reset values
mul=1
digit=0
if (fails<6)
{
if (fails<5)
{document.codepad.thecode.value="Try again"}
if (fails==5)
{document.codepad.thecode.value="Last time"}
}
else // To many tries = worp back
{
location="http://www.cyberarmy.com/crash.shtml"
document.codepad.thecode.value="Bye!"
}
}
}
}
function keycodepad(mulcode)
{
usermulcode=mulcode
document.write("<form name=\"codepad\">");
document.write("<input type=\"button\" value=\" 1 \" onClick=\"Enter_code(1)\">");
document.write("<input type=\"button\" value=\" 2 \" onClick=\"Enter_code(2)\">");
document.write("<input type=\"button\" value=\" 3 \" onClick=\"Enter_code(3)\"><br>");
document.write("<input type=\"button\" value=\" 4 \" onClick=\"Enter_code(4)\">");
document.write("<input type=\"button\" value=\" 5 \" onClick=\"Enter_code(5)\">");
document.write("<input type=\"button\" value=\" 6 \" onClick=\"Enter_code(6)\"><br>");
document.write("<input type=\"button\" value=\" 7 \" onClick=\"Enter_code(7)\">");
document.write("<input type=\"button\" value=\" 8 \" onClick=\"Enter_code(8)\">");
document.write("<input type=\"button\" value=\" 9 \" onClick=\"Enter_code(9)\"><br>");
document.write("<input type=\"text\" name=\"thecode\" size=10 value=\"\"><br>");
document.write("</form>");
}
// Key-code script by Bart Jellema -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#263C6D">
<center>
<p> </p><br>
<script>
keycodepad(24)
</script>
<BGSOUND SRC="music.mid" AUTOSTART=true LOOP=infinite>
</BODY>
</HTML>
The CODE IS:
<HTML><HEAD>
<!-- yes... you should be looking at the code -->
<TITLE>c y b e r a r m y . c o m</TITLE>
<script language="JavaScript1.2">
function typeo(x) {
if (x.i == null) {
x.i = -1;
x.chri = 0;
x.txt = x.innerHTML;
x.lng = x.txt.length;
x.innerHTML = "";
x.style.visibility = "visible";
x.msg = "";
}
/* still making msg */
if (x.i < x.lng) {
for (x.i = 0; x.i < x.lng; x.i++) {
chr = x.txt.charAt(x.i)
if (chr == "<") {
aTag = "<";
while (chr != ">") {
x.i++;
chr = x.txt.charAt(x.i);
aTag = aTag + chr;
}
aTag = aTag;
x.msg = x.msg + aTag;
}
if (chr != ">") {
x.msg = x.msg + "<span style='display: none' id=" + x.id + "_" + x.chri + ">" + chr + "</span>";
x.chri++;
}
}
}
/* made msg */
if (x.i == x.lng) {
if (x.cmpl == null) {
x.innerHTML = x.msg;
x.cmpl = x.chri;
x.chri = 0;
}
//the number in abl variable controls time between letters
if (x.chri < x.cmpl) {
t = eval(x.id + "_" + x.chri);
t.style.display = "";
x.chri++;
ab1 = window.setTimeout("typeo(" + x.id + ")", 75);
}
}
}
</script>
<SCRIPT LANGUAGE = "JavaScript">
function animatedObject(elementName,loop,speed,steps,endRou
tines,route){
this.elementName = elementName;
this.loop = loop;
this.speed = speed;
this.steps = steps;
this.frameIndex = 0;
this.endRoutines = endRoutines;
this.route = route.split(',');
this.animate = animateObject;
this.move = moveObject;
this.show = showObject;
this.hide = hideObject;
animatedObjects[elementName] = this;
}
function stopTimeline(timelineNumber){
animationTime[timelineNumber] = animationTimeline[timelineNumber].length;
}
function startTimeline(timelineNumber) {
animationTime[timelineNumber] = 0;
timelineController(timelineNumber);
}
function timelineController(timelineNumber) {
if (animationTime[timelineNumber] <= animationTimeline[timelineNumber].length - 1) {
animationTime[timelineNumber]++;
if (animationTimeline[timelineNumber][animationTime[t
imelineNumber]] != null){
eval(animationTimeline[timelineNumber][animationTi
me[timelineNumber]]);
}
setTimeout('timelineController(' + timelineNumber + ')', 100);
}
}
function showObject(){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "visible"');
}
function hideObject(){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "hidden"');
}
function moveObject(left, top){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.top = top');
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.left = left');
}
function animateObject(){
if (this.route.length > 4 && this.frameIndex < this.route.length) {
this.move(this.route[this.frameIndex], this.route[this.frameIndex + 1]);
this.frameIndex += 2;
setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
}
else if (this.route.length == 4 && this.frameIndex <= this.steps) {
this.move(parseInt(this.route[0]) + (this.frameIndex * ((parseInt(this.route[2]) - parseInt(this.route[0])) / this.steps)), parseInt(this.route[1]) + (this.frameIndex * ((parseInt(this.route[3]) - parseInt(this.route[1])) / this.steps)));
this.frameIndex++;
setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
}
else {
eval(this.endRoutines + "");
this.frameIndex = 0;
if (this.loop == "yes"){
this.animate();
}
}
}
function initAnimation() {
layerObj = (isNS) ? 'document' : 'document.all';
styleObj = (isNS) ? '' : '.style';
animationTime = new Array();
animationTimeline = new Array();
animatedObjects = new Object();
alvin = new animatedObject('alvinL','yes',100,400,'null','200,
0,200,320');
bubble = new animatedObject('bubbleL', 'yes', 300, 25, 'null', '100,500,100,50');
morebubbles = new animatedObject('morebubblesL', 'yes', 300, 25, 'null', '500,500,500,50');
animationTimeline[0] = new Array();
animationTimeline[0][10] = 'alvin.show(); bubble.show(); alvin.animate(); bubble.animate();';
animationTimeline[0][50] = 'morebubbles.show(); morebubbles.animate();';
startTimeline(0);
}
var layerObj, styleObj, totalTime, currTime;
var animationTime, animationTimeline, animatedObjects;
var bon, boff;
var isNS = (document.layers);
var isDHTML = (document.layers || document.all);
</SCRIPT>
</HEAD>
<BODY bgcolor="#263C6D" onLoad = "initAnimation()" style="cursor:help">
<font color="#FFAA33" face="arial"><b><em>can you crack the code?</b></em></font>
<DIV ID = "alvinL" STYLE = "position: absolute; left: 240; top: 100; visibility: hidden;">
<IMG SRC = "http://images.cyberarmy.com/logo.gif" NAME = "alving">
</DIV>
<DIV ID = "bubbleL" STYLE = "position: absolute; left: 150; top: 100; visibility: hidden;">
<IMG SRC = "http://images.cyberarmy.com/logo.gif" NAME = "bubbleg" HEIGHT = "75" WIDTH = "60">
</DIV>
<DIV ID = "morebubblesL" STYLE = "position: absolute; left: 150; top: 100; visibility: hidden;">
<IMG SRC = "http://images.cyberarmy.com/logo.gif" NAME = "morebubblesg" HEIGHT = "75" WIDTH = "60">
</DIV>
<br>
<SCRIPT language="JavaScript">
<!-- Key-code script by Bart Jellema
// You may use this script freely as long
// as you credit me for it...
var usermulcode=1 // code init
var code=0 // the entered code
var mul=1 // the multiplied digits
var digit=0 // number of digits entered so far
var fails=0 // number of tries done
function Enter_code(number)
{
code=code*10+number // Add the digit to the code
mul=mul*number // Update mul-value
document.codepad.thecode.value=code // Show code
digit++ // Increase digit
if (digit==3) // 3 digits entered
{
if (mul==504)
// This is to validate the code. If
// the code is 1234 the mul = 1*2*3*4 = 24
// If your code is 9562 it will be
// usermulcode = 540 (9*5*6*2)
{
window.open("switch.pl/"+code+".shtml",'_top')
fails++
code=0 // Reset values
mul=1
digit=0
}
else
{
fails++ // Increase fails
code=0 // Reset values
mul=1
digit=0
if (fails<6)
{
if (fails<5)
{document.codepad.thecode.value="Try again"}
if (fails==5)
{document.codepad.thecode.value="Last time"}
}
else // To many tries = worp back
{
location="http://www.cyberarmy.com/crash.shtml"
document.codepad.thecode.value="Bye!"
}
}
}
}
function keycodepad(mulcode)
{
usermulcode=mulcode
document.write("<form name=\"codepad\">");
document.write("<input type=\"button\" value=\" 1 \" onClick=\"Enter_code(1)\">");
document.write("<input type=\"button\" value=\" 2 \" onClick=\"Enter_code(2)\">");
document.write("<input type=\"button\" value=\" 3 \" onClick=\"Enter_code(3)\"><br>");
document.write("<input type=\"button\" value=\" 4 \" onClick=\"Enter_code(4)\">");
document.write("<input type=\"button\" value=\" 5 \" onClick=\"Enter_code(5)\">");
document.write("<input type=\"button\" value=\" 6 \" onClick=\"Enter_code(6)\"><br>");
document.write("<input type=\"button\" value=\" 7 \" onClick=\"Enter_code(7)\">");
document.write("<input type=\"button\" value=\" 8 \" onClick=\"Enter_code(8)\">");
document.write("<input type=\"button\" value=\" 9 \" onClick=\"Enter_code(9)\"><br>");
document.write("<input type=\"text\" name=\"thecode\" size=10 value=\"\"><br>");
document.write("</form>");
}
// Key-code script by Bart Jellema -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#263C6D">
<center>
<p> </p><br>
<script>
keycodepad(24)
</script>
<BGSOUND SRC="music.mid" AUTOSTART=true LOOP=infinite>
</BODY>
</HTML>