As shown below: Copy the code The code is as follows: <br> .toopTip<br> ;<br> border-color:Red; The left boundary of the DIV overlaps with the displayed DIV in the upper boundary, so you need to delete the document head W3C standard. ://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br><br> */<br> function initEvent() {<br> var divArray = document.getElementsByTagName(" div");<br> for (var i = 0; i < divArray.length; i ) {<BR> divArray[i].onmouseover = createDivDetailOne;<BR> /*<BR> Cannot be tied with original div The incident of fixed mouse removed, because the width length of the details of the details is greater than the original DIV, <BR> The original div is covered, at this time it will be automatically triggered by the ONMouseout event <BR> */<br> // DIVARAY [i].onmouseout = removeDivDetail;<br> }<BR> }<BR> function createDivDetailOne() {<BR> //Guarantee the uniqueness of divDetail div<BR> var divDetail = document.getElement ById("divDetail"); <BR> <BR> divObj = document.createElement("div");<BR> divObj.className = "toopTip";<BR> divObj.setAttribute("id", "divDetail");<BR> divOb j.style.position = "absolute";<BR> divObj.style.width = "200px";<BR> divObj.style.height = "100px";<BR> var triggerObj = window.event.srcElement;<BR> divObj.style.top = triggerObj.offsetTop;<BR> divObj.style.left = triggerObj.offsetLeft;<BR> divObj.innerHTML = triggerObj.innerText;<BR> document.body.appendChild(divObj);<BR> // Used at this time The detailed div has covered the original div, so the covered div needs to be event processed <BR> document.getElementById("divDetail").onmouseout = function() {<BR> divObj = this;<BR> if (!divObj ) {<BR> Return; <BR>} <BR> Document.body.removechild (divobj); <BR>}; <BR>}> Function RemoveDIVDetail GetelementByid ( "divDetail");<BR> if (!divObj) {<BR> return;<BR> }<BR> document.body.removeChild(divObj);<BR> }<BR> <BR></P> window.onload = initEvent;<P> </script><br> <br></head><p><body><br> <div id="divOne" style="background-color: Fuchsia; width: 100px; height: 100px;" ><br> Hello My Js World!<br> </div><br> <div id="divTwo" style="background-color: Aqua; width: 100px; height: 100px"><br> Welcome to This IS My Js World! !<br> </div><br></body><br></html><br><br><br></p> </div>