没仔细看 看看是不是这里:function DoOver(oimg)
{
var imgSRC;
imgSRC='Edit_'+oimg.name+'_Over.jpg
oimg.src='D:\My Documents\bearlinn's program\images\'+imgSRC;
} function DoOut(oimg)
{
var imgSRC;
imgSRC='Edit_'+oimg.name+'.jpg
oimg.SRC='D:\My Documents\bearlinn's program\images\'+img.SRC;
}
{
var imgSRC;
imgSRC='Edit_'+oimg.name+'_Over.jpg
oimg.src='D:\My Documents\bearlinn's program\images\'+imgSRC;
} function DoOut(oimg)
{
var imgSRC;
imgSRC='Edit_'+oimg.name+'.jpg
oimg.SRC='D:\My Documents\bearlinn's program\images\'+img.SRC;
}
oimg.src='D:\My Documents\bearlinn's program\images\'+imgSRC;
<!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" xml:lang="zh-CN" lang="zh-CN">
<head>
<title>事件的概念</title></head>
<body>
<script language="JavaScript">function DoOver(oimg)
{
var imgSRC;
imgSRC='Edit_'+oimg.name+'_Over.jpg';
oimg.src='C:\Documents and Settings\Administrator\桌面\images\'+imgSRC;
}function DoOut(oimg)
{
var imgSRC;
imgSRC='Edit_'+oimg.name+'.jpg';
oimg.SRC='C:\Documents and Settings\Administrator\桌面\images\'+img.SRC;
}
</script><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img name="ddn" SRC="C:\Documents and Settings\Administrator\桌面\images\ddn.jpg"
onmouseover="DoOver(this)" onmouseout="DoOut(this)"
alt="新建" onclick="alert('新建')" style="CURSOR:hand" />
</td></tr>
</table>
</body>
</html>我改路径了, 怎么的还是不行啊,哪里出错了咧
大侠救救在下啊~~~~
你可以看看这个网页:http://softbbs.pconline.com.cn/topic.jsp?tid=8797997
希望对你有点帮助吧。
oimg.src='C:\\Documents and Settings\\Administrator\\桌面\\images\\'+img.src
<img name="ddn" SRC="images/8_re1.gif"
onmouseover="this.src='images/8_re1.gif'"
onmouseout="this.src='images/8_re2.gif'"
alt="新建" onclick="alert('新建')" style="CURSOR:hand"> 就这样不行吗?