1
내가 텍스트 위에있을 때 사각형의 색이 바뀌는 이유를 알고 싶습니다. 배경색은 항상 사각형과 같습니다.Raphael JS 배경 변경
paper = new Raphael(document.getElementById('canvas_container'), 500, 250);
rectangle2 = paper.rect(130, 75, 140,40,15);
texte = paper.text(200, 90, "Tarification et souscription\nweb")
rectangle2.mouseover(function(){
this.animate({
fill : "#aaa"
});
});
rectangle2.mouseout(function(){
this.animate({
fill : "#F90"
});
});
감사