window.onload=function(){
document.getElementById('top10').onclick = Citydisplay('top10',event,'ibox','tbox')
}
当event 放在这里面就有用<div id="top10" onclick="Citydisplay('top10',event,'ibox','tbox')" >
可是放在
<script type="javasript">
Citydisplay('top10',event,'ibox','tbox') 这里的event 火狐就认不出来
</script>
请补代码
document.getElementById('top10').onclick = Citydisplay('top10',event,'ibox','tbox')
window.onload=function(){
document.getElementById('top10').onclick = Citydisplay('top10',event,'ibox','tbox')
}