?? 拖動(dòng)層.htm
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://fason.nease.net/code/js/mouse/layer.htm -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT>var ms=0;function did(obj){ ms=obj; event.srcElement.setCapture(); x=document.all(ms).style.pixelLeft-event.x; y=document.all(ms).style.pixelTop-event.y;}function document.onmousemove(){if(ms){ document.all(ms).style.pixelLeft=x+event.x; document.all(ms).style.pixelTop=y+event.y; }}function document.onmouseup(){if(ms){ event.srcElement.releaseCapture(); ms=0; }}</SCRIPT>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV id=a1 style="POSITION: absolute">
<DIV onmousedown="did('a1')" id=a2
style="WIDTH: 100px; CURSOR: move; HEIGHT: 50px; BACKGROUND-COLOR: #f2f2f2">拖動(dòng)層</DIV></DIV>
<P align=right><A style="TEXT-DECORATION: none"
href="http://fason.nease.net/">【阿信的小天地】</A></P></BODY></HTML>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -