2012-12-14 22 views
0

我正在使用qtip作爲工具提示,並且我基於光標移動了工具提示。我應該調用函數來將箭頭指針從左到右,然後從右到左動態地移動。鋤頭是否會將鼠標移動時的尖端左側位置從10%更改爲95%。如何根據鼠標移動qtip提示

jQuery('.fire-object a img').each(function() { 
       jQuery(this).qtip({ 
        // within an each() loop, $(this) refers to the trigger 
        content: jQuery(this).attr('title'), 
        style: { 
          width: 110, 
          padding: 5, 
          background: '#FFFFFF', 
          color: 'black', 
          textAlign: 'center', 
          border: { 
          width: 7, 
          radius: 5, 
          color: '#FFFFFF' 
          }, 
          tip: 'bottomLeft', 
          name: 'dark' // Inherit the rest of the attributes from the preset dark style 
        }, 
        position: { 
          my: 'left top', 
          target: 'mouse', 
          viewport: $(window), // Keep it on-screen at all times if possible 
          adjust: { 
           x: 10, y: 10 
          } 
         }, 
        hide: { 
         fixed: true // Helps to prevent the tooltip from hiding ocassionally when tracking! 
        } 
       }); 
       }); 

example 任何想法?提前致謝。

+0

你是目前的代碼是什麼? – bobthyasian

+0

這是我的代碼 – jackyesind

回答

0

qTip2不在。特點:Mouse Tracking

+0

這已經是我的了。在鼠標追蹤中,當我移動鼠標 – jackyesind

+0

時,我想調用該函數從左至右移動箭頭,然後從右至左,請檢查上面的鏈接 – jackyesind

相關問題