Template:Team:Washington/Templates/Header
From 2009.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<title>University of Washington iGEM 2009</title> | <title>University of Washington iGEM 2009</title> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | (function(){var DomReady=window.DomReady={};var userAgent=navigator.userAgent.toLowerCase();var browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:(/msie/.test(userAgent))&&(!/opera/.test(userAgent)),mozilla:(/mozilla/.test(userAgent))&&(!/(compatible|webkit)/.test(userAgent))};var readyBound=false;var isReady=false;var readyList=[];function domReady(){if(!isReady){isReady=true;if(readyList){for(var fn=0;fn<readyList.length;fn++){readyList[fn].call(window,[]);}readyList=[];}}};function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}}};function bindReady(){if(readyBound){return;}readyBound=true;if(document.addEventListener&&!browser.opera){document.addEventListener("DOMContentLoaded",domReady,false);}if(browser.msie&&window==top)(function(){if(isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}domReady();})();if(browser.opera){document.addEventListener("DOMContentLoaded",function(){if(isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}domReady();},false);}if(browser.safari){var numStyles;(function(){if(isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined){var links=document.getElementsByTagName("link");for(var i=0;i<links.length;i++){if(links[i].getAttribute('rel')=='stylesheet'){numStyles++;}}var styles=document.getElementsByTagName("style");numStyles+=styles.length;}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}domReady();})();}addLoadEvent(domReady);};DomReady.ready=function(fn,args){bindReady();if(isReady){fn.call(window,[]);}else{readyList.push(function(){return fn.call(window,[]);});}};bindReady();})(); | ||
+ | DomReady.ready(function() { | ||
+ | if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) === 0) { | ||
+ | /*window.scrollTo(0, 82);*/ | ||
+ | document.getElementById('menubar').scrollIntoView(); | ||
+ | window.scrollBy(0,4); | ||
+ | } | ||
+ | }); | ||
+ | |||
window.onscroll = function() { | window.onscroll = function() { | ||
if ( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely... | if ( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely... | ||
Line 54: | Line 63: | ||
</style> | </style> | ||
</head> | </head> | ||
- | <body | + | <body> |
<div id="h_leftBar"> | <div id="h_leftBar"> | ||
<a href="https://2009.igem.org/Team:Washington"><img border="0" width="135" height="135" src="/wiki/images/0/0a/Igem-2009-logo.png" alt="UW iGEM 2009 Logo"/></a> | <a href="https://2009.igem.org/Team:Washington"><img border="0" width="135" height="135" src="/wiki/images/0/0a/Igem-2009-logo.png" alt="UW iGEM 2009 Logo"/></a> |
Revision as of 07:53, 8 October 2009