点击按钮切换图片:

点击按钮切换图片:

<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="application/javascript">
function one(){
var image = document.getElementById("imaged");
image.src="img/jrct.png";
}
function two(){
var image = document.getElementById("imaged");
image.src="img/百度.png";
}
</script>
</head>
<body>
<center><!--居中-->
<div id="bodys">
<nav id="navs">
<button onclick="one()">首页</button>
<button onclick="two()">新疆简介</button>
</nav>
<div id="bodyd">
<img id="imaged" src="img/ic_4.jpg"/>
</div>
</div>
</center>
</body>
</html>
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页