**点击两张图片切换**
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>点击两张图片切换</title>
</head>
<body>
<img src="close.png" height="31" width="31" id="swithimg">
<script type="text/javascript">
window.onload = function(){
var swithimg = document.getElementById("swithimg");
var mm = true;
swithimg.onclick= function(){
if (mm == true) {
swithimg.src="border.png";
return mm=false;
}else{
swithimg.src="close.png";
return mm=true;
}
};
};
</script>
</body>
</html>