<script> function changePic(obj){ obj.style.background="url(youpic.jpg) center center no-repeat" //youpic.jpg换成你的图片的url } </script> <input type="text" style="background:url(http://www.v-ec.com/ijc/ajax-loader.gif) center center no-repeat" onclick="changePic(this)">
function changePic(obj){
obj.style.background="url(youpic.jpg) center center no-repeat" //youpic.jpg换成你的图片的url
}
</script>
<input type="text" style="background:url(http://www.v-ec.com/ijc/ajax-loader.gif) center center no-repeat" onclick="changePic(this)">