It's like this feature.
The code is as follows
<style>#div1{width:50px;Height:50px;background:Red;Margin-bottom:10px; }#div2{width:200px;Height:200px;background:Black;Display:None; }</style><Body><DivID= "Div1"></Div><DivID= "Div2"></Div> </Body>
<script> window.onload=function () { var Div1=document.getelementbyid ("Div1"); var Div2=document.getelementbyid (' Div2 '); var timer=null; div1.onmouseover= function () { div2.style.display= ' block '; }; div1.onmouseout= function () { cleartimeout (timer); Timer= setTimeout (function () { div2.style.display= ' none '; },) }; Div2.onmouseover=function () { cleartimeout (timer); }; Div2.onmouseout=function () { timer=settimeout (function () {div2.style.display= ' none ';},500); } } </script>
Why use a delay device,
Because when moving another module requires a certain amount of time, delay, the mouse can have a certain amount of time to move to the new module.
JS with the delay function to achieve like mouse moved into the QQ Avatar and then the new module will appear