为什么一定要这样?
<div id="ryan" style="position:absolute; top:0px; left:0px; border: 0px solid black; 680px; height:639px">
<img id="imgFloor" ></img>
<script language=javascript>
if (document.getElementById && !document.all)
$('ryan').onclick =GetImageClick;
else
$('imgFloor').onclick =GetImageClick;
</script>
</div>
文章来源:http://jinweijie.blogspot.com/2006/09/codeiefirefoximgdivonclick.html