나는 사이트에서 this을 (를) 발견했습니다.
하지만 난 .. 내 자신의 떨어져 일을하는 것과 유 조금 밖으로, 작은 예를 돕기 위해 ... 난 당신이 당신의 자신의 툴팁을한다면
<style>
.item {
position: relative;
width: 100px;
height: 40px;
top: 200px;
left: 400px;
background: #CCC;
}
.item .tooltip {
position: fixed; /** depends on how it handles the e.pageX and e.pageY **/
width: 80px;
height: 30px;
background: #06F;
z-index: 10;
display: none; /**let the tooltip be not visable, when startup **/
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$(".item").mousemove(function(e) {
// put other effect in when moving over the element
// from e you can get the pageX(left position) and pageY(top position)
// im not sure if it was the relative or the absolute position
// i added 10 pxs on the top and left to show the tooltip a bit after
$('.tooltip').css('left', e.pageX + 10).css('top', e.pageY + 10).css('display', 'block');
});
$(".item").mouseout(function() {
$('.tooltip').css('display', 'none');
});
});
</script>
<div class="item">
<p>This is my item</p>
<div class="tooltip">Tooltip</div>
</div>
..하지만 최대 당신에게 무엇을 원하는 분
해결이 질문? –