Думаю, впервые я отвечу на свой вопрос:
это работает,
$('#panel_derecho a.tooltip').each(function(){
$(this).qtip({
content: { url: 'includes/qtip.php?'+$(this).attr('rel')+' #'+$(this).attr('div'), text:'loading...' },
show: { delay: 400},
hide: { fixed: true, delay: 200 },
position: {
corner: {
target: 'topLeft',
tooltip: 'middleRight'
}
},
style: {
name: 'light',
width: 700
}
});
});
$('#router a.tooltip').each(function(){
$(this).qtip({
content: { url: 'includes/qtip.php?'+$(this).attr('rel')+' #'+$(this).attr('div'), text:'loading...' },
show: { delay: 400},
hide: { fixed: true, delay: 200 },
position: {
corner: {
target: 'topLeft',
tooltip: 'left'
}
},
style: {
name: 'light',
width: 700
}
});
});
Могу ли я оптимизировать его?