Team:Goettingen/suplement/scripts ie ff patch

From 2013.igem.org

(Difference between revisions)
Line 16: Line 16:
}
}
 +
if (!document.getComputedStyle) {
 +
    document.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>

Revision as of 08:03, 18 August 2013