Team:Goettingen/suplement/scripts ie ff patch

From 2013.igem.org

(Difference between revisions)
m (Created page with "document.getElementsByClassName = function(cl) { var retnode = []; var elem = this.getElementsByTagName('*'); for (var i = 0; i < elem.length; i++) { if((' ' + elem[i]....")
 
(22 intermediate revisions not shown)
Line 1: Line 1:
 +
<html>
 +
<script>
document.getElementsByClassName = function(cl) {
document.getElementsByClassName = function(cl) {
   var retnode = [];
   var retnode = [];
Line 8: Line 10:
};  
};  
-
var getNextElementSibling = function (ob){
+
if (window.scrollY == null) {window.scrollY = document.documentElement.scrollTop}
-
do {ob = ob.nextSibling;
+
function getNextElementSibling(ob){
-
}while (ob && ob.nodeType !== 1);
+
ob = ob.nextSibling;
 +
while(ob.nodeType != 1){ob = ob.nextSibling}
return ob;
return ob;
}
}
 +
 +
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>
 +
</html>

Latest revision as of 11:35, 15 September 2013