I think the first time I will answer my question,
it works,
$('#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 } }); });
Can I optimize it?
Toni michel caubet
source share