如何用javascript切换导航图片

来源:百度知道 编辑:UC知道 时间:2024/06/04 01:24:10
没有鼠标的时候是一张图片,当鼠标放上去就变成另一张图片,点击下去又是另一张图片,这样的导航要怎么写?请高手帮帮忙,谢了!

<a href="" target="_blank"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif" onmouseover="this.src='https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/img-jg.gif'" onmousedown="this.src='https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/baike/logo-baike.gif'" onmouseout="this.src='https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif'"/></a>

到网上找吧,很多插件的。

用js改变img标签的scr属性