Is there anyway to make the texts and/or shapes be hyperlinks? Being that when they are clicked, they bring up new browser and when you hover over them, they show location of the url?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can't make the browser to show the url of links in statusbar which are not an a
tag. But you can indeed ad a click handler on kinetic objects and make them act a link.
text.on('click', function() {
// do something
});
http://jsfiddle.net/4JYGL/