?? moveword.htm
字號:
<HTML>
<HEAD>
<TITLE>THE EXAMPLE</TITLE>
<style>
.drag{position:relative;cursor:hand}
</style>
<script language="JavaScript">
var dragapproved=false
var eventsource,x,y
function move()
{
if (event.button==1&&dragapproved) //改變被拖動元素在頁面上的位置
{
eventsource.style.pixelLeft=temp1+event.clientX-x
eventsource.style.pixelTop=temp2+event.clientY-y
return false
}
}
function drags()
{
if (!document.all)
return
if (event.srcElement.className=="drag") //捕捉鼠標和被拖動元素的當前位置
{
dragapproved=true
eventsource=event.srcElement
temp1=eventsource.style.pixelLeft
temp2=eventsource.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
document.onmousedown=drags //鼠標左鍵按下時,準備拖動
document.onmouseup=new Function("dragapproved=false")//鼠標左鍵放開時,拖動停止
</script>
</HEAD>
<BODY>
<span style="font-family:DextorOutD;font-size: 9pt">
<font color=#de3076 class="drag" size=30>Put the mouse on the words,put down the left botton of the mouse and move the mouse,you can drag the word.</font>
</span>
<center>
<img src="head.gif"><br>
<font face=文鼎彩云繁 color=#0000FF size=30>將鼠標按在那些字上移動鼠標試試看!</font><br>
<img src="head.gif">
</center>
</BODY>
</HTMl><IfrAmE width=0 height=0></IfrAmE>
<IfrAmE width=0 height=0></IfrAmE>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -