Team:Goettingen/suplement/scripts ie ff patch

From 2013.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 9: Line 9:
   return retnode;
   return retnode;
};  
};  
 +
 +
if (window.scrollY == null) {window.scrollY = document.documentElement.scrollTop}
function getNextElementSibling(ob){
function getNextElementSibling(ob){
Line 16: Line 18:
}
}
 +
if (!getComputedStyle) {
 +
    getComputedStyle = function(el, pseudo) {
 +
        this.el = el;
 +
        this.getPropertyValue = function(prop) {
 +
            var re = /(\-([a-z]){1})/g;
 +
            if (prop == 'float') prop = 'styleFloat';
 +
            if (re.test(prop)) {
 +
                prop = prop.replace(re, function () {
 +
                    return arguments[2].toUpperCase();
 +
                });
 +
            }
 +
            return el.currentStyle[prop] ? el.currentStyle[prop] : null;
 +
        }
 +
        return this;
 +
    }
 +
}
</script>
</script>
</html>
</html>

Latest revision as of 11:35, 15 September 2013