<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<!--定义图片标签-->
<div>
<img src="img/1.gif" id="dengImge" />
</div>
<div>
<img src="img/on.png" " onclick="on_off()" id="on_off_img" />
</div>
<script type="text/javascript">
var i = 0;
var a = 1;
var on_off_img = ["img/off.png", "img/on.png"];
var dengImg = ["img/2.gif", "img/1.gif"];
function on_off() {
document.getElementById('on_off_img').src = on_off_img[i];
document.getElementById('d