Note if toFixed is not defined if (!num.toFixed) { Number.prototype.toFixed = function(precision) { var power = Math.pow(10, precision || 0); ...
Tag: ie
// styleFloat, IE // cssFloat , Safari ou Firefox // styleFloat and cssFloat, Opera //assignation var el = document.getElementById(‘element_id’); el.style.styleFloat = ‘left’; el.style.cssFloat =...
/* original: http://code.google.com/p/ie7-js/ */ <head> <!–> <script src=“http://ie7-js.googlecode.com/svn/version/2.0(beta2)/IE8.js” type=“text/javascript”></script> <!—> </head> Note it works in...
Remove the events from the options, use an event directly on the select instead. function myfunc(value) { alert(value); } … <select onchange=“myfunc(this.options.value)”> ...
// max-width // Ce code dit que si la largeur du document est supérieure à 1000px, alors il sera forcé à 1000px, sinon il...