onclick="abc()"是多余的<img src='img01.jpg' id='a1' />
<script>
function abc()
{
//......
document.getElementById("a1").onmouseover= function(){
"this.src='img02.jpg'";
}
}
</script>
<script>
function abc()
{
//......
document.getElementById("a1").onmouseover= function(){
"this.src='img02.jpg'";
}
}
</script>
解决方案 »
- 鼠标不离开连接 easyui datagrid 不显示 离开马上显示 求遇到过帮助谢谢了 online
- 闲来无事,试验页面采用拖放进行传递数据的通用方法
- 急急急急!cookie禁用后仍能用document.cookie =来写入cookie
- 请哥哥,姐姐们 解释这里的JS代码的意思 谢谢啦!
- 我想实现通过下拉列表实现背景音乐切换 但不知道哪里出错了 检查不出来 望指导!
- JS和头文件的W3C冲突
- 求助!!TextBox控件内数据换行(StringBuilder.Append的換行問題)
- 打开新窗口问题?
- 图层的显示位置问题!!在线等....
- 大家来看看阿里巴巴网站的提供的一个功能,有几点没搞清楚
- 我的Scripting.FileSystemObject找不到是不是要注册这个组件???
- 求类似excel 用js+dhtml 写的的控件?能够编辑然后提交数据上去
<script>
document.getElementById("a1").onmouseover= function(){
"this.src='img02.jpg'";
}
</script>
<script>
document.getElementById("a1").onmouseover= function(){
this.src='img02.jpg';
}
</script>