javascript代码:
function hand(h) //鼠标变手型
{
var hh = document.getElementById(h);
hh.style = "cursor:pointer";
}
</script><img id="zj2" src="Images/delete.PNG" onclick="shanchu(ziliao2)" onmousemove="hand(zj2)" />
这样做能实现吗???
function hand(h) //鼠标变手型
{
var hh = document.getElementById(h);
hh.style = "cursor:pointer";
}
</script><img id="zj2" src="Images/delete.PNG" onclick="shanchu(ziliao2)" onmousemove="hand(zj2)" />
这样做能实现吗???
解决方案 »
- 百度对联广告源码提取
- Struts2+EXTJS+JSON为什么我得到的值不显示?
- 网页以窗口形式弹出???
- JS菜单中在DIV用innerHTML写入li菜单项,为何当鼠标移出每个li时就会触发div的onmouseout事件?
- 怎么才能让JS中做一个停止10秒的动作后,再执行下面的语句,类似API函数中SLEEP的功能???高手进
- jquery提交表单,获取不到表单的内容,获取不到input的值
- 关于一次选择多个checkbox的问题(解决即结贴)
- 为什么我用的JavaScript图片循环显示时表格与表格之间有个缝隙?
- 急!!!如何得到数组
- window.showModalDialog的相关问题
- 自己写的web编辑器,可配置文档结构和样式
- js参数的理解.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function hand(h) //鼠标变手型
{
var hh = document.getElementById(h);
hh.style.cursor="pointer";
}
</script>
</head><body>
<img id="zj2" src="1.jpg" onmousemove="hand('zj2')" />
</body>
</html>
这样试试