Flexslider-当鼠标悬停在点上时显示工具提示
Flexslider - show tooltip while mouse hover on dots
我正在使用http://flexslider.woothemes.com/我的页面中的flex滑块插件。
Below is my code for flexslider:
html:
<div class="flexslider">
<ul class="slides">
<li>Image 1</li>
<li>Image 2</li>
<li>Image 3</li>
</ul>
</div>
js: java script code for flex slider and this code is used to initialize the flex slider while page load.
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
slideshow: false,
controlNav: true,
directionNav: false,
easing: "swing"
});
});
我只想当我把鼠标悬停到点(用于在幻灯片之间导航)时,工具提示应该更新并显示某种消息,比如"幻灯片编号"。
根据RRR的建议,我为每个点添加了title
。
$(".flexslider ol li a").each(function(index){
$(this).attr("title","slide number "+(index+1));
});
请参阅此小提琴
相关文章:
- Highcharts-在单击而不是悬停时显示工具提示
- C3.js通过单击按钮显示工具提示
- 未单击按钮时显示工具提示
- 高图表在点单击时显示工具提示
- Flexslider-当鼠标悬停在点上时显示工具提示
- 高亮显示工具提示共享项,具体取决于Highcharts中悬停的系列
- 显示工具提示而不双击字段
- 在 Twitter 引导程序中自动显示工具提示,而无需放置光标
- 悬停时显示工具提示
- 隐藏 x 轴标签,但在图表.js中显示工具提示
- 突出显示工具提示中未显示名称的 3D 散点
- 如何在图像库森时更改颜色和显示工具提示
- q提示 2 - 鼠标按下以显示工具提示?鼠标向上隐藏
- D3.js水平折线图无法正确显示工具提示
- 在 d3.js 折线图中永久显示工具提示
- 如何在 SVG 上的鼠标光标旁边显示工具提示,尽管网站上有非 SVG 元素
- 高图表在类别标签悬停时显示工具提示
- 仅在完全创建时显示工具提示
- 鼠标输入时未显示工具提示
- 鼠标悬停时无法显示工具提示,jQuery1.11