From 2012.igem.org
function getScrollTop() {
var scrollPos;
if (window.pageYOffset) {
scrollPos = window.pageYOffset;
}
else if (document.compatMode) {
if(document.compatMode != 'BackCompat')
{
scrollPos = document.documentElement.scrollTop;
}
else if (document.body)
{
scrollPos = document.body.scrollTop;
}
}
if(scrollPos < 110){
document.getElementById("right-fixed").className=" ";
}
else{
document.getElementById("right-fixed").className="right-fixed";
}
}
window.onscroll=getScrollTop;
[[file:{{{B1}}}|link={{{url1}}}]]
[[file:{{{Btr1}}}|link={{{url1}}}]]
[[file:{{{B2}}}|link={{{url2}}}]]
[[file:{{{Btr2}}}|link={{{url2}}}]]
[[file:{{{B3}}}|link={{{url3}}}]]
[[file:{{{Btr3}}}|link={{{url3}}}]]
[[file:{{{B4}}}|link={{{url4}}}]]
[[file:{{{Btr4}}}|link={{{url4}}}]]
[[file:{{{B5}}}|link={{{url5}}}]]
[[file:{{{Btr5}}}|link={{{url5}}}]]
[[file:{{{B6}}}|link={{{url6}}}]]
[[file:{{{Btr6}}}|link={{{url6}}}]]
[[file:{{{B7}}}|link={{{url7}}}]]
[[file:{{{Btr7}}}|link={{{url7}}}]]
[[file:{{{B8}}}|link={{{url8}}}]]
[[file:{{{Btr8}}}|link={{{url8}}}]]
[[file:{{{B9}}}|link={{{url9}}}]]
[[file:{{{Btr9}}}|link={{{url9}}}]]