Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
m
Line 92: Line 92:
function fixedpo()
function fixedpo()
-
{ //var sTop = document.getElementsByTagName('body')[0].scrollTop;
+
{ var sTop = document.getElementsByTagName('body')[0].scrollTop;
-
//if(sTop > rTop) {ob1.style.position = 'fixed';
+
if(sTop > rTop) {ob1.style.position = 'fixed';
// ob1.style.top = '0px';
// ob1.style.top = '0px';
                         // ob1.style.width = '27%'}
                         // ob1.style.width = '27%'}
-
//else {ob1.style.position =''; ob1.style.top = '';ob1.style.width = ''}
+
else {ob1.style.position =''; ob1.style.top = '';ob1.style.width = ''}
-
//;
+
-
    return i;
+
 
}
}
Line 120: Line 120:
}
}
 +
function showi(){return i;}
$(document).ready(function(){
$(document).ready(function(){
Line 125: Line 126:
     ob1 = document.getElementById('col-left');
     ob1 = document.getElementById('col-left');
     rTop = 307;
     rTop = 307;
-
     window.setInterval('fixedpo()',20);
+
     window.setInterval('showi()',20);
})
})
</script>
</script>
</html>
</html>

Revision as of 17:37, 26 June 2013