도구 설명에 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 어떤 아이디어가? 미리 감사드립니다.
현재 코드는 무엇입니까? – bobthyasian
이것은 내 코드입니다 – jackyesind