Buongiorno a tutti,
ho bisogno di un intenditore.. o anche uno un po' meno somaro di me che mi spieghi a grandi linee cosa succede in questo javascript..so quelloc he fa ma mi piacerebbe capire bene le funzioni che usa!
il JS è il seguente:

link = "index2.htm";//link a cui si indirizza dopo l'animazione
if (document.all)
{
X = document.body.clientWidth-20;//dimensioni della scritta
Y = document.body.clientHeight-200;
}
else
{
X = window.innerWidth-20;
Y = window.innerHeight-200;
}

document.write('<STYLE TYPE=text/css>\n.cadremagique {\n position:relative; width:'+X+'px;

height:'+Y+'px;\n}\n</STYLE>\n');

a =1;// a cosa serve?
b=0;//e questo???
textotab = new Array;
textotab[0] = 'Benvenuto in';
textotab[1] = '';
textotab[2] = '';
textotab[3] = '';
textotab[4] = '';
textotab[5] = '... ';
textotab[6] = '..!';
function AnimTexto()
{
if(a < 45)// perkè a<45? e tutti sti texto?
{
texto = "<TABLE WIDTH=80% HEIGHT=80%><TR><TD ALIGN=center VALIGN=middle NOWRAP><P ALIGN=center

STYLE=\"font-size:"+a+"px\"><FONT FACE=\"Verdana\">"+textotab[b]+"</FONT></P></TD></TR></TABLE>"
if (document.layers)
{
document.texto1.document.texto2.document.write(tex to)
document.texto1.document.texto2.document.close()
}
else if (document.getElementById)
document.getElementById("texto3").innerHTML=texto;
else if (document.all)
texto3.innerHTML=texto;
a++;
tempoEJS = setTimeout("AnimTexto()", 1)
}
else
{
if(b < (textotab.length)-1)
{
a = 1;
b++;
tempoEJS = setTimeout("AnimTexto()", 300); //tempo tra un messaggio e l'altro
}
else
tempoEJS = setTimeout("document.location.href=link", 500);
}
}
document.write('<ilayer id="texto1" width='+X+' height='+Y+'><layer id="texto2" width='+X+' height='+Y+'><div

id="texto3" CLASS=cadremagique></div></layer></ilayer><FONT FACE=\"Verdana\" SIZE=1><CENTER><A

HREF=\"'+link+'\">Salta l\'introduzione</A></CENTER></FONT>');
window.onload = AnimTexto;


vi ringrazio per l'attenzione e confido in un vostro aiuto!