Я пытаюсь получить пример qtip здесь:
http://craigsworks.com/projects/qtip/demos/position/fixed
таким образом, что когда изображение совы перемещается, qtip перемещается вместе с ним (и остается вверхний правый угол).
Спасибо!
Бонусный вопрос .. Я также пытаюсь, чтобы при наведении мыши на сову появлялась граница.
Воткод для реализации этого стиля qtip:
<script type="text/javascript">
// Only create tooltips when document is ready
$(document).ready(function()
{
// Use the each() method to gain access to each of the elements attributes
$('#content img').each(function()
{
$(this).qtip(
{
content: '<a href="#">Edit</a> | <a href="#">Delete</a>', // Give it some content
position: 'topRight', // Set its position
hide: {
fixed: true // Make it fixed so it can be hovered over
},
style: {
padding: '5px 15px', // Give it some extra padding
name: 'dark' // And style it with the preset dark theme
}
});
});
});
</script>
Я не знаю, почему документация не требует ответа!