nash
04-09-2003, 06:28 PM
:o Once again I'm in over my head...
Well, I wanted to have on the top of my front page a text that appears faking a password verification like on 'secured systems' on TV... ;)
Some one I know gave me the following code, but this code makes the whole thing repeat itself again and again... :(
I'd like it to be executed once on loading and then to stay like this... My friend didn't know how to do this too, thus I'm once again turning to you! :rolleyes:
Once again I thank you in advance!
Here's the code:
<DIV ID=ejs_box2_box STYLE="background:#000000;color:#00ff00;font-family:Verdana;font-size:12;width:200;height:100;padding:5"></DIV>
<SCRIPT LANGUAGE=JavaScript>
/*
letter by letter box
*/
ejs_box2_message = new Array;
ejs_box2_message[0] = 'Accessing Remote Server...<br>Rerouting to secured LAN...<br>ID: $738-183@54FA<br>Password verification...<br>*******<br>ACCESS GRANTED';
ejs_box2_actual = 0;
ejs_box2_html_flag = 0;
function ejs_box2_go()
{
if(document.getElementById)
{
ejs_box2_char = 1;
ejs_box2_affich(ejs_box2_actual)
ejs_box2_actual++;
if(ejs_box2_actual >= ejs_box2_message.length)
ejs_box2_actual = 0;
}
}
function ejs_box2_affich(lactual)
{
var pix = ejs_box2_message[lactual].charAt(ejs_box2_char);
if(pix == "<")
ejs_box2_html_flag = 1;
if(pix == ">")
ejs_box2_html_flag = 0;
var texte = ejs_box2_message[lactual].substring(0,ejs_box2_char);
document.getElementById("ejs_box2_box").innerHTML = texte;
if(ejs_box2_char < ejs_box2_message[lactual].length)
{
ejs_box2_char++;
if(ejs_box2_html_flag == 1)
ejs_box2_affich(lactual);
else
setTimeout("ejs_box2_affich("+lactual+")",50)
}
else
setTimeout("ejs_box2_go()",3000)
}
window.onload = ejs_box2_go;
</SCRIPT>
Well, I wanted to have on the top of my front page a text that appears faking a password verification like on 'secured systems' on TV... ;)
Some one I know gave me the following code, but this code makes the whole thing repeat itself again and again... :(
I'd like it to be executed once on loading and then to stay like this... My friend didn't know how to do this too, thus I'm once again turning to you! :rolleyes:
Once again I thank you in advance!
Here's the code:
<DIV ID=ejs_box2_box STYLE="background:#000000;color:#00ff00;font-family:Verdana;font-size:12;width:200;height:100;padding:5"></DIV>
<SCRIPT LANGUAGE=JavaScript>
/*
letter by letter box
*/
ejs_box2_message = new Array;
ejs_box2_message[0] = 'Accessing Remote Server...<br>Rerouting to secured LAN...<br>ID: $738-183@54FA<br>Password verification...<br>*******<br>ACCESS GRANTED';
ejs_box2_actual = 0;
ejs_box2_html_flag = 0;
function ejs_box2_go()
{
if(document.getElementById)
{
ejs_box2_char = 1;
ejs_box2_affich(ejs_box2_actual)
ejs_box2_actual++;
if(ejs_box2_actual >= ejs_box2_message.length)
ejs_box2_actual = 0;
}
}
function ejs_box2_affich(lactual)
{
var pix = ejs_box2_message[lactual].charAt(ejs_box2_char);
if(pix == "<")
ejs_box2_html_flag = 1;
if(pix == ">")
ejs_box2_html_flag = 0;
var texte = ejs_box2_message[lactual].substring(0,ejs_box2_char);
document.getElementById("ejs_box2_box").innerHTML = texte;
if(ejs_box2_char < ejs_box2_message[lactual].length)
{
ejs_box2_char++;
if(ejs_box2_html_flag == 1)
ejs_box2_affich(lactual);
else
setTimeout("ejs_box2_affich("+lactual+")",50)
}
else
setTimeout("ejs_box2_go()",3000)
}
window.onload = ejs_box2_go;
</SCRIPT>