<input name="music" type="image" id="music" onclick="loadmusic(this)" size="6" src="toright.png" value="mp3"> <script language="javascript"> function loadmusic(o){ alert(‘name=‘+o.name+‘ / id=‘+o.id); } </script>
原文:http://www.cnblogs.com/wesky/p/4174485.html