<script>
function On_M(obj)
{
obj.style.background='images/r04.gif';
}
function On_O(obj)
{
obj.style.background='images/r03.gif';
}
</script>
<div onmousemove="On_M(this);" onmouseout="On_O(this);" style="background-image:url('images/r03.gif'); width:149px; height:27px; margin-top:1px;" >
</div>这样子为啥出错...
obj.style.background=url('images/r04.gif');也是错
function On_M(obj)
{
obj.style.background='images/r04.gif';
}
function On_O(obj)
{
obj.style.background='images/r03.gif';
}
</script>
<div onmousemove="On_M(this);" onmouseout="On_O(this);" style="background-image:url('images/r03.gif'); width:149px; height:27px; margin-top:1px;" >
</div>这样子为啥出错...
obj.style.background=url('images/r04.gif');也是错
解决方案 »
- 使用框架集的时候如何能不知让它出现纵向的滚动条,而不出现横向的滚动条
- 求助有关于VS2005自带的水晶报表如何实现问题
- 母板页用ajax
- 想把一条带变量的SQL语句传到用户控件中!
- 错误提示不明白???
- 在CALENDAR中怎样使特定的日期底色为红???????
- 推荐讲述asp.net设计模式的书
- 请问C#如何编写把本地读卡器读取的内容返回给页面的ActiveX控件。或是还有什么其它的解决方案可以实现这样的需求。谢谢
- 我的 World Wide Web Publishing 服务由于“错误3:系统找不到指定的路径”而无法启动,IIS就等于没用,怎么办?
- asp.net 在 google 浏览器中的问题?
- asp.net中关于图片上传的问题
- 三层构架中的Access数据怎么连接?
<div id="mydiv" name="mydiv" onmousemove="On_M(this);" onmouseout="On_O(this);" style="background-image:url('images/r03.gif'); width:149px; height:27px; margin-top:1px;" >
function On_M(obj)
{
document.getElementById(obj).style.background='images/r04.gif';
}
function On_O(obj)
{
document.getElementById(obj).style.background='images/r03.gif';
}
</script>
<div id="it" onmousemove="On_M(this.id);" onmouseout="On_O(this.id);" style="background-image:url('images/r03.gif'); width:149px; height:27px; margin-top:1px;" >
</div>如果用this,只是获得一个object,所以会出错~
{
obj.style.backgroundImage='url(images/r04.gif)';
}
function On_O(obj)
{
obj.style.backgroundImage='url(images/r03.gif)';
}
这样估计也可以
{
obj.style.backgroundImage="url('images/r04.gif')";