取得鼠标所在位置的对象
来源:互联网 发布:python入门书籍 知乎 编辑:程序博客网 时间:2024/05/02 00:35
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<HTML>
<HEAD>
<TITLE> 取得鼠标所在位置的对象 </TITLE>
<META NAME="Author" CONTENT="宝玉 [url]http://www.nwpubbs.net[/url]">
</HEAD>
<script language="javascript">
<!--
function fnGetTable( oEl )
{
try{
while( null != oEl && oEl.tagName!="TABLE" )
{
oEl = oEl.parentElement;
}
return oEl;
}
catch(e)
{
return null;
}
}
function pos()
{
try{
oElement = document.elementFromPoint(event.x,event.y);
oElement = fnGetTable(oElement);
if(oElement.tagName=="TABLE")
show.innerText=oElement.id;
}
catch(e)
{}
}
// -->
</script>
<BODY onmousemove="pos()">
<table border="1" cellpadding="" cellspacing="" width="" id="table1">
<tr>
<td>table1</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table2">
<tr>
<td>table2</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table3">
<tr>
<td>table3</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table4">
<tr>
<td>table4</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table5">
<tr>
<td>table5</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table6">
<tr>
<td>table6</td>
</tr>
</table>
鼠标当前在:<span id="show"></span>
</BODY>
</HTML><script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
<HEAD>
<TITLE> 取得鼠标所在位置的对象 </TITLE>
<META NAME="Author" CONTENT="宝玉 [url]http://www.nwpubbs.net[/url]">
</HEAD>
<script language="javascript">
<!--
function fnGetTable( oEl )
{
try{
while( null != oEl && oEl.tagName!="TABLE" )
{
oEl = oEl.parentElement;
}
return oEl;
}
catch(e)
{
return null;
}
}
function pos()
{
try{
oElement = document.elementFromPoint(event.x,event.y);
oElement = fnGetTable(oElement);
if(oElement.tagName=="TABLE")
show.innerText=oElement.id;
}
catch(e)
{}
}
// -->
</script>
<BODY onmousemove="pos()">
<table border="1" cellpadding="" cellspacing="" width="" id="table1">
<tr>
<td>table1</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table2">
<tr>
<td>table2</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table3">
<tr>
<td>table3</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table4">
<tr>
<td>table4</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table5">
<tr>
<td>table5</td>
</tr>
</table>
<table border="1" cellpadding="" cellspacing="" width="" id="table6">
<tr>
<td>table6</td>
</tr>
</table>
鼠标当前在:<span id="show"></span>
</BODY>
</HTML><script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 取得鼠标所在位置的对象
- 取得鼠标所在位置的对象
- 取得鼠标所在位置的对象
- elementFromPoint 获得鼠标所在位置处的对象
- android取得所在位置的经纬度
- android取得所在位置的经纬度
- 获得鼠标所在位置的颜色
- 取得UITextView中的光标所在位置的代码
- opencv显示鼠标所在位置的rgb值
- js获取鼠标所在位置
- 计算鼠标所在位置的x,y坐标的JavaScript脚本
- 计算鼠标所在位置的x,y坐标的JavaScript脚本
- java获得鼠标所在位置的图像的rgb值。
- java获得鼠标所在位置的图像的rgb值
- JTable中怎样获取鼠标所在位置的行数
- delphi中获取memo鼠标所在位置的行和列
- ogre 查询平面地图中鼠标所在位置的高度
- 计时器(4)之获取鼠标所在位置的颜色
- J2ME Benchmarking: A Review @ JDJ
- 请看用javascript设置和读取cookie的简单例子
- Cisco Networking Simplified @ JDJ
- 请看用javascript设置和读取cookie的简单例子.....
- Conditional Compilation In Java @ JDJ
- 取得鼠标所在位置的对象
- An Introduction to Genetic Algorithms In Java @ JDJ
- 取得页面内的所有链接
- Dynamic Sorting With Java @ JDJ
- 确认是否关闭浏览器或转到其它页面(JavaScript)
- NeXTensio2 @ JDJ
- 让下拉列表框在新窗口中打开
- Linux-Based SAN Helps Greenpeace UK Keep E-Mail Flowing @ JDJ
- 如果让层始终浮动于网页最顶部