<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <script type="text/javascript" src="JS/jquery-1.3.2.min.js" ></script>
    <script type="text/javascript">
       function ShowTip(event,obj,message)
       {
          var xOffset = -10; // x distance from mouse
          var yOffset = 10; // y distance from mouse    
         
          //obj.style.top = (event.clientX + yOffset)+"px";
          //obj.style.left = (event.clientY + xOffset)+"px";
          //获取元素width: $(obj).width();
          //获取元素height:$(obj).height()
          
          //获取元素位置:$(obj).position().top和$(obj).offset().top
          
          $('body').append( '<div >Tip</a>
</body>
</html>

相关文章:

  • 2021-08-30
  • 2022-01-24
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2022-02-08
  • 2022-02-09
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-09-29
相关资源
相似解决方案