Team:Uppsala/synbioday

From 2013.igem.org

(Difference between revisions)
Line 45: Line 45:
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
-
var x = document.getElementById("countdown").style.left;
+
var x = document.getElementById('countdown').style.left;
-
             var y = document.getElementById("countdown").style.top;
+
             var y = document.getElementById('countdown').style.top;
             var d_x = 75;
             var d_x = 75;
             var d_y = 100;
             var d_y = 100;
Line 55: Line 55:
                 if(y < d_y) y = y + interval - 1;                  //move y by only 1px
                 if(y < d_y) y = y + interval - 1;                  //move y by only 1px
-
                 document.getElementById("countdown").style.left = x+'px';
+
                 document.getElementById('countdown').style.left = x+'px';
-
                 document.getElementById("countdown").style.top = y+'px';
+
                 document.getElementById('countdown').style.top = y+'px';
                 if ((x + interval < d_x) && (y + interval < d_y)) {
                 if ((x + interval < d_x) && (y + interval < d_y)) {
Line 169: Line 169:
-
<div id="countdown"></div>
+
<div id="countdown" onload="moveImage()"></div>
</body>
</body>
</html>
</html>

Revision as of 19:57, 22 August 2013