Damien LASSERRE 1facda245e Giant
Upgrade
2011-08-23 15:20:02 +00:00

32 lines
810 B
JavaScript

$(document).ready( function()
{
$('.idpr').live('click', function(){
//e.preventDefault();
var n = $(this).attr('id');
if ($('#p'+n).css('display')=='none'){
$('#p'+n).css('display', 'block');
} else {
$('#p'+n).css('display', 'none');
}
});
$('img.tooltip').each(function(){
var title = $(this).attr('name');
$(this).attr('title', '');
$(this).qtip( {
content: title,
style: { width: 500, name: 'cream' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
});
$('a.tooltip').each(function(){
var title = $(this).attr('title');
$(this).attr('title', '');
$(this).qtip( {
content: title,
style: { width: 500, name: 'cream' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
});
});