客户端用javascript获取:event.clientY,event.clientX。
解决方案 »
- 大家帮忙看看问题出在什么地方,为什么数据没有更新到数据库 ;谢了先~
- 关于lock问题
- 就想弄明白表单提交方式的区别!!!!
- 各位好,新手关于DataList的问题~~
- 查询DataTable?? 在线等 急急急
- 有一个网站!!数据库连接db.cs不想编译!怎么加密?
- 如何用鼠标点页面后如何取的DataGrid中指定单元格的值我没有找到相关的事件处理
- webform1.aspx.65e33e68.compiled 這是什麼文件,起什麼作用??
- datagrid的分页问题
- 发布程序部署到IIS之后,保存的中文的变成了乱码
- .net菜鸟问题,在线等待。。。。
- datagrid 帮定金额列的显示格式的问题
第一步:把如下代码加入<body>区域中:
<SCRIPT LANGUAGE="JavaScript">
if (navigator.appName == 'Netscape')
{
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = netscapeMouseMove;
}function netscapeMouseMove(e) {
if (e.screenX != document.test.x.value && e.screenY != document.test.y.value)
{
document.test.x.value = e.screenX;
document.test.y.value = e.screenY;
}
}function micro$oftMouseMove() {
if (window.event.x != document.test.x.value && window.event.y != document.test.y.value)
{
document.test.x.value = window.event.x;
document.test.y.value = window.event.y;
}
}
</SCRIPT>
<FORM NAME="test">
X: <INPUT TYPE="TEXT" NAME="x" SIZE="4"> Y: <INPUT
TYPUE="TEXT" NAME="y" SIZE="4">
</FORM>
第二步:把<body>中内容改为:
<body bgcolor="#fef4d9" onMousemove="micro$oftMouseMove()">
有错误:document.test.x.value = window.event.x; “document.test.x” 为空或者不是对象
<!--
function document.onmousemove()
{
document.all.x.value=event.x;
document.all.y.value=event.y;
}
//-->
</SCRIPT>
x:<input type="text" id="x"><br>
y:<input type="text" id="y">