Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
m
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 117: Line 119:
return dLeft;
return dLeft;
}
}
 +
$(document).ready(function(){
$(document).ready(function(){
Line 122: Line 125:
     ob1 = document.getElementById('col-left');
     ob1 = document.getElementById('col-left');
     rTop = 307;
     rTop = 307;
-
     //window.setInterval('fixedpo()',20);
+
     window.setInterval('fixedpo()',20);
})
})
</script>
</script>
</html>
</html>

Revision as of 17:35, 26 June 2013