[Code]ie和firefox在img嵌套在div中onclick事件的不同
ie和firefox在img嵌套在div中onclick事件的不同
为什么一定要这样?
为什么一定要这样?
<div id="ryan" style="position:absolute; top:0px; left:0px; border: 0px solid black; width:680px; height:639px">
<img id="imgFloor" ></img>
<script language=javascript>
if (document.getElementById && !document.all)
$('ryan').onclick =GetImageClick;
else
$('imgFloor').onclick =GetImageClick;
</script>
</div>
0 Comments:
Post a Comment
<< Home