<SCRIPT> var yPic = document.getElementsByTagName("img"); for (sp = 0; sp < yPic.length; sp ) {if (yPic[sp].src == "原头像地址") { yPic[sp].src = "新头像地址"}}; </SCRIPT>