Use javascript to move the div layer-javascript drag layer:
Program function: Use javascript development to drag the div layer in the following html code on the interface at will.
javascript to move the div layer-javascript drag layer code-
html code:
<%-- The following td has added javascript code to move the layer and several events of dragging the layer
onmousedown event occurs when the mouse clicks
onmousemove event occurs when the mouse pointer moves
onmouseup event occurs when the mouse button is released,
onmouseout event occurs when the mouse pointer moves out of the specified object occurs --%>
onmousedown="movetianyamessage(div_Info, event)" onmousemove =" movetianyamessageend(event);" onmouseup="movetianyamessageend(event)" onmouseout="movetianyamessageend(event)">
|
x |
|
|
|
| |
< td class="white12px" style="height: 40px" align="center" valign="middle"> OnClientClick="disponse_div(div_Info);return false;" />
| < /tr>
javascript move div layer-javascript drag layer code-javascript code: