Javascript firefox中的onmousemove
如何在Firefox中实现onmousemove?我让它在IE7中工作,但在Firefox中没有Javascript firefox中的onmousemove,javascript,firefox,events,esri,Javascript,Firefox,Events,Esri,如何在Firefox中实现onmousemove?我让它在IE7中工作,但在Firefox中没有alertpops。是否不支持或执行不同的操作 <esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1" Height="100%" Width="100%" VirtualDirectory="" PrimaryMapResource="ESRI_Imagery_World_2D"
alert
pops。是否不支持或执行不同的操作
<esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1"
Height="100%" Width="100%" VirtualDirectory=""
PrimaryMapResource="ESRI_Imagery_World_2D" Extent="-130,37,-117,46"
onmousemove="alert()" >
</esri:Map>
我认为问题在于您需要在警报()中添加一些内容,例如:
<esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1"
Height="100%" Width="100%" VirtualDirectory=""
PrimaryMapResource="ESRI_Imagery_World_2D" Extent="-130,37,-117,46"
onmousemove="alert('test');" >
</esri:Map>
我刚刚试过这个,它在FF中起作用:
<div onmousemove="alert('test');" style="height:100px; width:300px; background-color:#f00;"></div>
我认为问题在于您需要在警报()中添加一些内容,例如:
<esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1"
Height="100%" Width="100%" VirtualDirectory=""
PrimaryMapResource="ESRI_Imagery_World_2D" Extent="-130,37,-117,46"
onmousemove="alert('test');" >
</esri:Map>
我刚刚试过这个,它在FF中起作用:
<div onmousemove="alert('test');" style="height:100px; width:300px; background-color:#f00;"></div>