按住滑鼠不放可移動文字
語法說明:
- 在 <font color="#FF0000" face="細明體" size="4"> 中修改文字的規格,依序為顏色、字體、大小
- 在 小林工作室 http://ns-girl.myweb.hinet.net/ 中自行修改成想要的內容
<!--可移文字_開始--> <script language="JavaScript"> <!-- var dragapproved=false var z,x,y function move(){ if (event.button==1&&dragapproved){ z.style.pixelLeft=temp1+event.clientX-x z.style.pixelTop=temp2+event.clientY-y return false } } function drags(){ if (!document.all) return if (event.srcElement.className=="drag"){ dragapproved=true z=event.srcElement temp1=z.style.pixelLeft temp2=z.style.pixelTop x=event.clientX y=event.clientY document.onmousemove=move } } document.onmousedown=drags document.onmouseup=new Function("dragapproved=false") --> </script> <style> <!-- .drag{position:relative;cursor:hand} --> </style> <font color="#FF0000" face="細明體" size="4"><b class="drag">小林工作室 http://ns-girl.myweb.hinet.net/</b></font> <!--_結束--> |
全站熱搜
留言列表