User:PanSola/Common.js

/* A function to fix the CSS problems due to IE7 not implementing display:table-cell; */ function hideColFix{ var browserName=navigator.appName; var browserVer =parseInt(navigator.appVersion);

//	if (browserName=="Microsoft Internet Explorer" && browserVer >= 7){ fixTable("hidecol1"); fixTable("hidecol2"); fixTable("hidecol3"); fixTable("hidecol4"); fixTable("hidecol5"); fixTable("hidecol6"); fixTable("hidecol7"); fixTable("hidecol8"); fixTable("hidecol9"); fixTable("hidecol10"); //	} } function fixTable(className){ var theTables = getElementsByClassName(document, "table", className); for (var i=0; i < theTables.length; i++){ var theRows = theTables[i].rows; for (var j=0; j < theRows.length; j++){ var theCells = theRows[j]; for (var k=0; k < theCells.length; k++){ theCells[k].display = 'block'; }		}	} } addOnloadHook(hideColFix);