2012-03-04 48 views
2

我試圖讓這裏的qtip例如: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> 

我不知道爲什麼文件沒有向我大喊大叫的答案!

回答