jQuery工具-Ajax的实时工具提示 [英] Jquery tools - live tooltip for Ajax
问题描述
我有一个工作版本的工具提示(jQuery工具- http://flowplayer.org /tools/demos/tooltip/index.html )
I have a working version of tooltip (jQuery Tools - http://flowplayer.org/tools/demos/tooltip/index.html) ,
jQuery(document).ready(function() {
jQuery('.more_info').each(function(){
jQuery(this).tooltip({
effect: 'slide',
offset: [10, 570],
predelay: 100,
position: "bottom left"}).dynamic( {
bottom: {
direction: 'down',
bounce: true
}
});
});
});
加载ajax之后,由于已加载脚本,工具提示不再起作用,我尝试了论坛
after ajax is loaded , tooltips not working any more because , script already was loaded , i tried solution from forum http://flowplayer.org/tools/forum/30/37281 , but is not working , or is not implemented correctly
这是代码:
jQuery(document).ready(function() {
jQuery('.more_info').each(function(){
jQuery(this).not('.tt_init').tooltip({
effect: 'slide',
offset: [10, 570],
predelay: 100,
position: "bottom left"}).dynamic( {
bottom: {
direction: 'down',
bounce: true
}
});
jQuery(this).not('.tt_init').addClass('tt_init');
});
});
什么都没有...我做错了,谢谢您的帮助;),抱歉我的英语不好
and nothing ... I'm doing something wrong , Thank you for helping ;) , sorry for my bad English
推荐答案
与以下解决方案相同:
使用livequery插件.如果工具提示适用于所有页面,则应每次刷新.这是livequery进来的.
Use the livequery plugin. If tooltip holds for all your pages, it should be refreshed every time. This is were livequery comes in.
也请检查此链接:
这篇关于jQuery工具-Ajax的实时工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!