Essayer de faire un effet de toile fonctionner dans IE8. Avec excanvas.js il n'y a pas de problème dans IE7, mais dans IE8, ça ne marche pas. L'effet est nommé ECOTree, et j'ai fait toutes les astuces et toutes les modifications incluses here. Des suggestions pour exécuter cet effet dans IE8?Excanvas.js ne fonctionne pas pour moi dans IE8
Voici le code modifié pour IE8 en ecotree.js:
// Make the <canvas> element.
var canvas = document.createElement('canvas');
jQuery(canvas).attr('width', 2000).attr('height', 7000).attr('id', 'ECOTreecanvas').appendTo(this.treeContainer);
if ((jQuery.browser.msie) && (parseInt(jQuery.browser.version, 10)<=8)){
// For Internet Explorer, have excanvas initialize the canvas method
// Modification, the major versions greater than 8 don't need excanvas.
canvas.setAttribute('width', '2000');
canvas.setAttribute('height', '7000');
canvas.setAttribute('id', 'ECOTreecanvas');
this.treeContainer.append(canvas);
if (typeof G_vmlCanvasManager != 'undefined') {
canvas = G_vmlCanvasManager.initElement(canvas);
}
}
Afficher le code. Excanvas fonctionne bien pour moi dans IE8 – Andrew
duplicata possible de [Possible d'obtenir Excanvas à travailler dans IE 8?] (Http://stackoverflow.com/questions/941170/possible-to-get-excanvas-to-work-in- ie-8) – Prestaul