extranet/www/js/ratios.js
2009-10-07 07:46:28 +00:00

44 lines
1017 B
JavaScript

$(document).ready(function()
{
$('#ratios a[tooltip]').each(function()
{
$(this).qtip( {
content: $(this).attr('tooltip'),
style: { width: 500, name: 'dark' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
});
$('.rTip').each(function()
{
$(this).qtip(
{
content: {
text: 'Chargement...',
url: $(this).attr('rel'),
title: { text: $(this).attr('name')}
},
position: {
corner: {
target: 'leftMiddle',
tooltip: 'rightMiddle'
}
},
show: { solo: true},
style: {
tip: true,
border: { width: 1, radius: 0 },
name: 'light',
width: 400
}
})
});
$('[name=mil]').change(function(){
document.location.href=$(this).val();
});
$('input[type=radio][name=typeBilan]').change(function(){
document.location.href=$(this).val();
});
});