图片切换代码

来源:百度知道 编辑:UC知道 时间:2024/06/16 02:15:55
本来有一张图片,然后鼠标移上去,图片换成另一张,谢谢

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户登陆</title>
<link rel="stylesheet" type="text/css" href="inc/link.css">
<script language="javascript">
function change(obj)
{
var img=new Image();
img.src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif";
obj.src=img.src;
}
function reback(obj)
{
var img=new Image();
img.src="http://www.baidu.com/img/baidu_logo.gif";
obj.src=img.src;
}
</script>
</hea