Copy codeThe Code is as follows: function divPosition (){
Var clx, cly;
Clx = event. clientX;
Cly = event. clientY;
Objouter. style. top = clx + 10;
Objouter. style. left = cly + 20;
Objouter. style. width = getAbsoluteWidth (objInput)
}
The problem lies in
Objouter. style. top = clx + 10;
Objouter. style. left = cly + 20;
Objouter. style. width = getAbsoluteWidth (objInput );
If it is changed to getAbsoluteTop (objInput );
GetAbsoluteLeft (objInput );
Enter Dongdong in the text box in the table and IE will die.
But I don't know how to change it.
<Br/> the location of the layer is incorrect <br/> the drop-down prompt is "follow MOuse .. How to change it to the one in the text box <br/> <input type = "text" id = "aspx"> <input type = "text" id = "aspx2 "> <br/> <table width =" 970 "border =" 0 "align =" center "> <tr> <td> <table width =" 100% "border =" 0 "align =" center "> <tr> <td align =" center "valign =" middle "> </td> </tr> </table> <table border = "1" align = "center" cellspacing = "1" bordercolor = "# 9CD7FF" id = "table1" style = "BORDER-COLLAPSE: collapse "> <tr bgcolor =" #99 CCFF "> <td bgcolor =" # CEE3FF "> date </td> <td bgcolor =" # FFFFFF "> <input type = "text" id = "inputer"> </td> </tr> <tr bgcolor = "#99 CCFF"> <td bgcolor = "# CEE3FF"> manufacturing number </ td> <td bgcolor = "# FFFFFF"> </td> </tr> <tr bgcolor = "#99 CCFF"> <td height = "24" bgcolor = "# CEE3FF "> job content </td> <td height =" 24 "bgcolor =" # FFFFFF "> </td> </tr> </table> </td> </tr> </table> <p>