2012-04-24 56 views
1

嗨,我是在拉斐爾路徑工作,我不知道如何使這條道路可點擊,點擊後讓我們開始的fancybox能夠例如運行的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); 
     }); 

回答

1

你大部分在那裏。只需添加一個.click功能即可完成。試試here