利用javascript移动div层-javascript 拖动层:
程序功能:利用javascript开发在界面上随意拖动以下html code中的div层.
javascript移动div层-javascript 拖动层代码-
html code:
onmousedown事件当鼠标单击时发生
onmousemove 事件会在鼠标指针移动时发生
onmouseup 事件会在鼠标按键被松开时发生,
onmouseout 事件会在鼠标指针移出指定的对象时发生--%>
onmousedown="movetianyamessage(div_Info, event)" onmousemove="movetianyamessageend(event);" onmouseup="movetianyamessageend(event)" onmouseout="movetianyamessageend(event)">
|
x
|
|
|
|
|
|
OnClientClick="disponse_div(div_Info);return false;" />
|
|
javascript移动div层-javascript 拖动层代码-javascript code: