2012-12-14 3 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

관련 문제