日期:2014-05-16 浏览次数:20352 次
<script> function change_pic(){ var imgObj = document.getElementById("pic"); var Flag=(imgObj.getAttribute("src",2)=="1.png") imgObj.src=Flag?"2.png":"1.png"; } </script> <img src="1.png" class="pic_size" id="pic" onClick="change_pic()">