home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 September
/
Chip_2003-09_cd1.bin
/
tema
/
langexpert
/
index.js
< prev
next >
Wrap
Text File
|
2003-08-01
|
18KB
|
507 lines
var poloha=0;
function vlneni()
{
poloha+=1;
document.images["nadpis"].style.filter="wave(Add=1, Freq=1, Light=0, Strength=20)";
document.images["nadpis"].filters("wave").Phase=poloha;
casovacvln=window.setTimeout("vlneni()",5);
}
casovacvln=window.setTimeout("vlneni()",50000);
window.clearTimeout(casovacvln);
function offvln()
{
poloha=0;
document.images["nadpis"].style.filter="none";
window.clearTimeout(casovacvln);
}
poleobr1=new Array();
poleobr2=new Array();
polesrc1=new Array();
polesrc2=new Array();
pocet_obrazku=8; pauza=20;
for (a=1;a<(pocet_obrazku+1);a++)
{
poleobr1[a]=new Image();
poleobr2[a]=new Image();
poleobr1[a].src="images/"+a+"logo1.gif";
poleobr2[a].src="images/"+a+"logo2.gif";
polesrc1[a]="images/"+a+"logo1.gif";
polesrc2[a]="images/"+a+"logo2.gif";
}
function zamen(nazev_obr, novy_obr)
{
document.images[nazev_obr].src=novy_obr;
}
a=1;
function animuj1()
{
switch (a)
{
case 1 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 2 : zamen("okno1", polesrc1[2]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 3 : zamen("okno1", polesrc1[2]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 4 : zamen("okno1", polesrc1[3]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 5 : zamen("okno1", polesrc1[3]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 6 : zamen("okno1", polesrc1[4]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 7 : zamen("okno1", polesrc1[4]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 8 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 9 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 10 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 11 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 12 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 13 : zamen("okno1", polesrc1[6]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 14 : zamen("okno1", polesrc1[6]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 15 : zamen("okno1", polesrc1[7]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 16 : zamen("okno1", polesrc1[7]); zamen("okno2", polesrc2[2]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 17 : zamen("okno1", polesrc1[8]); zamen("okno2", polesrc2[2]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 18 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[3]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 19 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[3]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 20 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[4]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 21 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[4]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 22 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 23 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 24 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 25 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 26 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 27 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[6]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 28 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[6]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 29 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[7]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 30 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[7]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 31 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[8]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
case 32 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
default : if (a>70) {a=1};
zamen("okno1",polesrc1[1]); zamen("okno2",polesrc2[1]);
a++; casovacobr1=window.setTimeout('animuj1()',pauza); break;
}
}
function animuj2()
{
switch (a)
{
case 1 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 2 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[2]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 3 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[2]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 4 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[3]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 5 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[3]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 6 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[4]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 7 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[4]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 8 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 9 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 10 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 11 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 12 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[5]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 13 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[6]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 14 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[6]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 15 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[7]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 16 : zamen("okno1", polesrc1[2]); zamen("okno2", polesrc2[7]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 17 : zamen("okno1", polesrc1[2]); zamen("okno2", polesrc2[8]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 18 : zamen("okno1", polesrc1[3]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 19 : zamen("okno1", polesrc1[3]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 20 : zamen("okno1", polesrc1[4]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 21 : zamen("okno1", polesrc1[4]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 22 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 23 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 24 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 25 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 26 : zamen("okno1", polesrc1[5]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 27 : zamen("okno1", polesrc1[6]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 28 : zamen("okno1", polesrc1[6]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 29 : zamen("okno1", polesrc1[7]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 30 : zamen("okno1", polesrc1[7]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 31 : zamen("okno1", polesrc1[8]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
case 32 : zamen("okno1", polesrc1[1]); zamen("okno2", polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
default : if (a>70) {a=1};
zamen("okno1",polesrc1[1]); zamen("okno2",polesrc2[1]);
a++; casovacobr2=window.setTimeout('animuj2()',pauza); break;
}
}
casovacobr1=window.setTimeout('animuj1()',50000);
casovacobr2=window.setTimeout('animuj2()',50000);
window.clearTimeout(casovacobr1);
window.clearTimeout(casovacobr2);
function off1()
{
window.clearTimeout(casovacobr1);
document.okno1.src="images/1logo1.gif";
document.okno2.src="images/1logo2.gif";
}
function off2()
{
window.clearTimeout(casovacobr2);
document.okno1.src="images/1logo1.gif";
document.okno2.src="images/1logo2.gif";
}
function menu1videt()
{
document.all.menu1.style.visibility="visible";
document.all.polozka1.style.cursor="hand";
}
function menu1nevidet()
{
document.all.menu1.style.visibility="hidden";
}
function menu2videt()
{
document.all.menu2.style.visibility="visible";
document.all.polozka2.style.cursor="hand";
}
function menu2nevidet()
{
document.all.menu2.style.visibility="hidden";
}
function menu3videt()
{
document.all.menu3.style.visibility="visible";
document.all.polozka3.style.cursor="hand";
}
function menu3nevidet()
{
document.all.menu3.style.visibility="hidden";
}
var pruhlednost=0;
kontrpruh=false;
function pruhled()
{
if (pruhlednost==100) {pruhlednost--; kontrpruh=true;}
else if (kontrpruh) {pruhlednost--;}
else {pruhlednost++;}
if (pruhlednost==0) {kontrpruh=false;}
document.images["nadpis"].style.filter="alpha(finishopacity=100, Style=0)";
document.images["nadpis"].filters("alpha").opacity=pruhlednost;
casovacpruh=window.setTimeout("pruhled()",20);
}
function offpruh()
{
document.images["nadpis"].style.filter="none";
window.clearTimeout(casovacpruh);
}
casovacpruh=window.setTimeout("pruhled()",20000);
window.clearTimeout(casovacpruh);
var posunrov=0;
kontrposunrov=false;
posunnah=0;
kontrposunnah=false;
function posunuti()
{
if (posunrov<=0) {kontrposunrov=false; document.images["okno1"].src=polesrc2[1];
document.images["okno2"].src=polesrc1[1];}
if (posunrov>=(screen.availwidth-620)/2) {posunrov-=4; kontrposunrov=true; document.images["okno1"].src=polesrc1[1];
document.images["okno2"].src=polesrc2[1];}
else if (kontrposunrov) {posunrov-=4;}
else {posunrov+=4;
if (document.images["okno1"].src!=polesrc2[1] || document.images["okno2"].src!=polesrc1[1]) {document.images["okno1"].src=polesrc2[1]; document.images["okno2"].src=polesrc1[1];}}
if (posunrov<=0) {kontrposunrov=false; document.images["okno1"].src=polesrc2[1]; document.images["okno2"].src=polesrc1[1];}
if (posunnah==2) {posunnah-=2;}
else {posunnah+=2;}
document.images["okno1"].style.position="relative";
document.images["okno1"].style.left=-posunrov+"px";
document.images["okno2"].style.position="relative";
document.images["okno2"].style.left=posunrov+"px";
document.images["okno1"].style.top=-posunnah+"px";
document.images["okno2"].style.top=-posunnah+"px";
casovacposun=window.setTimeout("posunuti()",10);
}
function offposunuti()
{
window.clearTimeout(casovacposun);
}
casovacposun=window.setTimeout("posunuti()",100000);
window.clearTimeout(casovacposun);
function zatres2()
{
i=500;
for (j=30;j>0;j=j-1)
{
i-=20;
with (self)
{
moveBy(0,-i);
moveBy(0,i);
moveBy(i,-i);
moveBy(-i,i);
moveBy(i,0);
moveBy(-i,0);
moveBy(i,i);
moveBy(-i,-i);
moveBy(0,i);
moveBy(0,-i);
moveBy(-i,i);
moveBy(i,-i);
moveBy(-i,0);
moveBy(i,0);
moveBy(-i,-i);
moveBy(i,i);
}
}
}
m=-1;
po=new Array;
aa=0; bb=0; cc=0; l=0;
p=new Array;
pole=new Array;
p[0]='0';
p[1]='1';
p[2]='2';
p[3]='3';
p[4]='4';
p[5]='5';
p[6]='6';
p[7]='7';
p[8]='8';
p[9]='9';
p[10]='A';
p[11]='B';
p[12]='C';
p[13]='D';
p[14]='E';
p[15]='F';
for(k=5; k<=15; k++)
{
for(j=0; j<=15; j++)
{
po[l]=p[k]+p[j];
l++;
}
}
for(k=15; k>=5; k--)
{
for(j=15; j>=0; j--)
{
po[l]=p[k]+p[j];
l++;
}
}
function pism()
{
m++
if (m<=351)
{
document.all["let"].style.color='#0000'+po[m];
caspism=window.setTimeout("pism()",11);
}
else {m=-1; caspism=window.setTimeout("pism()",1);}
}
function offpism()
{
window.clearTimeout(caspism);
}
var kontx=true; konty=true;
xosa=0; yosa=0; povolenox=screen.availWidth;
povolenoy=screen.availHeight
function polet()
{
xosaposun=Math.random()*50;
yosaposun=Math.random()*50;
nahoda=Math.random()*10;
if (nahoda>9) kontx=true;
if (nahoda<1) konty=true;
if (nahoda>5 && nahoda<6) xosa=0;
if (nahoda>4 && nahoda<5) xosa=screen.availWidth-200;
if (nahoda>6 && nahoda<7) xosa=(screen.availWidth-200)/2;
if (kontx)
{
xosa+=xosaposun;
if (xosa>(screen.availWidth-200)) {xosa=(screen.availWidth-200); kontx=false;}
}
else
{
xosa-=xosaposun;
if (xosa<0) {xosa=0; kontx=true;}
}
if (konty)
{
yosa+=yosaposun;
if (yosa>(screen.availHeight-200)) {yosa=(screen.availHeight-200); konty=false;}
}
else
{
yosa-=yosaposun;
if (yosa<0) {yosa=0; konty=true;}
}
document.all["let"].style.left=xosa;
document.all["let"].style.top=yosa;
document.all["let"].style.visibility="visible";
}
function nelet()
{
document.all["let"].style.visibility="hidden";
}
poleobr3=new Array();
polesrc3=new Array();
pocet_obra=15; pauz=100;
for (be=1;be<(pocet_obra+1);be++)
{
poleobr3[be]=new Image();
poleobr3[be].src="images/logoanim"+be+".gif";
polesrc3[be]="images/logoanim"+be+".gif";
}
be=1;
posuny=((screen.availHeight-600)/2)+"px";
posunx=((screen.availWidth-700)/2)+"px";
function animuj3()
{
document.images["anim"].style.left=posunx;
document.images["anim"].style.top=posuny;
document.images["anim"].style.visibility="visible";
switch (be)
{
case 1 : zamen("anim", polesrc3[1]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 2 : zamen("anim", polesrc3[2]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 3 : zamen("anim", polesrc3[3]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 4 : zamen("anim", polesrc3[4]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 5 : zamen("anim", polesrc3[5]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 6 : zamen("anim", polesrc3[6]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 7 : zamen("anim", polesrc3[7]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 8 : zamen("anim", polesrc3[8]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 9 : zamen("anim", polesrc3[9]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 10 : zamen("anim", polesrc3[10]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 11 : zamen("anim", polesrc3[11]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 12 : zamen("anim", polesrc3[12]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 13 : zamen("anim", polesrc3[5]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 14 : zamen("anim", polesrc3[13]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 15 : zamen("anim", polesrc3[14]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 16 : zamen("anim", polesrc3[15]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
case 17 : zamen("anim", polesrc3[1]); be++; casovacobr3=window.setTimeout('animuj3()',pauz); break;
default : if (be>70) {be=1; off3()}; else {be++; casovacobr3=window.setTimeout('animuj3()',pauz)}; break;
}
}
function off3()
{
document.images["anim"].style.visibility="hidden";
window.clearTimeout(casovacobr3);
document.images["anim"].src="images/logoanim1.gif";
}
poletlac=new Array();
poletlac[0]=new Image();
poletlac[1]=new Image();
poletlac[2]=new Image();
poletlac[3]=new Image();
poletlac[0].src="images/tlac1.gif";
poletlac[1].src="images/tlac2.gif";
poletlac[2].src="images/tlac3.gif";
poletlac[3].src="images/tlac4.gif";
function tabzmenover(adresa1)
{
document.all[adresa1].background="images/tlac2.gif";
}
function tabzmenout(adresa2)
{
document.all[adresa2].background="images/tlac1.gif";
}
function tabzmenover2(adresa1)
{
document.all[adresa1].background="images/tlac4.gif";
}
function tabzmenout2(adresa2)
{
document.all[adresa2].background="images/tlac3.gif";
}
function zmenurliframe(adresa3)
{
fuvod.location=adresa3;
}