?? systemdraganddropexample10.htm
字號:
<html>
<head>
<title>System Drag And Drop Example</title>
<script type="text/javascript">
function handleMouseMove(oEvent) {
if (oEvent.button == 1) {
oEvent.srcElement.dragDrop();
}
}
function handleDragDropEvent(oEvent) {
oEvent.dataTransfer.setData("text", "This is a red square");
}
</script>
</head>
<body>
<p>Try dragging the red square into the textbox.</p>
<p><div style="background-color: red; height: 100px; width: 100px"
onmousemove="handleMouseMove(event)"
ondragstart="handleDragDropEvent(event)">This is a red square</div> </p>
<p><input type="text" value="" /></p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -