开发者

mouseover event on xul menubutton

开发者 https://www.devze.com 2023-04-02 09:58 出处:网络
I want to change the display of the button on the mouse over event of the menu button. It shows the button border on the mouse over event of the menu-button and also the separation of the button and t

I want to change the display of the button on the mouse over event of the menu button. It shows the button border on the mouse over event of the menu-button and also the separation of the button and the drop down.

<toolbarbutton id="search" type="menu-button" label="SEARCH" width="83" height="25" oncommand="webSearch();event.stopPropagation();" onmouseover="">
   <menupopup>
      <menuitem label="Web" value="webs"开发者_开发百科 oncommand="webSearch();event.stopPropagation();"/>
      <menuitem label="Images" value="images" oncommand="imageSearch();event.stopPropagation();"/>
   </menupopup>
</toolbarbutton>


What do you want it to do? You can add some CSS to change it's style when you hover over it?

#search:hover {
   /* your styles here */
}
0

精彩评论

暂无评论...
验证码 换一张
取 消