帮我写一段HTML代码,要求鼠标指向一张图片时变成另一张图片!

RT.

懂的帮一下,谢谢!
回答者: 野狼的第二梦.我要的效果是指向是变后还有链接,再不指向就还原原先的图片啊。。。不是你那种不变没连接的~

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Author" content="笃行天下">
<meta name="Keywords" content="笃行天下">
<meta name="Description" content="www.g8up.cn">
</head>

<body>
<img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/iknow/qb/mmsask.jpg" onmouseover="this.src='https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif'">
</body>
</html>
温馨提示:内容为网友见解,仅供参考
第1个回答  2010-10-13
用Dreamever设计,就是鼠标事件,当鼠标放上去就显示一张图片,定鼠标离开就显示另一张,图片路径用src=‘image/a.jpg’ 等
<img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/iknow/qb/mmsask.jpg" onmouseover="this.src='https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif'">
相似回答
大家正在搜