From 2014.igem.org
(Difference between revisions)
|
|
Line 347: |
Line 347: |
| } | | } |
| | | |
- | function scrollRt() {
| |
- | i = i + speed;
| |
- | var div = document.getElementById("cont1");
| |
- | div.scrollLeft = i;
| |
- | if (i > div.scrollLeft) {i = 500;}
| |
- | t1=setTimeout("scrollRt()",100);
| |
- | }
| |
- |
| |
- | function scrollLf() {
| |
- | i = i - speed;
| |
- | var div = document.getElementById("cont1");
| |
- | div.scrollLeft = i;
| |
- | if (i < 0) {i = 0;}
| |
- | 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;}
| |
- | }
| |
- |
| |
- | function resetAlpha() {
| |
- | clearTimeout(t2);
| |
- | clearTimeout(t3);
| |
- | img = document.getElementById('galImg');
| |
- | img.style.opacity = 1;
| |
- | st1 = 100; st2 = 0;
| |
- | img.style.filter = 'alpha(opacity=' + 100 + ')';
| |
- | }
| |
| | | |
| </script> | | </script> |
Revision as of 22:29, 12 January 2015
Registrations ends in one week!
Registration ends March 31st. More information: Registration