Home > database >  Want to ask the mouse suspended its drop-down list box on removing hidden drop-down list box and the
Want to ask the mouse suspended its drop-down list box on removing hidden drop-down list box and the

Time:09-21

Is mainly want to ask the time when the mouse is suspended on a drop-down list box to remove the drop-down list box hidden want to ask is: how to make the mouse into the drop-down list box using HTML + CSS

CodePudding user response:

 & lt; A id="login - BTN" & gt; Button & lt;/a> 

<script>
(function () {
Var BTN=document. GetElementById (' login - BTN);
Var box=document. GetElementById (' login box - ');
var timer=null;
Box. onm ouseover=BTN. onm ouseover=function () {
If (timer) clearTimeout (timer)
='block' box. Style. The display;
}
Box. The onm ouseout=BTN. onm ouseout=function () {
The timer=setTimeout (function () {
='none' box. Style. The display;
}, 400);

}
}) ();
</script>

It has a similar, probably means the mouse after the drop-down list, also trigger display the drop-down list
  • Related