每当鼠标悬停在wordcloud中的某个单词上时,我都试图实现一个jQuery工具提示。我使用的wordcloud引用是[jQuery.awesomeCloud.plugin]:https://github.com/indyarmy/jQuery.awesomeCloud.plugin
或者,在使用这个jQuery wordcloud时,有没有其他方法可以在单词上添加悬停的工具提示?请帮帮我。
谢谢。
我的代码如下:
<!--jQuery ToolTip-->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script>
<!--Calling Tooltip function in jQuery-->
$(function() {
$("#age").tooltip();
});
<!--End-->
</script>
<!--End-->
<!--WordCLoud References-->
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>//Conflict with jQuery script above-->
<script src="jquery.awesomeCloud-0.2.min.js"></script>
<!--End-->
<div class="content">
<div id="wordcloud2" class="wordcloud">
<span id="age" data-weight="90"><a href="http://google.com" title="CAN YOU SEE ME">google</a></span>
</div>
我认为这是一个阻止我弹出这个工具提示
$("#wordcloud2").awesomeCloud({
"size" : {
"grid" : 9,
"factor" : 1
},
"options" : {
"color" : "random-dark",
"rotationRatio" : 0.35
},
"font" : "Impact",
"shape" : "square"
});
试过你的代码,它运行得很好。谷歌
$(function() {
$("#age").tooltip();
});
fiddle url: http://jsfiddle.net/7GvQt/