每当我将wordcloud中的某个单词鼠标移动时,我正在尝试实现jQuery Tooltip。 我正在使用的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"
});
答案 0 :(得分:1)
尝试使用您的代码,它运行正常。 谷歌
$(function() {
$("#age").tooltip();
});
fiddle url: http://jsfiddle.net/7GvQt/