有关图片的切换

niexin 2003-07-10 04:53:08
我在写了这段代码

<DIV class=Outline1 id=Out0101-0000
onmouseover="this.style.color='white';this.style.cursor='hand'"
onmouseout="this.style.color='black'"> <IMG class=Outline1
id=Out0101-0000Image src="images/plus.gif" width="12" height="12">个人全部信息</DIV>

发现点击“个人全部信息”后,图像却不能显示了,要再次刷新,才会显示。不知是何原因。
或者说我该如何在点击后切换另一张图片?
...全文
76 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
niexin 2003-07-11
  • 打赏
  • 举报
回复
补充:我是在JSP中运行的。
niexin 2003-07-11
  • 打赏
  • 举报
回复
还是不行,加了这句话后,没有应有的效果,而且还显示网页出错
Smile_Tiger 2003-07-10
  • 打赏
  • 举报
回复
<DIV class=Outline1 id=Out0101-0000 onclick = 'Out0101-0000Image.src = "images/xxx.gif"'
onmouseover="this.style.color='white';"
onmouseout="this.style.color='black'"> <IMG style = 'cursor:hand' class=Outline1
id=Out0101-0000Image src="images/plus.gif" width="12" height="12">个人全部信息</DIV>

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧