<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script language="JavaScript">
/*
* 点击图片改变图片路径
* */
var bool = true;
function change(){
var deng =document.images;
if(bool){
deng[0].src="images/0.gif";
bool=false;
}else{
deng[0].src="images/1.gif";
bool=true;
}
}
</script>
</head>
<body>
<img src="images/1.gif" οnclick="change()"><br>
</body>
</html>