home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2004 January
/
Gamestar_58_2004-01_dvd.iso
/
DVDStar
/
OdCtenaru
/
Click
/
data
/
efekty.js
< prev
next >
Wrap
Text File
|
2003-08-20
|
3KB
|
129 lines
// This File Copyright (c) by Click Team 2003, All rights reserved.
// Na dokument se vztahujφ autorskß prßva!
// Kopφrovßnφ jakΘkoliv Φßsti k≤du je p°φsn∞ zakßzßno!
var op = 0;
function unfade()
{
if (op < 100)
{
op = op + 20;
page.style.filter = 'alpha(opacity='+op+')';
setTimeout("unfade();", 1);
}
}
col = new Array()
col[0]="FFFFFF"
col[1]="CCCCCC"
i_col=0
doani=1
var timer
var thislink
function animatelink() {
if (document.all) {
if (doani==1) {
if (i_col<=col.length-1) {
thislink.color=col[i_col]
i_col++
timer=setTimeout("animatelink()",50)
}
else {
i_col=0
timer=setTimeout("animatelink()",50)
}
}
else {
clearTimeout(timer)
}
}
}
function stopanimation() {
clearTimeout(timer)
thislink.color="#FFFFFF"
doani=0
}
function okno() {
window.open('data/mainmenu.htm', 'click', 'width=800, height=600, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, top='+(screen.height/2-300)+', left='+(screen.width/2-400));
}
function startanimation(mylink) {
clearTimeout(timer)
thislink=eval("document.all."+mylink+".style")
doani=1
animatelink()
}
function blur1()
{
document.all.god.style.filter = 'blur(direction=45)';
setTimeout("blur2()", 500);
}
function blur2()
{
document.all.god.style.filter = 'blur(direction=90)';
setTimeout("blur3()", 250);
}
function blur3()
{
document.all.god.style.filter = 'blur(direction=315)';
setTimeout("blur5()", 100);
}
function blur5()
{
document.all.god.style.filter = 'blur(direction=180)';
setTimeout("blur6()", 100);
}
function blur6()
{
document.all.god.style.filter = 'blur(direction=360)';
setTimeout("blur7()", 250);
}
function blur7()
{
document.all.god.style.filter = 'blur(direction=270)';
setTimeout("blur8()", 250);
}
function blur8()
{
document.all.god.style.filter = 'blur(direction=135)';
setTimeout("blur9()", 500);
}
function blur9()
{
document.all.god.style.filter = 'blur(direction=225)';
setTimeout("blur10()", 50);
}
function blur10()
{
document.all.god.style.filter = 'blur(direction=0)';
setTimeout("blur1()", 100);
}
function blik1()
{
document.all.stovka.style.color = '#ffffff';
setTimeout("blik2();", 1000);
}
function blik2()
{
document.all.stovka.style.color = '#ff0000';
setTimeout("blik1();", 1000);
}