Raphaelを使用してIEで動作するマウスイベント管理を取得しようとしています。'Raphael'はIEで定義されていません
しかし、「Raphael」はChromeのような他のブラウザでもうまく動作しますが、Internet Explorer 9では定義されていません。ここで
はjsfiddleとコードです:
<div id="sample"></div>
<div id="status"></div>
var width = 400;
var height = 200;
var paper = Raphael(document.getElementById('sample'), 0, 0, width, height);
var rect = paper.rect(0, 0, width, height);
rect.attr({
stroke: "#888",
fill: "#eaeaea"
});
var circle = paper.circle(50, 60, 20);
circle.attr({
fill: "#f90"
});
$(circle.node).mouseenter(function(e){
$('#status').html('Entered circle');
});
$(circle.node).mouseleave(function(e){
$('#status').html('left circle');
});
それは、このライブラリのバージョンを使用している:あなたがIEで動作していない理由を特定するのに役立つことができますhttps://raw.github.com/DmitryBaranovskiy/raphael/master/raphael-min.js
を?
問題はgithubの上でホスティングデフォルトであるThanksk