嗨,我正在使用 Raphael 中的路径,我想知道如何使该路径可点击,点击后让 fancybox 启动
我自己的路:
paper.path("M172.25,647 L381.75,640.75 L422,641.75 L422,665 L415.75,679.5 L402.75,679.5 L401.25,667 L393.751,665 L363.625,665 L352.005,671.673 L346,673 L338.625,677 L172.25,672.5 Z").attr({"fill":"white", "stroke-width": 0, "fill-opacity": .4}).mouseover(
function () {
this.animate({"fill-opacity": .8}, 600);
}).mouseout(function () {
this.animate({"fill-opacity": .4}, 600);
});