Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 363: Line 363:
t1=setTimeout("scrollLf()",100);
t1=setTimeout("scrollLf()",100);
}
}
 +
 +
function animTransA() {
 +
st1 -= speed;
 +
img = document.getElementById('galImg');
 +
img.style.opacity = st1/100;
 +
img.style.filter = 'alpha(opacity=' + st1 + ')';
 +
if (st1 > 0) { t2=setTimeout("animTransA()",50); }
 +
else { st1 = 100;}
 +
}
 +
function animTransB () {
 +
st2 += speed;
 +
img = document.getElementById('galImg');
 +
img.style.opacity = st2/100;
 +
img.style.filter = 'alpha(opacity=' + st2 + ')';
 +
if (st2 < 100) { t3=setTimeout("animTransB()",50); }
 +
else { st2 = 0;}
 +
}
 +

Revision as of 22:29, 12 January 2015