当前位置: 首页 > 工具软件 > jQuery Tools > 使用案例 >

ajax中tooltip,Jquery tools - live tooltip for Ajax

宇文修文
2023-12-01

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

}

});

});

});

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

here is code :

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

 类似资料: