X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=commons.js;fp=commons.js;h=0000000000000000000000000000000000000000;hb=9f0cbf62feaea515635cfc85bddd5292b2170440;hp=cb8076f7e0fe1de2a28c9c3b3f262b636abd9ade;hpb=ff96d86813afe7c2d607bc6ca9d5c18c378c6fed;p=xynt.git diff --git a/commons.js b/commons.js deleted file mode 100644 index cb8076f..0000000 --- a/commons.js +++ /dev/null @@ -1,99 +0,0 @@ -function $(id) { return document.getElementById(id); } - -function getStyle(x,IEstyleProp, MozStyleProp) -{ - if (x.currentStyle) { - var y = x.currentStyle[IEstyleProp]; - } else if (window.getComputedStyle) { - var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(MozStyleProp); - } - return y; -} - - /* replacement of setInterval on IE */ -(function(){ - /*if not IE, do nothing*/ - if(!document.uniqueID){return;}; - - /*Copy the default setInterval behavior*/ - var nativeSetInterval = window.setInterval; - window.setInterval = function(fn,ms) { - var param = []; - if(arguments.length <= 2) { - return nativeSetInterval(fn,ms); - } - else { - for(var i=2;i